/* ============================================================
   RÊVE TOITURE — Couvreur Orléans
   Design system bleu-blanc-rouge
   ============================================================ */

:root {
  /* Couleurs drapeau */
  --bleu: #0055A4;
  --bleu-fonce: #013a73;
  --bleu-nuit: #04284a;
  --rouge: #EF4135;
  --rouge-fonce: #c8281d;
  --blanc: #FFFFFF;
  --bleu-elec: #2563EB;
  --vert: #16A34A;

  /* Gris / texte */
  --titre: #1F2937;
  --texte: #4B5563;
  --gris-clair: #F4F6FA;
  --gris-bord: #E3E8F0;

  /* Système */
  --rayon: 14px;
  --rayon-sm: 10px;
  --ombre: 0 10px 30px rgba(4, 40, 74, .08);
  --ombre-fort: 0 20px 50px rgba(4, 40, 74, .16);
  --ombre-card: 0 4px 18px rgba(4, 40, 74, .07);
  --max: 1200px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);

  --police-titre: 'Poppins', system-ui, sans-serif;
  --police-texte: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--police-texte);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--titre); line-height: 1.15; font-weight: 700; }
:focus-visible { outline: 3px solid var(--bleu-elec); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilitaires ---------- */
.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section--gris { background: var(--gris-clair); }
.section--bleu { background: var(--bleu-nuit); color: #cfe0f2; }
.section--bleu h2, .section--bleu h3 { color: #fff; }

.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--police-titre); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rouge);
  margin-bottom: 14px;
}
.surtitre::before { content: ""; width: 26px; height: 3px; background: var(--rouge); border-radius: 2px; }

.titre-section { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 760px; margin-bottom: 18px; }
.section--centre { text-align: center; }
.section--centre .surtitre::before { display: none; }
.section--centre .titre-section { margin-left: auto; margin-right: auto; }
.intro-section { max-width: 640px; font-size: 1.06rem; }
.section--centre .intro-section { margin: 0 auto; }

/* Barre tricolore */
.tricolore { display: flex; height: 4px; width: 100%; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: var(--bleu); }
.tricolore span:nth-child(2) { background: var(--blanc); }
.tricolore span:nth-child(3) { background: var(--rouge); }
.tricolore--fin { height: 4px; max-width: 90px; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--police-titre); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-align: center; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--rouge { background: var(--rouge); color: #fff; box-shadow: 0 8px 20px rgba(239, 65, 53, .3); }
.btn--rouge:hover { background: var(--rouge-fonce); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(239, 65, 53, .4); }
.btn--bleu { background: var(--bleu); color: #fff; }
.btn--bleu:hover { background: var(--bleu-fonce); transform: translateY(-2px); }
.btn--ligne { background: transparent; border-color: var(--bleu); color: var(--bleu); }
.btn--ligne:hover { background: var(--bleu); color: #fff; }
.btn--blanc { background: #fff; color: var(--bleu); }
.btn--blanc:hover { background: var(--gris-clair); transform: translateY(-2px); }
.btn--tel { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--tel:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   HEADER
   ============================================================ */
.barre-info {
  background: var(--bleu-nuit); color: #d7e4f3; font-size: .85rem;
  padding: 7px 0;
}
.barre-info .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.barre-info a { color: #fff; font-weight: 600; }
.barre-info .pastilles { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.barre-info .pastilles span { display: inline-flex; align-items: center; gap: 6px; }
.barre-info svg { width: 15px; height: 15px; }

.entete {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--gris-bord);
  transition: box-shadow var(--transition);
}
.entete.colle { box-shadow: 0 6px 24px rgba(4,40,74,.1); }
.entete__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img { height: 58px; width: auto; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt strong { font-family: var(--police-titre); font-size: 1.15rem; color: var(--bleu); font-weight: 800; letter-spacing: -.01em; }
.logo__txt small { font-size: .72rem; color: var(--texte); letter-spacing: .04em; text-transform: uppercase; }
.logo__drapeau { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; display: inline-flex; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.logo__drapeau i { flex: 1; }
.logo__drapeau i:nth-child(1){background:var(--bleu)} .logo__drapeau i:nth-child(2){background:#fff} .logo__drapeau i:nth-child(3){background:var(--rouge)}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--police-titre); font-weight: 500; font-size: .97rem; color: var(--titre); padding: 9px 13px; border-radius: 8px; transition: var(--transition); }
.nav a:hover, .nav a.actif { color: var(--bleu); background: var(--gris-clair); }
.entete__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tel-entete { display: inline-flex; align-items: center; gap: 8px; font-family: var(--police-titre); font-weight: 700; color: var(--bleu); font-size: 1.05rem; }
.tel-entete svg { width: 20px; height: 20px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--bleu); border-radius: 2px; transition: var(--transition); }
.burger.ouvert span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger.ouvert span:nth-child(2){ opacity: 0; }
.burger.ouvert span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--bleu-nuit); color: #fff; overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 70px 0 80px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero__badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600; font-family: var(--police-titre); }
.hero__badge svg { width: 15px; height: 15px; color: #ffd34d; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: #ff7b6f; }
.hero__sous { font-size: 1.15rem; color: #cdddf0; max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__visuel { position: relative; }
.hero__visuel img { border-radius: var(--rayon); box-shadow: var(--ombre-fort); aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.hero__flottant { position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--titre); border-radius: var(--rayon); padding: 16px 20px; box-shadow: var(--ombre-fort); display: flex; align-items: center; gap: 14px; }
.hero__flottant .num { font-family: var(--police-titre); font-size: 1.9rem; font-weight: 800; color: var(--bleu); line-height: 1; }
.hero__flottant small { font-size: .8rem; color: var(--texte); }
.hero__deco { position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(239,65,53,.22), transparent 70%); border-radius: 50%; }

/* Bandeau confiance */
.confiance { background: #fff; border-bottom: 1px solid var(--gris-bord); }
.confiance__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding: 22px 0; }
.confiance__item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--police-titre); font-weight: 600; color: var(--titre); font-size: .95rem; }
.confiance__item svg { width: 22px; height: 22px; color: var(--bleu); }
.confiance__sep { width: 1px; height: 26px; background: var(--gris-bord); }

/* ============================================================
   GRILLE SERVICES
   ============================================================ */
.grille-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.carte-service {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
  box-shadow: var(--ombre-card);
}
.carte-service:hover { transform: translateY(-6px); box-shadow: var(--ombre-fort); border-color: transparent; }
.carte-service__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.carte-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte-service:hover .carte-service__img img { transform: scale(1.06); }
.carte-service__corps { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.carte-service__corps h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--titre); }
.carte-service__corps p { font-size: .95rem; margin-bottom: 16px; flex: 1; }
.lien-fleche { display: inline-flex; align-items: center; gap: 7px; font-family: var(--police-titre); font-weight: 600; color: var(--rouge); font-size: .95rem; align-self: flex-start; transition: gap var(--transition); }
.lien-fleche:hover { gap: 12px; }
.lien-fleche svg { width: 17px; height: 17px; }

/* ============================================================
   PROJETS / GALERIE (grilles + lightbox)
   ============================================================ */
.grille-projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.projet-vignette { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--ombre-card); }
.projet-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.projet-vignette:hover img { transform: scale(1.07); }
.projet-vignette__legende { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(4,40,74,.85)); color: #fff; padding: 28px 16px 14px; font-family: var(--police-titre); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.projet-vignette:hover .projet-vignette__legende { opacity: 1; transform: translateY(0); }

.filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 0; }
.filtre { font-family: var(--police-titre); font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 50px; border: 2px solid var(--gris-bord); background: #fff; color: var(--texte); cursor: pointer; transition: var(--transition); }
.filtre:hover { border-color: var(--bleu); color: var(--bleu); }
.filtre.actif { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.grille-galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.galerie-item { border-radius: var(--rayon-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1; box-shadow: var(--ombre-card); }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(4,40,74,.94); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.ouvert { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--rayon); box-shadow: var(--ombre-fort); }
.lightbox__fermer, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox__fermer { top: 22px; right: 22px; }
.lightbox__nav:hover, .lightbox__fermer:hover { background: rgba(255,255,255,.3); }
.lightbox__nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   POURQUOI NOUS / chiffres
   ============================================================ */
.pourquoi { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pourquoi__args { display: grid; gap: 22px; margin-top: 30px; }
.arg { display: flex; gap: 16px; }
.arg__ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; background: rgba(0,85,164,.1); color: var(--bleu); display: flex; align-items: center; justify-content: center; }
.arg__ico svg { width: 26px; height: 26px; }
.arg h3 { font-size: 1.12rem; margin-bottom: 4px; }
.arg p { font-size: .95rem; }
.pourquoi__logo { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 40px; text-align: center; box-shadow: var(--ombre); }
.pourquoi__logo img { max-width: 260px; margin: 0 auto 20px; }
.pourquoi__logo p { font-size: .98rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 14px; }
.stat__num { font-family: var(--police-titre); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__num .pct { color: #ff7b6f; }
.stat__label { font-family: var(--police-titre); font-weight: 600; color: #fff; margin: 8px 0 4px; }
.stat p { font-size: .9rem; color: #aecbe8; }

/* ============================================================
   PROCESSUS
   ============================================================ */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 46px; position: relative; }
.etape { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 30px 24px; text-align: center; position: relative; box-shadow: var(--ombre-card); }
.etape__num { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--bleu); color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,85,164,.3); }
.etape:nth-child(2) .etape__num { background: var(--rouge); box-shadow: 0 6px 16px rgba(239,65,53,.3); }
.etape h3 { font-size: 1.12rem; margin-bottom: 8px; }
.etape p { font-size: .93rem; }

/* ============================================================
   AVIS (carrousel)
   ============================================================ */
.carrousel { position: relative; margin-top: 44px; }
.carrousel__piste { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; -ms-overflow-style: none; scrollbar-width: none; }
.carrousel__piste::-webkit-scrollbar { display: none; }
.avis-carte { scroll-snap-align: start; flex: 0 0 calc(33.333% - 16px); background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre-card); display: flex; flex-direction: column; }
.avis-carte__etoiles { color: #ffb400; display: flex; gap: 2px; margin-bottom: 14px; }
.avis-carte__etoiles svg { width: 18px; height: 18px; }
.avis-carte__texte { font-size: .98rem; color: var(--titre); flex: 1; margin-bottom: 18px; }
.avis-carte__pied { display: flex; align-items: center; gap: 12px; }
.avis-carte__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bleu); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--police-titre); font-weight: 700; }
.avis-carte__nom { font-family: var(--police-titre); font-weight: 700; color: var(--titre); font-size: .98rem; }
.avis-carte__ville { font-size: .85rem; color: var(--texte); }
.carrousel__ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.carrousel__google { display: inline-flex; align-items: center; gap: 10px; font-family: var(--police-titre); font-weight: 600; color: var(--titre); }
.carrousel__google .etoiles { color: #ffb400; display: inline-flex; }
.carrousel__google .etoiles svg { width: 17px; height: 17px; }
.carrousel__fleches { display: flex; gap: 10px; }
.carrousel__fleches button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gris-bord); background: #fff; color: var(--bleu); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.carrousel__fleches button:hover { background: var(--bleu); color: #fff; border-color: var(--bleu); }

/* ============================================================
   TYPES DE TOITURES
   ============================================================ */
.grille-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.carte-type { border-radius: var(--rayon); overflow: hidden; position: relative; aspect-ratio: 3/4; box-shadow: var(--ombre-card); }
.carte-type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte-type:hover img { transform: scale(1.07); }
.carte-type__voile { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(4,40,74,.9)); }
.carte-type__contenu { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; }
.carte-type__contenu h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.carte-type__contenu .duree { font-size: .85rem; color: #ffd34d; font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq__item { border: 1px solid var(--gris-bord); border-radius: var(--rayon-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-family: var(--police-titre); font-weight: 600; font-size: 1.04rem; color: var(--titre); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__q:hover { color: var(--bleu); }
.faq__q .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gris-clair); color: var(--bleu); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: var(--transition); }
.faq__item.ouvert .plus { background: var(--bleu); color: #fff; transform: rotate(45deg); }
.faq__r { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__r p { padding: 0 24px 22px; font-size: .98rem; }

/* ============================================================
   SLIDER AVANT/APRÈS
   ============================================================ */
.ba-slider { position: relative; max-width: 760px; margin: 36px auto 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-fort); user-select: none; aspect-ratio: 4/3; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider__apres { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.ba-slider__apres img { left: 0; }
.ba-slider__apres img { width: auto; height: 100%; max-width: none; }
.ba-poignee { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%); cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.ba-poignee::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; }
.ba-poignee span { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--bleu); display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre); font-weight: 800; z-index: 2; }
.ba-etiquette { position: absolute; top: 14px; padding: 5px 12px; border-radius: 50px; font-family: var(--police-titre); font-weight: 700; font-size: .8rem; color: #fff; }
.ba-etiquette.avant { left: 14px; background: rgba(4,40,74,.8); }
.ba-etiquette.apres { right: 14px; background: var(--rouge); }

/* ============================================================
   FORMULAIRE DEVIS
   ============================================================ */
.bloc-devis { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: stretch; }
.bloc-devis__gauche { color: #fff; }
.bloc-devis__gauche .surtitre { color: #ff9d92; }
.bloc-devis__gauche .surtitre::before { background: #ff9d92; }
.bloc-devis__gauche h2 { color: #fff; }
.bloc-devis__atouts { display: grid; gap: 14px; margin-top: 26px; }
.bloc-devis__atouts li { display: flex; gap: 12px; align-items: center; color: #d7e4f3; }
.bloc-devis__atouts svg { width: 22px; height: 22px; color: var(--vert); flex-shrink: 0; }
.bloc-devis__image { margin-top: 30px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-fort); }
.bloc-devis__image img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.form-devis { background: #fff; border-radius: var(--rayon); padding: 34px; box-shadow: var(--ombre-fort); }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.plein { grid-column: 1 / -1; }
.champ label { font-family: var(--police-titre); font-weight: 600; font-size: .88rem; color: var(--titre); }
.champ label .req { color: var(--rouge); }
.champ input, .champ select, .champ textarea {
  font-family: var(--police-texte); font-size: .98rem; padding: 12px 14px;
  border: 1.5px solid var(--gris-bord); border-radius: var(--rayon-sm); background: var(--gris-clair);
  color: var(--titre); transition: var(--transition); width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--bleu); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0,85,164,.12); }
.champ textarea { resize: vertical; min-height: 110px; }
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: var(--rouge); }
.champ__erreur { font-size: .8rem; color: var(--rouge); display: none; }
.champ.invalide .champ__erreur { display: block; }
.rgpd { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.rgpd input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--bleu); }
.form-devis .btn { width: 100%; margin-top: 6px; }
.form-confirmation { display: none; text-align: center; padding: 30px 10px; }
.form-confirmation.visible { display: block; }
.form-confirmation .coche { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: rgba(22,163,74,.12); color: var(--vert); display: flex; align-items: center; justify-content: center; }
.form-confirmation .coche svg { width: 40px; height: 40px; }
.form-confirmation h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* ============================================================
   BLOC CTA
   ============================================================ */
.bande-cta { background: linear-gradient(120deg, var(--bleu), var(--bleu-fonce)); color: #fff; border-radius: var(--rayon); padding: 46px; text-align: center; position: relative; overflow: hidden; }
.bande-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.bande-cta p { color: #cdddf0; max-width: 560px; margin: 0 auto 26px; }
.bande-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bande-cta::after { content: ""; position: absolute; bottom: -80px; right: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(239,65,53,.3), transparent 70%); }

/* ============================================================
   FOOTER
   ============================================================ */
.pied { background: var(--bleu-nuit); color: #aecbe8; padding-top: 64px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.pied__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.pied__col ul li { margin-bottom: 10px; }
.pied__col a { font-size: .94rem; transition: var(--transition); }
.pied__col a:hover { color: #fff; padding-left: 4px; }
.pied__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pied__logo img { height: 54px; }
.pied__logo strong { font-family: var(--police-titre); color: #fff; font-size: 1.2rem; }
.pied__desc { font-size: .94rem; margin-bottom: 18px; max-width: 300px; }
.pied__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .94rem; }
.pied__contact svg { width: 18px; height: 18px; color: #6ea8e0; flex-shrink: 0; margin-top: 3px; }
.pied__contact a:hover { padding-left: 0; }
.pied__bas { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.pied__bas a:hover { color: #fff; }
.pied__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   FIL D'ARIANE + EN-TÊTE DE PAGE
   ============================================================ */
.page-entete { background: var(--bleu-nuit); color: #fff; padding: 50px 0 54px; position: relative; overflow: hidden; }
.page-entete::after { content: ""; position: absolute; top: -100px; right: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(239,65,53,.18), transparent 70%); border-radius: 50%; }
.page-entete h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; position: relative; }
.page-entete p { color: #cdddf0; max-width: 620px; position: relative; }
.ariane { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #9fc0e4; margin-bottom: 16px; position: relative; }
.ariane a:hover { color: #fff; }
.ariane span { color: #6ea8e0; }

/* Contenu éditorial sous-pages */
.contenu-page { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul.puces { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul.puces li { display: flex; gap: 10px; }
.prose ul.puces li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,85,164,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055A4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }
.prose__images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.prose__images img { border-radius: var(--rayon); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--ombre-card); }
.aside-cta { position: sticky; top: 100px; background: var(--gris-clair); border: 1px solid var(--gris-bord); border-radius: var(--rayon); padding: 28px; }
.aside-cta h3 { font-size: 1.25rem; margin-bottom: 10px; }
.aside-cta p { font-size: .94rem; margin-bottom: 16px; }
.aside-cta .btn { width: 100%; margin-bottom: 10px; }
.aside-liens { margin-top: 22px; }
.aside-liens h4 { font-family: var(--police-titre); font-size: .95rem; margin-bottom: 10px; color: var(--titre); }
.aside-liens a { display: block; padding: 8px 0; border-bottom: 1px solid var(--gris-bord); font-size: .92rem; color: var(--bleu); }
.aside-liens a:hover { padding-left: 5px; }

/* Pages légales */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .acompleter { background: #fff4d6; border: 1px solid #f0d68a; color: #8a6d1a; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav, .tel-entete { display: none; }
  .burger { display: flex; }
  /* iOS Safari : backdrop-filter sur l'en-tête piège le menu fixe et le rend transparent -> on le retire sur mobile */
  .entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: #fff; background-color: #fff; isolation: isolate; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    flex-direction: column; align-items: stretch; padding: 90px 24px 30px; gap: 4px;
    box-shadow: var(--ombre-fort); transform: translateX(100%); transition: transform .3s; z-index: 99;
  }
  .nav.ouvert { display: flex; transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--gris-bord); border-radius: 0; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .overlay-nav { position: fixed; inset: 0; background: rgba(4,40,74,.5); z-index: 98; display: none; }
  .overlay-nav.actif { display: block; }
  .hero__grille, .pourquoi, .bloc-devis, .contenu-page { grid-template-columns: 1fr; gap: 36px; }
  .hero__visuel { order: -1; }
  .grille-services, .grille-projets { grid-template-columns: repeat(2, 1fr); }
  .stats, .etapes, .grille-types { grid-template-columns: repeat(2, 1fr); }
  .grille-galerie { grid-template-columns: repeat(3, 1fr); }
  .avis-carte { flex: 0 0 calc(50% - 12px); }
  .contenu-page { grid-template-columns: 1fr; }
  .aside-cta { position: static; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  body { font-size: 16px; }
  .barre-info .pastilles { display: none; }
  .grille-services, .grille-projets, .grille-galerie, .stats, .etapes, .grille-types { grid-template-columns: 1fr; }
  .grille-galerie { grid-template-columns: repeat(2, 1fr); }
  .avis-carte { flex: 0 0 calc(100% - 4px); }
  .hero__flottant { left: 50%; transform: translateX(-50%); bottom: -26px; }
  .prose__images { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bande-cta, .form-devis { padding: 28px 22px; }
  .form-grille { grid-template-columns: 1fr; }
  .pied__bas { flex-direction: column; text-align: center; }
}

/* ============================================================
   OPTIMISATIONS MOBILE
   ============================================================ */
/* Barre d'action fixe (appel + devis) — visible sur mobile uniquement */
.cta-mobile {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; box-shadow: 0 -4px 20px rgba(4, 40, 74, .16);
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid var(--gris-bord);
}
.cta-mobile__inner { display: grid; grid-template-columns: 1fr 1fr; }
.cta-mobile a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; font-family: var(--police-titre); font-weight: 700; font-size: 1.02rem;
}
.cta-mobile a svg { width: 20px; height: 20px; }
.cta-mobile__tel { background: var(--bleu); color: #fff; }
.cta-mobile__devis { background: var(--rouge); color: #fff; }
.cta-mobile__tel:active { background: var(--bleu-fonce); }
.cta-mobile__devis:active { background: var(--rouge-fonce); }

@media (max-width: 768px) {
  .cta-mobile { display: block; }
  body { padding-bottom: 58px; }
  /* la barre passe sous le menu plein écran quand il est ouvert */
  .nav.ouvert ~ .cta-mobile,
  .overlay-nav.actif ~ .cta-mobile { z-index: 1; }
}

/* Confort tactile & lisibilité sur petits écrans */
@media (max-width: 620px) {
  .section { padding: 48px 0; }
  .conteneur { padding: 0 18px; }
  /* CTA hero pleine largeur, plus faciles à toucher */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__grille { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  /* boutons et liens : cibles tactiles plus généreuses */
  .btn { padding: 15px 24px; min-height: 50px; }
  .bande-cta__btns { flex-direction: column; }
  .bande-cta__btns .btn { width: 100%; }
  .aside-cta .btn { min-height: 52px; }
  /* éviter le débordement horizontal des titres longs */
  .titre-section, .hero h1, .page-entete h1 { overflow-wrap: anywhere; }
  /* header : le bouton Devis fait doublon avec la barre du bas -> on libère la place pour le burger */
  .entete__actions .btn { display: none; }
  .logo img { height: 48px; }
  .logo__txt strong { font-size: 1.02rem; }
  /* barre info : ne garder que le numéro, cliquable et lisible */
  .barre-info { font-size: .78rem; }
  .barre-info .conteneur { justify-content: center; }
  /* faîtage des cartes services : image un peu plus basse pour voir + de contenu */
  .carte-service__img { aspect-ratio: 16/10; }
  /* slider avant/après : poignée plus grosse au doigt */
  .ba-poignee span { width: 50px; height: 50px; }
  /* page-entête plus compacte */
  .page-entete { padding: 38px 0 40px; }
  .bandeau-zone { padding: 64px 0; background-attachment: scroll; }
}

/* ============ ACCENTS TRICOLORES ============ */
/* Soulignement bleu-blanc-rouge sous les titres de sections centrées */
.section--centre .titre-section { position: relative; padding-bottom: 18px; }
.section--centre .titre-section::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 66px; height: 4px; border-radius: 3px;
  background: linear-gradient(to right, var(--bleu) 0 33.33%, #fff 33.33% 66.66%, var(--rouge) 66.66% 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
}

/* ============ BANDEAU ZONE D'INTERVENTION ============ */
.bandeau-zone {
  position: relative; padding: clamp(72px, 10vw, 120px) 0; text-align: center; color: #fff;
  background: url(../img/bandeau-zone.webp) center / cover no-repeat;
}
.bandeau-zone__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(4,40,74,.60), rgba(1,58,115,.70));
}
.bandeau-zone__inner { position: relative; z-index: 1; }
.bandeau-zone__drapeau { margin: 0 auto 20px; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.bandeau-zone h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 14px; }
.bandeau-zone p { max-width: 640px; margin: 0 auto 28px; color: #e7eef7; font-size: 1.05rem; }

/* ============ CADRE TRICOLORE SUBTIL (rappel drapeau français) ============ */
/* Cadre dessiné AU-DESSUS de l'image (pseudo-élément), sinon l'image le masque */
.carte-service__img::after,
.projet-vignette::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border: 3px solid transparent; border-radius: inherit;
}
/* Cycle bleu / blanc / rouge sur les cartes de services */
.carte-service:nth-child(3n+1) .carte-service__img::after,
.projet-vignette:nth-child(3n+1)::after { border-color: rgba(0,85,164,.9); }
.carte-service:nth-child(3n+2) .carte-service__img::after,
.projet-vignette:nth-child(3n+2)::after { border-color: rgba(255,255,255,.92); }
.carte-service:nth-child(3n) .carte-service__img::after,
.projet-vignette:nth-child(3n)::after { border-color: rgba(239,65,53,.9); }

/* Liseré tricolore subtil sous le menu (lien actif + survol) */
.nav a { position: relative; }
.nav a.actif::after,
.nav a:hover::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--bleu) 0 34%, #fff 34% 66%, var(--rouge) 66% 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
@media (max-width: 980px) { .nav a.actif::after, .nav a:hover::after { display: none; } }

/* Cartes Zones : "Voir nos interventions" en bleu/blanc/rouge + ligne Loiret */
.carte-type__contenu .duree .z-b { color: #6fb0ff; }
.carte-type__contenu .duree .z-w { color: #ffffff; }
.carte-type__contenu .duree .z-r { color: #ff7a6e; }
.zone-loiret { display: block; margin-top: 3px; font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.75); }
