/* =========================================================
   PURE CAR WASH — STYLE.CSS (corrigé + responsive)
   ========================================================= */

/* =========================
   1) VARIABLES
   ========================= */
:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --alt:#f7f7f7;
  --accent:#0ea5e9;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --itemH: 110px; /* hauteur des items Suppléments/Déplacement */
}

/* =========================
   2) RESET / BASE
   ========================= */
*{box-sizing:border-box;margin:0;padding:0}

html{ scroll-behavior:smooth; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit}

/* Utilities */
.muted{color:var(--muted)}
.small{font-size:13px}

/* =========================
   3) LAYOUT
   ========================= */
.container{
  width:min(2000px, 94%);
  margin:0 auto;
}
.section{padding:60px 0}
.section--alt{background:var(--alt)}

.section__head{
  margin-bottom:22px;
  text-align:center;
}
.section__head h2{font-size:34px; margin-bottom:8px}
.section__head p{color:var(--muted)}

.separator{
  height:60px;
  background:#ffffff;
  width:100%;
}

/* =========================
   4) UI GLOBAL
   ========================= */
#scroll-progress{
  position:fixed;
  top:0; left:0;
  height:6px;
  width:0%;
  background:var(--accent);
  z-index:9999;
}

.topbar{
  background:#111;
  color:#fff;
  font-size:14px;
  overflow:hidden;
}
.marquee{white-space:nowrap}
.marquee__track{
  display:inline-flex;
  gap:500px;
  padding:14px 0;
  animation:marquee 18s linear infinite;
}
@keyframes marquee{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

.header{
  position:sticky;
  top:0;
  z-index:999;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  padding:16px 0;
}

/* Brand */
.brand{
  justify-self:start;
  font-weight:800;
  letter-spacing:.2px;
  padding:10px 18px;
  background:#f3f4f6;
  border-radius:14px;
  transition:.25s ease;
  text-decoration:none;
}
.brand:hover{ background:#e5e7eb; }

/* Logo + texte (premium) */
.brand--logoText{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 14px;
}
.brand__logo{
  height:38px;
  width:auto;
  display:block;
}
.brand__text{
  font-weight:800;
  letter-spacing:.3px;
  font-size:15px;
  white-space:nowrap;
}

.nav{
  justify-self:center;
  display:flex;
  gap:22px;
  align-items:center;
}
.nav a{
  text-decoration:none;
  color:#222;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  white-space:nowrap;
}
.nav a:hover{background:var(--alt)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
}
.btn--primary{background:#111;color:#fff}
.btn--primary:hover{opacity:.92}
.btn--ghost{background:transparent;border-color:var(--border)}
.btn--ghost:hover{background:var(--alt)}
.btn--full{width:100%}


/* =========================
   5) HERO
   ========================= */
.hero{ padding:34px 0; }
.hero__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  align-items:center;
}

.hero__text h1{font-size:34px; line-height:1.1; margin-bottom:14px}
.hero__text p{color:var(--muted); margin-bottom:18px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap}

.hero__media{ height:420px; }
.hero__image{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:22px;
  box-shadow:var(--shadow);
  border:1px solid rgba(0,0,0,.06);
}

.hero--split{ padding:70px 0; background:#fff; }
.hero__grid--reverse{ grid-template-columns:1.05fr .95fr; }

.hero__text--about h1{
  font-size:34px;
  line-height:1.1;
  margin-bottom:14px;
}
.hero__text--about p{
  color:var(--muted);
  margin:0 0 14px;
  max-width:62ch;
  text-align: justify; /* ✅ justifié */
  text-justify: inter-word;
}

.hero--alt{
  background:#f3f4f6;
  padding:40px 0;
}
.hero--alt .hero__grid{
  background:#fff;
  padding:40px;
  border-radius:28px;
  box-shadow:0 20px 50px rgba(0,0,0,.06);
}


/* =========================
   6) VALUES
   ========================= */
.values{padding:40px 0; background:#fff}
.values__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.value{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 20px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.value__icon{font-size:22px; margin-bottom:8px}
.value h3{margin-bottom:6px}
.value p{color:var(--muted)}

/* =========================
   7) CARDS
   ========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:var(--shadow);
}
.card h3{margin-bottom:6px}
.card .muted{color:var(--muted); margin-bottom:12px}

.subhead{
  margin:60px 0 30px;
  font-size:24px;
  font-weight:600;
  text-align:center;
  position:relative;
  letter-spacing:.5px;
}
.subhead::after{
  content:"";
  display:block;
  width:60px;
  height:3px;
  margin:12px auto 0;
  border-radius:2px;
  background:var(--accent);
}

.cards--formules{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}

.card--formule{
  position:relative;
  overflow:hidden;
  padding:0;
  border:none;
  border-radius:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.card__media{
  background:#000;
  aspect-ratio:4 / 3;
  overflow:hidden;
}
.card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card__content{ padding:14px 14px 16px; }

.badge{
  position:absolute;
  top:10px;
  right:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  z-index:2;
}
.old{ text-decoration:line-through; margin-left:8px; opacity:.7; }

.checks{
  list-style:none;
  padding:0;
  margin:0 0 14px;
}
.checks li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:10px 0;
  font-size:11px;
  line-height:1.45;
}
.checks li::before{
  width:22px;
  flex:0 0 22px;
  display:inline-flex;
  justify-content:center;
  margin-top:2px;
  font-size:18px;
}
.checks li.ok::before{content:"✅";}
.checks li.no::before{content:"❌";}

.cards--combo .card__media{
  aspect-ratio:4 / 5;
  background:#ffffff;
}
.cards--combo .card__media img{
  object-fit:contain;
  padding:0;
}

/* =========================
   8) AVANT / APRÈS
   ========================= */
.ba{
  --pos:50%;
  position:relative;
  width:100%;
  aspect-ratio:3 / 4;
  max-height:520px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  background:#000;
}
.ba__img{ position:absolute; inset:0; overflow:hidden; }
.ba__img img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.ba__img--before{ clip-path:inset(0 calc(100% - var(--pos)) 0 0); will-change:clip-path; }
.ba__range{
  position:absolute;
  left:10%;
  right:10%;
  bottom:14px;
  width:80%;
  margin:0 auto;
  z-index:3;
}
.ba-carousel{position:relative}
.ba-track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:6px 4px 10px;
  scrollbar-width:none;
}
.ba-track::-webkit-scrollbar{display:none}
.ba-slide{ scroll-snap-align:start; flex:0 0 calc((100% - 32px) / 3); }

.ba-carousel__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.90);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  color:#111;
  font-size:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
}
.ba-carousel__nav--prev{left:-8px}
.ba-carousel__nav--next{right:-8px}

/* =========================
   9) REVIEWS / FAQ / FOOTER
   ========================= */
.reviews{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.review{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  text-align:center;
}
.review__stars{color:#f59e0b; letter-spacing:2px; margin-bottom:8px}

.faq details{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 16px;
  margin:12px 0;
}
.faq summary{cursor:pointer; font-weight:700}
.faq p{
  color:var(--muted);
  margin-top:10px;
  text-align: justify;      /* ✅ justifié FAQ */
  text-justify: inter-word;
}

.footer{
  border-top:1px solid var(--border);
  padding:22px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================
   10) MODAL
   ========================= */
.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:.3s ease;
  z-index:9999;
}
.modal.active{ opacity:1; pointer-events:auto; }
.modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
}
.modal__card{
  position:relative;
  width:min(460px, 92%);
  background:#fff;
  padding:34px;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  transform:translateY(20px);
  transition:.3s ease;
}
.modal.active .modal__card{ transform:translateY(0); }
.modal__close{
  position:absolute;
  top:14px;
  right:16px;
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
}
.modal__form{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:20px;
}
.modal__form input,
.modal__form select{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:14px;
}
.modal__form textarea{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:14px;
  resize:vertical;
  min-height:120px;
}
.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus{
  border-color:var(--accent);
  outline:none;
}

/* =========================
   11) CTA
   ========================= */
.cta-bottom{
  padding:90px 0;
  background:#f3f4f6;
}
.cta-bottom__inner{
  text-align:center;
  max-width:680px;
  margin:0 auto;
}
.cta-bottom h2{
  font-size:32px;
  margin-bottom:10px;
}
.cta-bottom p{margin-bottom:30px}
.cta-bottom__btn{
  background:#111;
  color:#fff;
  border:none;
  padding:18px 46px;
  font-size:16px;
  font-weight:600;
  border-radius:999px;
  cursor:pointer;
  transition:.25s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}
.cta-bottom__btn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}

/* ✅ garde le titre propre (pas de “?” sur une ligne seule) */
.cta-title{
  display:inline-block;
  white-space:nowrap;
}
@media (max-width: 380px){
  .cta-title{ white-space:normal; } /* sur tout petit écran, on autorise le retour à la ligne */
}

/* =========================
   12) TARIFS (TABLES)
   ========================= */
.tarifs-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  max-width:1200px;
  margin:0 auto;
}
.tarifs-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 20px 50px rgba(0,0,0,.06);
  overflow:hidden;
}
.tarifs-card__head{
  padding:18px 18px 12px;
  border-bottom:1px solid var(--border);
  text-align:center;
}
.tarifs-card__head h3{
  margin:0 0 6px;
  font-size:18px;
}

.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.pricing-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  min-width:720px;
}
.pricing-table thead th{
  position:sticky;
  top:0;
  background:#f3f4f6;
  z-index:1;
  font-weight:700;
}
.pricing-table th:first-child,
.pricing-table td:first-child{
  width:20%;
  text-align:left;
}
.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child){
  width:21.33%;
  text-align:center;
}
.pricing-table th,
.pricing-table td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  font-size:13.5px;
  white-space:nowrap;
}
.pricing-table tbody th{
  font-weight:700;
  background:#fff;
  padding-left:16px;
}
.pricing-table tbody tr:nth-child(even) td,
.pricing-table tbody tr:nth-child(even) th{
  background:#fafafa;
}
.pricing-table tbody tr:hover td,
.pricing-table tbody tr:hover th{
  background:#f6f7f8;
}
.pricing-table th + th,
.pricing-table td + td{
  border-left:1px solid #eef0f3;
}
.pricing-table td.muted{
  color:var(--muted);
  font-weight:600;
}

.tarifs-cta{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 20px 50px rgba(0,0,0,.06);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.tarifs-cta h3{ margin:0 0 4px; font-size:18px; }

/* =========================
   13) SUPPLÉMENTS + DÉPLACEMENT
   ========================= */

.tarifs-extras-layout{
  display:grid;
  gap:32px;
  grid-template-columns: 2.5fr 1fr;
  align-items:stretch;
  width:100%;
}

@media (max-width: 900px){
  .tarifs-extras-layout{
    grid-template-columns:1fr;
  }
}

/* =========================
   SUPPLÉMENTS
   ========================= */

/* Mobile = 1 colonne */
.extras-acc{
  padding:22px 26px 28px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* Desktop = 2 colonnes */
@media (min-width: 900px){
  .extras-acc{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:18px;
  }
}

/* Carte supplément */
.extras-acc__item{
  min-height: var(--itemH);
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px 22px;
  transition:transform .2s ease, box-shadow .2s ease;

  display:flex;
  align-items:center;
}

.extras-acc__item:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 42px rgba(0,0,0,.08);
}

/* Ligne principale */
.extras-acc__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
}

/* Bloc gauche */
.extras-acc__left{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
  min-width:0;
}

/* Icône */
.extras-acc__icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(14,165,233,.08);
  border:1px solid rgba(14,165,233,.16);
  font-size:22px;
  flex:0 0 42px;
}

/* Texte */
.extras-acc__title{
  font-weight:700;
  font-size:16px;
  line-height:1.35;
  word-break:break-word;
}

/* Prix */
.extras-acc__price{
  font-weight:900;
  font-size:17px;
  white-space:nowrap;
  flex:0 0 auto;
}

/* =========================
   DÉPLACEMENT
   ========================= */

.travel-acc{
  padding:22px 26px 28px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.travel-acc__item{
  min-height: var(--itemH);
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px 22px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  transition:transform .2s ease, box-shadow .2s ease;
}

.travel-acc__item:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 42px rgba(0,0,0,.08);
}

.travel-acc__km{
  font-size:16px;
  font-weight:700;
}

.travel-acc__price{
  font-weight:900;
  font-size:17px;
  white-space:nowrap;
}

.travel-acc__price--free{
  color:var(--accent);
}

/* Mobile sécurité */
@media (max-width: 560px){
  .extras-acc__price{
    display:inline;
  }
}
/* =========================
   14) SECTION SUIVEZ-NOUS
   ========================= */
.social-section{ background:#fff; }
.social-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
  max-width:900px;
  margin:0 auto;
}
.social-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:24px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--border);
  text-decoration:none;
  box-shadow:0 15px 40px rgba(0,0,0,.05);
  transition:transform .25s ease, box-shadow .25s ease;
}
.social-card:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 60px rgba(0,0,0,.10);
}
.social-card__icon{
  width:60px;
  height:60px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(14,165,233,.08);
  border:1px solid rgba(14,165,233,.18);
  flex-shrink:0;
}
.social-card__icon svg{
  width:28px;
  height:28px;
  stroke:#111;
}
.social-card h3{ margin:0 0 6px; font-size:20px; }
.social-card p{ margin:0; font-size:14px; }

.social-card--instagram:hover .social-card__icon{
  background:rgba(225,48,108,.12);
  border-color:rgba(225,48,108,.25);
}
.social-card--tiktok:hover .social-card__icon{
  background:rgba(0,0,0,.08);
  border-color:rgba(0,0,0,.2);
}

@media (max-width:768px){
  .social-grid{ grid-template-columns:1fr; }
}

/* =========================
   15) RESPONSIVE GLOBAL
   ========================= */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2, 1fr)}
  .cards--formules{grid-template-columns:repeat(2, 1fr)}
  .values__grid{grid-template-columns:1fr}
  .reviews{grid-template-columns:1fr}

  .ba-slide{flex:0 0 calc((100% - 16px) / 2)}

  .hero__grid--reverse{grid-template-columns:1fr}
  .hero__media{height:320px; order:1}
  .hero__text{order:2}
  .hero__text--about h1{font-size:32px}
  .hero--alt .hero__grid{padding:28px}

  .nav{ gap:12px; }
}

@media (max-width: 560px){
  .nav{display:none}
  .cards{grid-template-columns:1fr}
  .cards--formules{grid-template-columns:1fr}
  .hero__text h1{font-size:32px}
  .ba-slide{flex:0 0 90%}
  .ba-carousel__nav{display:none}

  /* tables */
  .pricing-table th:first-child,
  .pricing-table td:first-child{ width:30%; }
  .pricing-table th:not(:first-child),
  .pricing-table td:not(:first-child){ width:21%; }

  .tarifs-cta{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}


/* Mobile: donner plus de largeur utile + agrandir la marque */
@media (max-width: 560px){

  .container{ width: 100%; padding: 0 14px; } /* au lieu de 94% */

  .hero--alt .hero__grid{ padding: 18px; }     /* au lieu de 40px */
  .hero__media{ height: 260px; }               /* optionnel */

  /* Header brand plus visible */
  .header__inner{
    grid-template-columns: 1fr;
    justify-items: center;
  }

   .brand{
    justify-self:center;
  }

  .brand--logoText{ padding: 10px 16px; }
  .brand__logo{ height: 46px; }
  .brand__text{ font-size: 18px; }
}


.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}



/* =========================================================
   MOBILE ULTRA AIRÉ
   ========================================================= */

@media (max-width:768px){

/* sections encore plus respirantes */

.section{
  padding:80px 0;
}

/* titres */

.section__head{
  margin-bottom:32px;
}

.section__head h2{
  font-size:30px;
}

/* sous titres */

.subhead{
  margin:70px 0 32px;
}

/* HERO */

.hero{
  padding:30px 0;
}

.hero--alt .hero__grid{
  padding:26px;
}

.hero__media{
  height:300px;
}

.hero__text p{
  font-size:16px;
  line-height:1.7;
}

/* VALUES */

.values{
  padding:30px 0 60px;
}

.value{
  padding:26px;
}

.value h3{
  font-size:18px;
}

/* CARDS FORMULES */

.cards--formules{
  gap:22px;
}

.card__content{
  padding:20px 20px 24px;
}

.card__content h3{
  font-size:18px;
}

.checks li{
  font-size:13.5px;
  margin:12px 0;
}

/* TARIFS */

.tarifs-card{
  margin-bottom:8px;
}

.tarifs-card__head{
  padding:22px;
}

.pricing-table th,
.pricing-table td{
  padding:14px 10px;
}

/* SUPPLEMENTS */

.extras-acc{
  gap:22px;
}

.extras-acc__item{
  padding:22px;
}

.extras-acc__icon{
  width:46px;
  height:46px;
}

.extras-acc__title{
  font-size:16px;
}

.extras-acc__price{
  font-size:17px;
}

/* AVANT APRES */

.ba-track{
  gap:22px;
}

.ba-slide{
  flex:0 0 92%;
}

/* REVIEWS */

.reviews{
  gap:20px;
}

.review{
  padding:22px;
}

/* FAQ */

.faq details{
  padding:18px;
  margin:14px 0;
}

.faq summary{
  font-size:16px;
}

/* CTA */

.cta-bottom{
  padding:90px 0;
}

.cta-bottom__btn{
  padding:20px 50px;
  font-size:17px;
}

/* SOCIAL */

.social-grid{
  gap:26px;
}

.social-card{
  padding:24px;
}

}

/* =========================================================
   LOGO HEADER MOBILE
   ========================================================= */

@media (max-width:560px){

  .brand{
    background:transparent;   /* enlève le gros bloc gris */
    padding:6px 8px;          /* réduit l’espace */
  }

  .brand--logoText{
    gap:8px;
    padding:4px 6px;
  }

  .brand__logo{
    height:36px;              /* logo légèrement plus petit */
  }

  .brand__text{
    font-size:16px;
  }

}
