/* =====================================================================
   PLAN2SECURITE — feuille de style

   Charte tirée du logo : treize tuiles de couleur, lettres blanches.
   Le site reste blanc et sobre — c'est un métier de précision — et les
   couleurs du logo n'y reviennent qu'en touches : filets, pastilles,
   bandeaux des types de plans. Le vert et le rouge des plans eux-mêmes
   (évacuation, intervention) sont ceux que fixe la norme.

   Pas de police chargée depuis un tiers : pile du système.
   ===================================================================== */

:root {
  --encre:      #1f2233;
  --encre-doux: #5b6072;
  --trait:      #e4e6ec;
  --fond:       #ffffff;
  --fond-doux:  #f5f6f9;
  --nuit:       #262052;   /* le violet profond du logo, assombri */

  /* Les tuiles du logo */
  --orange:  #ee7f1a;
  --vert:    #0a9a48;
  --magenta: #e3097e;
  --taupe:   #8a7a70;
  --bleu:    #0d8bd0;
  --violet:  #3c2f88;
  --cyan:    #09a3df;
  --mauve:   #aa4a85;
  --rouge:   #d42a2f;   /* bandeau des plans d'intervention */

  --accent: var(--violet);
  --rayon: 8px;
  --largeur: 1140px;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.65 var(--police);
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

.evitement { position: absolute; left: -9999px; background: var(--nuit); color: #fff; padding: 10px 16px; z-index: 20; }
.evitement:focus { left: 12px; top: 12px; }

/* --- Boutons --------------------------------------------------------- */
.bouton {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--rayon);
  border: 2px solid var(--magenta);
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bouton:hover { background: #c1076b; border-color: #c1076b; }
.bouton--contour { background: transparent; color: var(--encre); border-color: currentColor; }
.bouton--contour:hover { background: rgba(0,0,0,.05); border-color: currentColor; }
.appel .bouton--contour { color: #fff; }
.appel .bouton--contour:hover { background: rgba(255,255,255,.1); }

/* --- Bandeau de contact --------------------------------------------- */
.bandeau-contact { background: var(--nuit); color: #d9d6ee; font-size: .88rem; }
.bandeau-contact-ligne { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.bandeau-contact-liens { display: flex; gap: 20px; }
.bandeau-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.bandeau-contact a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .bandeau-contact-accroche { display: none; }
  .bandeau-contact-ligne { justify-content: center; }
  .bandeau-contact-liens { flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
}

/* --- En-tête --------------------------------------------------------- */
.entete { background: #fff; border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 10; }
.entete-barre { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.marque img { width: 260px; }

.ouvre-menu { position: absolute; opacity: 0; pointer-events: none; }
.bouton-menu { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-titre {
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: default;
}
.nav > a:hover, .nav-groupe:hover .nav-titre { background: var(--fond-doux); }
.nav a.actif, .nav-titre.actif { color: var(--magenta); }
.nav .bouton--nav { margin-left: 10px; padding: 9px 16px; color: #fff; }
.nav .bouton--nav:hover { background: #c1076b; }

.nav-groupe { position: relative; }
.nav-titre::after { content: " ▾"; font-size: .8em; color: var(--encre-doux); }
.nav-sous {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: 0 12px 30px rgba(31,34,51,.12);
  padding: 8px;
}
.nav-groupe:hover .nav-sous, .nav-groupe:focus-within .nav-sous { display: block; }
.nav-sous a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--encre); text-decoration: none; }
.nav-sous a:hover { background: var(--fond-doux); }
.nav-sous a.actif { color: var(--magenta); font-weight: 600; }

@media (max-width: 1020px) {
  .marque img { width: 210px; }
  .bouton-menu {
    display: block; cursor: pointer; font-weight: 700;
    border: 2px solid var(--encre); border-radius: 6px; padding: 6px 14px;
  }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; gap: 0; }
  .ouvre-menu:checked ~ .nav { display: flex; }
  .ouvre-menu:focus-visible + .bouton-menu { outline: 3px solid var(--bleu); }
  .nav > a, .nav-titre { display: block; padding: 11px 4px; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .nav-titre::after { content: ""; }
  .nav-sous { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav .bouton--nav { margin: 14px 0 0; text-align: center; }
}

/* --- Titre de page --------------------------------------------------- */
.titre-page { background: var(--fond-doux); border-bottom: 1px solid var(--trait); padding: 44px 0 30px; }
.titre-page h1 { margin-bottom: .3em; }
.chapo { color: var(--encre-doux); font-size: 1.12rem; max-width: 62ch; margin: 0; }

/* Les tuiles du logo, en filet sous les titres */
.filet { display: flex; gap: 4px; margin: 0 0 18px; }
.filet span { width: 22px; height: 5px; border-radius: 2px; }
.filet span:nth-child(1) { background: var(--orange); }
.filet span:nth-child(2) { background: var(--vert); }
.filet span:nth-child(3) { background: var(--magenta); }
.filet span:nth-child(4) { background: var(--bleu); }
.filet span:nth-child(5) { background: var(--violet); }

/* --- Sections -------------------------------------------------------- */
.section { padding: 64px 0; }
.section--douce { background: var(--fond-doux); }
.section-tete { max-width: 720px; margin-bottom: 36px; }
.section-tete p { color: var(--encre-doux); font-size: 1.06rem; }

/* --- Accueil : ouverture -------------------------------------------- */
.ouverture { padding: 56px 0 64px; background: linear-gradient(180deg, var(--fond-doux), #fff); }
.ouverture-grille { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .ouverture-grille { grid-template-columns: 1fr 1.05fr; } }
.ouverture h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); }
.ouverture .chapo { margin-bottom: 28px; }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ouverture-image img { border-radius: 10px; box-shadow: 0 24px 50px rgba(31,34,51,.18); border: 1px solid var(--trait); }

/* --- Atouts ---------------------------------------------------------- */
.atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px)  { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .atouts { grid-template-columns: repeat(4, 1fr); } }
.article-image .atouts { grid-template-columns: 1fr; }
.atouts li {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 18px 20px 18px 24px; position: relative; color: var(--encre-doux);
}
.atouts li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; }
.atouts li:nth-child(1)::before { background: var(--vert); }
.atouts li:nth-child(2)::before { background: var(--bleu); }
.atouts li:nth-child(3)::before { background: var(--orange); }
.atouts li:nth-child(4)::before { background: var(--magenta); }
.atouts strong { display: block; color: var(--encre); font-size: 1.1rem; }

/* --- Cartes des plans ------------------------------------------------ */
.plans { display: grid; gap: 22px; }
@media (min-width: 560px)  { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan-carte {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.plan-carte:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(31,34,51,.12); }
.plan-carte-image { aspect-ratio: 4 / 3; background: var(--fond-doux); border-bottom: 4px solid var(--c); }
.plan-carte-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.plan-carte-corps { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.plan-carte-corps p { color: var(--encre-doux); flex: 1; }
.plan-carte-lien { font-weight: 700; color: var(--c); }

.c-vert    { --c: var(--vert); }
.c-rouge   { --c: var(--rouge); }
.c-orange  { --c: var(--orange); }
.c-bleu    { --c: var(--bleu); }

/* --- Atelier --------------------------------------------------------- */
.atelier { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .atelier { grid-template-columns: 1.1fr 1fr; } }
.atelier img { border-radius: 10px; }
.atelier-images { display: grid; gap: 14px; }

/* --- Pages de contenu ----------------------------------------------- */
.article { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .article { grid-template-columns: 1.15fr 1fr; } }
.article h2 { margin-top: 1.4em; }
.article h2:first-child { margin-top: 0; }
.article-image { position: sticky; top: 110px; }
.article-image figure { margin: 0 0 18px; }
.article-image img { border-radius: 8px; border: 1px solid var(--trait); box-shadow: 0 14px 30px rgba(31,34,51,.1); }
.article-image figcaption { font-size: .88rem; color: var(--encre-doux); margin-top: 8px; }
@media (max-width: 899px) { .article-image { position: static; } }

.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c, var(--magenta)); }

.encart {
  background: var(--fond-doux); border-left: 4px solid var(--c, var(--violet));
  border-radius: 0 var(--rayon) var(--rayon) 0; padding: 16px 20px; margin: 22px 0;
}
.encart p:last-child { margin: 0; }

.telechargement {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 14px 18px; text-decoration: none; color: var(--encre); margin: 22px 0;
}
.telechargement:hover { border-color: var(--c, var(--violet)); }
.telechargement-type { background: var(--c, var(--violet)); color: #fff; font-weight: 800; font-size: .78rem; padding: 6px 8px; border-radius: 5px; }
.telechargement small { display: block; color: var(--encre-doux); }

.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

/* Listes à pastilles (finitions, emplacements, secteurs) */
.liste-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); list-style: none; padding: 0; margin: 0; }
.liste-cartes > li { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px 20px; }
.liste-cartes h3 { margin-bottom: .35em; }
.liste-cartes p, .liste-cartes ul { color: var(--encre-doux); margin: 0; }
.liste-cartes ul { padding-left: 1.1em; }
.liste-cartes li li { margin-bottom: .3em; }

.pastilles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles li { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 7px 16px; }

/* --- Appel au devis -------------------------------------------------- */
.appel { background: var(--nuit); color: #fff; padding: 46px 0; }
.appel h2 { margin-bottom: .3em; }
.appel p { color: #d9d6ee; margin: 0; }
.appel-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.appel-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Formulaire ------------------------------------------------------ */
.fiche { display: grid; gap: 44px; }
@media (min-width: 900px) { .fiche { grid-template-columns: 1fr 1.6fr; } }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; margin-bottom: 5px; }
.champ label small { font-weight: 400; color: var(--encre-doux); }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: inherit;
  border: 1px solid #cdd1da; border-radius: 6px; padding: 10px 12px; background: #fff;
}
.champ input[type=file] { padding: 8px; background: var(--fond-doux); }
.champ input:focus, .champ textarea:focus { outline: 3px solid rgba(13,139,208,.25); border-color: var(--bleu); }
.champs-ligne { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .champs-ligne { grid-template-columns: 1fr 1fr; } }
.aide { font-size: .88rem; color: var(--encre-doux); }
.message { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.message--ok   { background: #e6f5ec; color: #0b6b35; }
.message--ko   { background: #fdeaea; color: #9c1c20; }
.message--info { background: #eef3fb; color: #264a86; }
.coordonnees p { margin-bottom: 1.1em; }
.coordonnees strong { display: block; }

/* --- Pied ------------------------------------------------------------ */
.pied { background: #1c1935; color: #c9c6dc; padding: 50px 0 0; font-size: .94rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied p { margin: 0 0 .5em; }
.pied-grille { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pied-logo { width: 220px; background: #fff; padding: 8px; border-radius: 6px; margin-bottom: 14px; }
.pied-titre { color: #fff; font-weight: 700; margin-bottom: .8em !important; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 16px; padding-bottom: 16px; font-size: .86rem; }

/* --- Pages de destination des annonces ------------------------------ */
.titre-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.coches { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.coches li { position: relative; padding-left: 26px; font-weight: 600; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/100% no-repeat;
}

.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etapes li { counter-increment: etape; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px; margin-bottom: 12px;
  background: var(--violet); color: #fff; font-weight: 800;
}
.etapes li:nth-child(2)::before { background: var(--magenta); }
.etapes li:nth-child(3)::before { background: var(--orange); }
.etapes strong { display: block; margin-bottom: 4px; }
.etapes span { color: var(--encre-doux); }

.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--magenta); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--encre-doux); padding-bottom: 16px; margin: 0; }

/* Barre d'appel fixe, sur téléphone seulement */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    box-shadow: 0 -4px 18px rgba(31,34,51,.15);
  }
  .barre-mobile a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; background: var(--nuit); color: #fff; }
  .barre-mobile .barre-mobile-devis { background: var(--magenta); }
  body { padding-bottom: 54px; }
}

/* Bandeau de consentement (seulement si Google Ads est branché) */
.consentement {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px;
  background: #fff; border: 1px solid var(--trait); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(31,34,51,.2); padding: 18px 20px;
}
.consentement p { margin: 0 0 12px; font-size: .95rem; }
.consentement-boutons { display: flex; gap: 10px; justify-content: flex-end; }
.consentement .bouton { padding: 8px 18px; }
@media (max-width: 720px) { .consentement { bottom: 70px; } }
