:root{
  --max: 1180px;
  --text:#111;
  --muted:#6b6b6b;
  --blue:#2f63b5;
  --light:#f4f4f4;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Arial, Helvetica, sans-serif;
  background:#fff;
  color:var(--text);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin-inline:auto;
}

/* =========================
   HEADER (overlay sur hero)
========================= */
.header-cleanzy{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:10;
  padding:16px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* LOGO (stable, sans casser le menu) */
.logo-img{
  height:150px;
  width:auto;
  display:block;
}

/* Menu pilules */
.nav-links{
  display:flex;
  gap:16px;
  align-items:center;
  font-size:18px;
  color:#fff;
}
.nav-links a{
  padding:8px 14px;
  border-radius:999px;
  transition:.15s ease;
}
.nav-links a:hover{ background:rgba(255,255,255,.14); }
.nav-links a[aria-current="page"]{
  background:#fff;
  color:#111;
}

/* =========================
   HERO (base commune)
========================= */
.hero-cleanzy{
  position:relative;
  min-height: 82vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding-top:110px; /* espace header */
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/hero_bg.jpg") center/cover no-repeat;
}

/* Courbe bas (comme Cleanzy) */
.hero-cleanzy::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:120px;
  background:#fff;
  border-top-left-radius: 220px 120px;
  border-top-right-radius: 0;
}

/* Titre serif */
.h1-cleanzy{
  font-family: Georgia, "Times New Roman", serif;
  font-size:56px;
  font-weight:500;
  margin:0 0 22px;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

/* Bouton hero (blanc) */
.btn-cleanzy{
  display:inline-block;
  padding:10px 18px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.9);
  background:#fff;
  color:#111;
  font-size:14px;
}
.btn-cleanzy:hover{ filter:brightness(.97); }

/* Variantes HERO */
.hero-cleanzy--about{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/about_bg.jpg") center/cover no-repeat;
}
.hero-cleanzy--contact{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/contact_hero.jpg") center/cover no-repeat;
}

/* =========================
   SECTIONS
========================= */
.section-cleanzy{ padding: 72px 0; }
.section-alt{ background: var(--light); }

.h2-cleanzy{
  text-align:center;
  font-size:34px;
  margin:0 0 18px;
  font-weight:700;
}
.p-cleanzy{
  text-align:center;
  max-width:720px;
  margin:0 auto 18px;
  color:var(--muted);
  line-height:1.8;
}

/* =========================
   BLOCS "split" (Accueil)
========================= */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:54px;
  align-items:center;
}
.split .txt{ text-align:center; }

.split h3{
  font-family: Georgia, "Times New Roman", serif;
  font-weight:500;
  font-size:28px;
  color:#2d4f86;
  margin:0 0 10px;
}
.split p{
  margin:0 auto 14px;
  color:var(--muted);
  line-height:1.75;
  max-width:420px;
}

/* Image blob */
.blob{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius: 58% 42% 52% 48% / 52% 62% 38% 48%;
  box-shadow: 0 22px 60px rgba(0,0,0,.12);
}

/* alternance droite/gauche */
.reverse{ grid-template-columns: .9fr 1.1fr; }
.reverse .media{ order:2; }
.reverse .txt{ order:1; }

/* CTA bleu */
.btn-blue{
  display:inline-block;
  padding:7px 12px;
  border-radius:4px;
  background: var(--blue);
  color:#fff;
  font-size:12px;
}

/* =========================
   CONTACT GRID + FORM
========================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:start;
}

.form-cleanzy{ max-width:520px; }

.field-cleanzy{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:14px 0;
}

.field-cleanzy label{
  font-weight:700;
  font-size:13px;
}

.field-cleanzy input,
.field-cleanzy textarea,
.field-cleanzy select{
  border:1px solid #222;
  border-radius:6px;
  padding:10px 10px;
  font:inherit;
  background:#fff;
}

.field-cleanzy textarea{ min-height:130px; resize:vertical; }

.note{
  font-size:12px;
  color:#555;
  margin-top:10px;
}

.btn-send{
  width:100%;
  padding:10px 14px;
  border-radius:4px;
  border:0;
  background:#2f63b5;
  color:#fff;
  cursor:pointer;
}
.btn-send:hover{ filter:brightness(.97); }

.map{
  width:100%;
  height:420px;
  border:0;
}

/* ✅ bloc "en bas du formulaire" (style Cleanzy) */
.form-bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.18);
  font-size:13px;
  color:#333;
}
.form-bottom__line{
  margin:0 0 10px;
  line-height:1.6;
}
.form-bottom a{
  color:#1d5cae;
  text-decoration:underline;
}

/* =========================
   Consentement (comme Cleanzy)
========================= */
.consent-cleanzy{
  margin-top: 14px;
  margin-bottom: 12px;
}
.consent-label{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.45;
  color: #111;
}
.consent-label input{
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent-label span{ display:inline-block; }

/* =========================
   ABOUT PAGE (sections)
========================= */
.about-split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items:center;
}

.about-title{
  margin:0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight:500;
  font-size:28px;
  color:#2d4f86;
}
.about-text{ max-width: 520px; }
.about-p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.75;
  font-size:13px;
}
.about-strong{
  margin-top:14px;
  font-weight:700;
  color:#111;
}
.about-media{ display:flex; justify-content:flex-end; }
.about-blob{
  width:100%;
  height:520px;
  object-fit:cover;
  border-radius: 46% 54% 62% 38% / 40% 40% 60% 60%;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* Devis section */
.cta-split{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 44px;
  align-items:center;
}
.cta-media{ display:flex; justify-content:flex-start; }
.cta-blob{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius: 58% 42% 52% 48% / 52% 62% 38% 48%;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.cta-text{
  text-align:center;
  max-width: 520px;
  margin-left:auto;
}
.cta-title{
  margin:0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight:500;
  font-size:28px;
  color:#2d4f86;
}
.cta-p{
  margin:0 auto 14px;
  color:var(--muted);
  line-height:1.75;
  max-width: 420px;
  font-size:13px;
}

/* =========================
   FOOTER
========================= */
.footer-cleanzy{
  padding:34px 0 70px;
  text-align:center;
  color:#444;
  font-size:13px;
}
.footer-cleanzy nav{
  display:flex;
  gap:18px;
  justify-content:center;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.footer-cleanzy a{
  color:#1d5cae;
  text-decoration:underline;
}

/* =========================
   Cookie button + modal
========================= */
.cookie-fab{
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: #6e768c;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.cookie-fab:hover{ filter: brightness(.95); }

.cookie-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  display: none;
}

.cookie-modal{
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(860px, calc(100% - 24px));
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 9999;
  border-radius: 10px;
  overflow: hidden;
  display: none;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.cookie-modal__header{
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9edf3;
}
.cookie-modal__header h2{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1b1f2a;
}
.cookie-close{
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

.cookie-modal__body{
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}
.cookie-desc{
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fff;
}
.cookie-row--all{
  background: #f6f8fc;
  border-color: #e8eef7;
}
.cookie-row span{
  font-size: 14px;
  color: #111827;
}

.cookie-row__right{
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-more{
  font-size: 14px;
  color: #2f63b5;
  text-decoration: underline;
}
.cookie-details{
  font-size: 13px;
  color: #374151;
  background: #f6f7fb;
  border: 1px solid #e9edf3;
  border-radius: 10px;
  padding: 12px;
}

.cookie-modal__footer{
  padding: 14px 18px;
  border-top: 1px solid #e9edf3;
  background: #e9f1ff;
}
.cookie-save{
  width: 100%;
  border: none;
  background: #3aa0ff;
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.cookie-save:hover{ filter: brightness(.96); }

.switch{
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input{ display:none; }
.slider{
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #c7cbd5;
  border-radius: 999px;
  transition: .2s;
}
.slider:before{
  position: absolute;
  content:"";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.switch input:checked + .slider{
  background-color: #3aa0ff;
}
.switch input:checked + .slider:before{
  transform: translateX(20px);
}

.cookie-open .cookie-overlay{ display:block; }
.cookie-open .cookie-modal{ display:block; }

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .h1-cleanzy{font-size:42px}

  .split, .reverse{ grid-template-columns:1fr; }
  .reverse .media{ order:0; }
  .blob{ height:320px; }

  .contact-grid{ grid-template-columns:1fr; }

  .header-cleanzy{
    position:relative;
    background:#111;
  }

  .nav-links{ flex-wrap:wrap; }
  .hero-cleanzy{
    min-height: 60vh;
    padding-top:18px;
  }
  .hero-cleanzy::after{ height:90px; }

  .about-split,
  .cta-split{ grid-template-columns:1fr; }

  .about-media,
  .cta-media{ justify-content:center; }

  .about-blob{ height:420px; }
  .cta-blob{ height:340px; }
  .cta-text{ margin:0 auto; }
}

@media (max-width: 520px){
  .container{ width:min(var(--max), calc(100% - 28px)); }
  .h1-cleanzy{font-size:34px}
  .nav-links{ font-size:16px; gap:10px; }
  .logo-img{ height:70px; }
}

.map-wrap{
  position: relative;
  width: 100%;
  height: 420px;          /* même hauteur que la carte */
  border-radius: 10px;
  overflow: hidden;       /* évite les débordements */
}

.map-wrap .map{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrap .map-placeholder{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd; /* optionnel */
}


/* ===============================
   EFFETS INTERACTIFS BOUTONS
================================ */



.btn-cleanzy,
.btn-blue,
.btn-send{
  transition: 
    transform .15s ease,
    box-shadow .15s ease,
    background-color .2s ease,
    color .2s ease,
    filter .15s ease;
  cursor: pointer;
}

/* ===== HOVER ===== */
.btn-cleanzy:hover,
.btn-blue:hover,
.btn-send:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* 🎨 Couleurs au survol */
.btn-cleanzy:hover{
  background:#f2f2f2;      /* bouton blanc hero devient gris doux */
}

.btn-blue:hover,
.btn-send:hover{
  background:#1f4e93;      /* bleu plus foncé */
  color:#fff;
}

/* ===== CLIC ===== */
.btn-cleanzy:active,
.btn-blue:active,
.btn-send:active{
  transform: translateY(1px) scale(.97);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

/* ===== Focus clavier ===== */
.btn-cleanzy:focus-visible,
.btn-blue:focus-visible,
.btn-send:focus-visible{
  outline: 3px solid rgba(47,99,181,.4);
  outline-offset: 3px;
}


/* =========================
   PAGE POLITIQUE DE CONFIDENTIALITÉ
========================= */

/* =========================
   PAGE POLITIQUE (LEGAL)
========================= */

/* HERO spécifique */
.hero-cleanzy--legal{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/legal_hero.jpg") center/cover no-repeat;
}

/* Zone principale : fond clair */
.legal-page{
  background: #f4f6fb;          /* clair (pas noir) */
  padding: 70px 0;
}

/* Carte blanche au centre */
.legal-card{
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}




/* Titres */
.legal-title{
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 34px;
  color: #2d4f86;              /* ✅ bleu */
}

/* Sous-titres */
.legal-card h3{
  margin: 18px 0 8px;
  font-size: 16px;
  color: #2d4f86;              /* ✅ bleu */
}

/* Texte */
.legal-card p,
.legal-card li{
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
}

.legal-card ul{
  margin: 10px 0 0 18px;
}

/* Liens */
.legal-card a{
  color: #2f63b5;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 520px){
  .legal-card{ padding: 22px 18px; }
  .legal-title{ font-size: 28px; }
}


/* =========================
   PAGE POLITIQUE — FIX ESPACE + STYLE BLEU
========================= */

/* Réduit l’espace entre le hero et le contenu (uniquement ici) */
.legal-content{
  padding-top: 28px;     /* au lieu de 72px */
  padding-bottom: 70px;
}

/* Carte propre (fond blanc) */
.legal-card{
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 26px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* Texte + titres */
.legal-card p,
.legal-card li{
  color: #4b5563;        /* ✅ plus noir */
  line-height: 1.75;
  font-size: 14px;
}

.legal-card h3{
  margin: 18px 0 8px;
  font-size: 16px;
  color: #2d4f86;        /* ✅ bleu */
}

.legal-card a{
  color: #2f63b5;
  text-decoration: underline;
}

.legal-intro{
  margin-top: 0;
}

/* Responsive */
@media (max-width: 520px){
  .legal-card{ padding: 20px 18px; }
}
