/* =========================================================
   FULL CSS — CAR TEMPLATE STYLE (like screenshot)
   + Services as tiles
   + Devis opens in modal (button -> form)
   No "Let's Connect" section needed
   ========================================================= */

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root{
  --bg: #0f0f10;
  --dark: #141415;
  --dark-2: #1a1a1b;
  --light: #ffffff;
  --text: #111111;

  --muted: #b7b7b7;
  --muted-2:#8f8f8f;

  --line: rgba(255,255,255,.14);
  --line-2: rgba(255,255,255,.10);
  --line-dark: rgba(0,0,0,.12);

  --accent: #ffd400; /* yellow */
  --accent-2: #ffcc00;

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 18px 45px rgba(0,0,0,.25);
  --shadow-lite: 0 18px 45px rgba(0,0,0,.08);
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: #eaeaea;
  background: var(--bg);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ margin:0; line-height:1.1; letter-spacing: -0.02em; }
p{ margin:.65rem 0 0; }
ul,ol{ margin:.65rem 0 0; }
button, input, textarea { font: inherit; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container{
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ---------- Header (top menu) ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15,15,16,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: .65rem;
}

.brand__name{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1rem;
}

.brand__tagline{
  display:none;
}

/* nav */
.nav{
  display:none; /* desktop only */
  gap: 1.3rem;
  align-items:center;
}
.nav a{
  font-size:.92rem;
  opacity:.8;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}
.nav a:hover{
  opacity:1;
  border-bottom-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color:#fff;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: var(--accent);
  color:#111;
  border-color: rgba(255,212,0,.65);
}
.btn--primary:hover{ background: var(--accent-2); }

.btn--ghost{
  background: transparent;
  color:#fff;
}

.btn--small{
  padding: .62rem .85rem;
  font-size: .9rem;
}

.btn--xl{
  padding: .95rem 1.35rem;
  font-size: 1rem;
}

/* links */
.link{
  display:inline-flex;
  margin-top: .9rem;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,212,0,.55);
}
.link:hover{ border-bottom-color: var(--accent); }

/* ---------- Sections ---------- */
.section{ padding: 4.8rem 0; }

.section-header{
  margin-bottom: 1.8rem;
  max-width: 70ch;
}
.section-header h2{
  font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.6rem);
}
.section-header p{
  color: var(--muted);
}
/* ================================
   HERO VIDEO FULL CENTER
   ================================ */

.hero--video{
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Video background */
.hero-video{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}

/* Content */
.hero-content{
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 1.5rem;
  color: #fff;
}

.hero-content h1{
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 900;
}

.hero-content p{
  margin-top: 1rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
}

.hero-actions{
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile adjustments */
@media (max-width: 768px){
  .hero--video{
    min-height: 550px;
  }

  .hero-content h1{
    font-size: 2.2rem;
  }

  .hero-content p{
    font-size: 1rem;
  }
}



/* ---------- Cards base (dark) ---------- */
.card{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.card-media img{
  width:100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.card-body{
  padding: 1.25rem 1.25rem 1.35rem;
}
.card-body p{ color: rgba(255,255,255,.75); }

/* ---------- About section helpers ---------- */
.video-box{
  margin-top: 1.2rem;
  border-radius: 14px;
  background: #d9d9d9;
  height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.video-play{
  width: 66px;
  height: 46px;
  border-radius: 12px;
  border: 0;
  background: #ff0000;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- Services (tiles) ---------- */
.services{
  background: #0f0f10;
}

.services-tiles{
  display:grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* tile */
.svc-tile{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.svc-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
}

/* image */
.svc-media img{
  width:100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

/* body */
.svc-body{
  padding: 1.15rem 1.15rem 1.25rem;
}
.svc-body h3{
  font-size: 1.15rem;
  font-weight: 900;
}
.svc-body p{
  color: rgba(255,255,255,.72);
}

/* actions */
.svc-actions{
  margin-top: 1rem;
  display:flex;
  gap: .7rem;
  flex-wrap: wrap;
}

/* optional “yellow hover” effect like template */
.svc-tile:hover{
  background: rgba(255,212,0,.06);
}
.svc-tile:hover .svc-body h3{
  color: #fff;
}

/* ---------- Fidelity + Contact light sections ---------- */
#fidelite,
#contact{
  background: var(--light);
  color: var(--text);
}

#fidelite .section-header p,
#contact .section-header p{
  color: #4a4a4a;
}

#fidelite .card,
#contact .card{
  background: #fff;
  color: #111;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lite);
}

#fidelite .card-body p,
#contact .card-body p{
  color: #444;
}

/* Fidelity layout */
.fidelite-card{
  display:grid;
  gap: 0;
}

.fidelite-content{ padding: 1.6rem; }
.fidelite-content h2{ font-weight: 900; }
.fidelite-content p{ color:#333; }

.checklist{
  color:#333;
  padding-left: 1.15rem;
}
.checklist li{ margin:.35rem 0; }

.fidelite-media img{
  height: 280px;
  width:100%;
  object-fit: cover;
}

/* ---------- Devis CTA section ---------- */
.devis{
  background: #0f0f10;
}

.devis-cta{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap: .8rem;
}

.small{
  color: rgba(255,255,255,.65);
  font-size:.92rem;
}

#contact .small{ color:#555; }

/* ---------- Contact ---------- */
.grid{ display:grid; gap: 1rem; }

.contact-grid{
  grid-template-columns: 1fr;
}

.contact-card{ padding: 1.4rem; }
.contact-form{ padding: 1.4rem; }

.contact-list{
  padding-left: 1.1rem;
  color:#333;
}
.contact-list li{ margin:.45rem 0; }

#contact a{
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.25);
}

/* fields (contact light) */
.field{ display:grid; gap:.35rem; }
.field label{ color:#111; font-size:.92rem; font-weight: 700; }

.field input,
.field textarea{
  width:100%;
  padding: .95rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background:#fff;
  color:#111;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder,
.field textarea::placeholder{ color: rgba(0,0,0,.45); }

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:#111;
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

/* ---------- Modal (Devis form) ---------- */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 200;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
}

.modal__panel{
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin: 6vh auto;
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.modal__head h3{
  font-weight: 900;
  margin:0;
}

.modal__close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color:#fff;
  cursor:pointer;
}

.modal__body{
  padding: 1.1rem;
}

/* Quote form inside modal (dark fields and options) */
.fieldset{ border:0; padding:0; margin:0; }
.fieldset legend{
  font-weight: 900;
  margin-bottom: .9rem;
}

.option{
  display:grid;
  grid-template-columns: 20px 1fr auto;
  align-items:center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  margin-bottom: .75rem;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.option:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.26);
}
.option input{
  width:18px;
  height:18px;
  accent-color: var(--accent);
}
.option__label{ font-weight: 800; }
.option__price{
  color: rgba(255,255,255,.8);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quote-summary{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.summary-row{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  padding: .55rem 0;
  color: rgba(255,255,255,.78);
}
.summary-row--total{
  font-size: 1.15rem;
  font-weight: 900;
  color:#fff;
}

.modal-actions{
  margin-top: 1rem;
  display:flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer{
  background: #fff;
  color:#111;
  border-top: 1px solid rgba(0,0,0,.10);
  padding: 1.7rem 0;
}

.footer-inner{
  display:flex;
  flex-direction: column;
  gap: .9rem;
  align-items:flex-start;
}

.footer-nav{
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a{
  opacity:.75;
}
.footer-nav a:hover{
  opacity:1;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (min-width: 820px){
  .nav{ display:flex; }

  .services-tiles{
    grid-template-columns: repeat(2, 1fr);
  }

  .fidelite-card{
    grid-template-columns: 1.1fr .9fr;
  }
  .fidelite-media img{
    height:100%;
    min-height: 360px;
  }

  .contact-grid{
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items:center;
  }
}

@media (min-width: 1100px){
  .section{ padding: 5.4rem 0; }

  .services-tiles{
    grid-template-columns: repeat(4, 1fr);
  }
  .svc-media img{ height: 180px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto; }
}
