/* Feuille de style des pages intérieures (services, métiers, à propos…).
   Reprend les réglages de la page d'accueil (index.html), qui garde son propre CSS. */

/* ---------- Couleurs et réglages globaux ---------- */
:root {
  --fond: #1B1B1D;
  --fond-2: #222225;
  --fond-3: #2A2A2E;
  --ligne: #36363B;
  --texte: #F4F3F1;
  --texte-2: #F4F3F1;
  --texte-3: #A8A8AD;      /* petites mentions seulement */
  --accent: #2ED3A0;
  --accent-clair: #5EE3BA;
  --sur-accent: #0C1F19;
  --accent-fond: color-mix(in srgb, var(--accent) 12%, transparent);
  --rayon: 16px;
  --max: 1180px;
  --f-titre: "Instrument Serif", Georgia, serif;
  --f-ui: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--fond); color: var(--texte); font-family: var(--f-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--f-titre); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
h1 .accent, h2 .accent { font-style: italic; }
h3 { font-family: var(--f-ui); line-height: 1.2; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 72px 0; }
/* Espaces réguliers (mesurés) : ~56 px sous le haut de page, ~96 px avant l'encadré « Chez vous… » */
.page-hero .conteneur > :last-child, .page-hero .hero-2col > div > :last-child { margin-bottom: 0; }
.page-hero + section:not(.fond-alt), .page-hero + article > section:first-child + section { padding-top: 0; }
section#contact { padding-top: 8px; }
.fond-alt + section#contact { padding-top: 72px; }
/* Deux sections de même fond qui se suivent : une seule marge entre elles, pas deux */
main section:not(.fond-alt):not(.page-hero):not(.section-lettre) + section:not(.fond-alt):not(.section-lettre),
article > section:not(.fond-alt):not(.page-hero) + section:not(.fond-alt),
.fond-alt + .fond-alt { padding-top: 0; }
section#contact + section:not(.fond-alt):not(.section-lettre) { padding-top: 8px; }
section > .conteneur { position: relative; z-index: 1; }
.fond-alt { background: var(--fond-2); }
.fond-alt .carte { background: var(--fond); }
.titre-section { font-size: clamp(34px, 4.6vw, 54px); max-width: 800px; margin-bottom: 18px; }
.intro-section { color: var(--texte-2); font-size: 18px; max-width: 640px; margin-bottom: 40px; }

/* Textures (mêmes que la page d'accueil) */
.statique::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.t-grille::after {
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at var(--ox) var(--oy), #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 85% at var(--ox) var(--oy), #000 0%, transparent 72%);
}
.t-ondes::after {
  background: repeating-radial-gradient(circle at var(--ox) var(--oy), transparent 0 34px, color-mix(in srgb, var(--accent) 20%, transparent) 34px 35px);
  -webkit-mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 5%, transparent 62%);
          mask-image: radial-gradient(circle at var(--ox) var(--oy), #000 5%, transparent 62%);
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s, background .2s, border-color .2s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--sur-accent); }
.btn-accent:hover { background: var(--accent-clair); }
.btn-contour { border-color: var(--ligne); color: var(--texte); }
.btn-contour:hover { border-color: var(--accent); }
.boutons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Navigation ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--fond); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--ligne); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; white-space: nowrap; }
.logo-img { display: block; height: 30px; width: auto; }
.logo-carre { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--sur-accent); font-size: 15px; font-weight: 700; }
.liens { display: flex; gap: 28px; font-size: 15px; white-space: nowrap; }
.liens a:hover, .liens a[aria-current] { color: var(--accent); }
.nav-droite { display: flex; align-items: center; gap: 16px; }
.burger { display: none; background: none; border: 0; color: var(--texte); font-size: 26px; cursor: pointer; }

/* Menu déroulant « Nos offres » / « Secteurs » */
.deroulant { position: relative; }
@media (min-width: 1041px) { .liens .menu-rdv { display: none; } }
.deroulant > button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 0; }
.deroulant > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.panneau { position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%); z-index: 60; display: none;
  grid-template-columns: repeat(2, 260px); gap: 8px 28px; padding: 24px 26px; border-radius: 18px; border: 1px solid var(--ligne); background: var(--fond-2); box-shadow: 0 24px 60px rgba(0,0,0,.5); white-space: normal; text-align: left; }
.panneau-simple { grid-template-columns: repeat(2, 210px); }
.panneau::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.panneau h4 { font-family: var(--f-titre); font-weight: 400; font-size: 22px; color: var(--texte); margin-bottom: 6px; }
.panneau a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14px; }
.panneau a b { display: block; font-weight: 600; color: var(--texte); }
.panneau a span { display: block; font-size: 12.5px; color: var(--texte-3); }
.panneau a:hover { background: var(--fond-3); }
.panneau a:hover b { color: var(--accent); }
@media (min-width: 1041px) {
  .deroulant:hover > button, .deroulant:focus-within > button, .deroulant.ouvert > button { color: var(--accent); }
  .deroulant:hover > button::after, .deroulant:focus-within > button::after, .deroulant.ouvert > button::after { transform: translateY(1px) rotate(225deg); }
  .deroulant:hover .panneau, .deroulant:focus-within .panneau, .deroulant.ouvert .panneau { display: grid; }
}
/* Dans le menu ☰ (tablette, téléphone) : les listes sont dépliées */
@media (max-width: 1040px) {
  .liens.ouvert { max-height: calc(100vh - 72px); overflow-y: auto; }
  .deroulant > button { font-family: var(--f-titre); font-size: 26px; color: var(--texte); cursor: default; }
  .deroulant > button::after { display: none; }
  .liens.ouvert .panneau { position: static; transform: none; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 0 0; border: 0; background: none; box-shadow: none; }
  .liens.ouvert .panneau h4 { font-size: 15px; font-family: var(--f-ui); font-weight: 600; color: var(--accent); margin: 12px 0 2px; }
  .liens.ouvert .panneau a span { display: none; }
  .liens .menu-rdv { align-self: flex-start; margin-top: 8px; }
}

/* ---------- En-tête de page ---------- */
.page-hero { padding: 56px 0 56px; overflow: hidden; }
.fil { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--texte-3); opacity: .75; margin-bottom: 14px; list-style: none; }
/* Pages avec fil d'Ariane : le fil remplace le vide du haut de page */
.page-hero:has(.fil) { padding-top: 24px; }
.fil li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.fil a:hover { color: var(--accent); }
.surtitre { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); max-width: 900px; margin-bottom: 24px; }
.page-hero .chapo { font-size: clamp(17px, 1.8vw, 20px); max-width: 640px; margin-bottom: 36px; }
/* Pages d'offres : texte à gauche, scène animée à droite (empilés sur téléphone) */
.hero-2col { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-2col h1 { font-size: clamp(38px, 4.6vw, 62px); }
.hero-visuel { position: relative; aspect-ratio: 1586 / 992; border-radius: 22px; overflow: hidden; border: 1px solid var(--ligne); background: var(--fond-3); }
@media (max-width: 960px) { .hero-2col { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Cartes et grilles ---------- */
.grille { display: grid; gap: 20px; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte { background: var(--fond-3); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px; transition: border-color .25s, transform .25s; }
a.carte { display: block; }
a.carte:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-4px); }
.carte h3 { font-size: 20px; margin-bottom: 12px; }
.carte p { font-size: 15px; }
.carte .lien-carte { display: inline-flex; align-items: center; margin-top: 18px; padding: 9px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; color: var(--accent); font-weight: 600; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
a.carte:hover .lien-carte { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.etiquette { display: block; font-size: 13px; font-weight: 600; color: var(--texte-3); margin: 16px 0 4px; }  /* pas de capitales : pas de « petits titres » criards */
.etiquette.verte { color: var(--accent); }
.numero { font-family: var(--f-titre); font-size: 40px; line-height: 1; color: var(--accent); display: block; margin-bottom: 14px; }
.groupe-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 8px 0 20px; }
.groupe-titre h3 { font-size: 24px; }
.groupe-titre span { color: var(--texte-3); font-size: 15px; }
.groupe + .groupe { margin-top: 48px; }
.famille + .famille { margin-top: 88px; }

/* Étapes */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }  /* autant de colonnes que d'étapes : jamais de rangée orpheline */
.etapes li { counter-increment: etape; border-top: 1px solid var(--ligne); padding-top: 20px; font-size: 15px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--f-titre); font-size: 34px; color: var(--accent); margin-bottom: 10px; }

/* Pastilles de liens (métiers, offres) */
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles a { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ligne); transition: border-color .2s, color .2s; }
.pastilles a:hover { border-color: var(--accent); color: var(--accent); }

/* Questions fréquentes : chaque question s'ouvre au clic (balise <details>) */
.faq { max-width: 820px; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 15.5px; }

/* Témoignage */
.temoin { max-width: 860px; }
.temoin blockquote { font-family: var(--f-titre); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: #E6E5E1; margin-bottom: 18px; }
.temoin-auteur { color: var(--texte-3); font-size: 15px; }

/* Texte long (à propos, mentions légales) */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16.5px; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Citations et modèles de messages dans les articles (distincts du texte courant) */
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--fond-2); color: var(--texte-2); }
.prose blockquote p { margin-bottom: 8px; font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Page L'équipe : deux profils côte à côte, photo au-dessus */
.profils { column-gap: 56px; row-gap: 64px; }
.profil img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--ligne); margin-bottom: 24px; }
.profil h2 { font-size: clamp(28px, 3vw, 34px); margin-bottom: 12px; }
.profil p { font-size: 16.5px; color: var(--texte-2); max-width: 520px; }

/* Encadré « à compléter » : tout ce qui manque encore, bien visible */
.a-completer { display: inline; padding: 2px 8px; border: 1px dashed var(--accent); border-radius: 6px; background: var(--accent-fond); color: var(--accent-clair); font-size: .92em; }
div.a-completer { display: block; padding: 22px 24px; border-radius: var(--rayon); }
.a-completer::before { content: "À compléter · "; font-weight: 700; }

/* Bandeau d'appel à l'action au fil de la page (même style que sur l'accueil) */
.bande-cta {
  margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--ligne));
  background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--fond);
}
.bande-cta h3 { font-size: 22px; margin-bottom: 4px; }
.bande-cta p { color: var(--texte-2); font-size: 15px; }
.offres-toutes { margin-top: 24px; color: var(--texte-2); font-size: 15.5px; }
.offres-toutes a { color: var(--accent); font-weight: 600; white-space: nowrap; }
/* Prix « à partir de » dans le bandeau des pages d'offres */
.prix-montant { font-family: var(--f-titre); font-size: clamp(36px, 4.2vw, 48px); line-height: 1.05; color: var(--texte); }
.prix-montant .de { display: block; font-family: var(--f-ui); font-size: 15px; color: var(--texte-2); margin-bottom: 6px; }
.prix-montant em { color: var(--accent); }
.prix-montant small { font-size: .45em; color: var(--texte-2); }

/* Filtres par rubrique (page Blog) */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filtre { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: var(--texte-2); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.filtre:hover { border-color: var(--accent); color: var(--texte); }
.filtre[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 600; }

/* ---------- Appel à l'action ---------- */
.cta { position: relative; overflow: hidden; background: var(--fond-3); border: 1px solid var(--ligne); border-radius: 28px; padding: 76px 56px; text-align: center; }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 780px; margin: 0 auto 18px; }
.cta p { font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.cta .boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid var(--ligne); padding: 48px 0 40px; font-size: 14px; }
.footer-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-grille h4 { font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-grille a { display: block; margin-bottom: 10px; color: var(--texte-3); }
.footer-grille a:hover { color: var(--accent); }
/* Lettre du mois : section au-dessus du pied de page (bloc recopié dans index.html par le générateur) */
.section-lettre { padding: 0 0 56px; }
.fond-alt + .section-lettre { padding-top: 72px; }
.lettre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; padding: 40px 44px; border: 1px solid var(--ligne); border-radius: 22px; background: var(--fond-2); }
.lettre h2 { font-family: var(--f-titre); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 10px; }
.lettre-texte p { font-size: 16px; color: var(--texte-2); max-width: 480px; }
.lettre-ligne { display: flex; gap: 10px; }
.lettre-ligne[hidden] { display: none; }
.lettre-ligne input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--fond); color: var(--texte); font: inherit; font-size: 16px; }
.lettre-ligne input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lettre-ligne .btn { flex: none; }
.lettre-mention { margin-top: 12px; font-size: 12.5px; color: var(--texte-3); }
.lettre-hero { max-width: 560px; }
.lettre-retour { margin-top: 12px; font-size: 15px; color: var(--accent); }
.lettre-retour.erreur { color: #F2A7A7; }
@media (max-width: 760px) {
  .section-lettre { padding-bottom: 64px; }
  .lettre { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .lettre-ligne { flex-direction: column; }
  .lettre-ligne .btn { justify-content: center; }
}
.barre-lettre { background: var(--fond-2); border-bottom: 1px solid var(--ligne); font-size: 13.5px; }
.barre-lettre[hidden] { display: none; }
.barre-lettre-in { display: flex; align-items: center; gap: 20px; padding-top: 5px; padding-bottom: 5px; }
.barre-lettre-texte { flex: 1; min-width: 0; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-lettre-texte b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.barre-lettre-form { flex: none; width: 360px; }
.barre-lettre .lettre-ligne { flex-direction: row; gap: 8px; }
.barre-lettre .lettre-ligne input { padding: 5px 14px; font-size: 13.5px; }
.barre-lettre .lettre-ligne .btn { padding: 5px 14px; font-size: 13.5px; }
.barre-lettre .lettre-retour { margin: 0; font-size: 14px; }
.barre-lettre-fermer { flex: none; background: none; border: 0; color: var(--texte-3); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.barre-lettre-fermer:hover { color: var(--texte); }
@media (max-width: 760px) {
  .barre-lettre-texte { flex: none; max-width: 76px; font-size: 13px; line-height: 1.2; white-space: normal; overflow: visible; }
  .barre-lettre .lettre-ligne .btn { padding: 5px 12px; }
  .barre-lettre-fermer { padding: 4px 2px; }
  .barre-lettre-texte span { display: none; }
  .barre-lettre-texte b { margin: 0; }
  .barre-lettre-in { gap: 8px; }
  .barre-lettre-form { flex: 1; width: auto; min-width: 0; }
  .barre-lettre .lettre-ligne input { width: 0; }
  .barre-lettre .lettre-ligne { flex-direction: row; }
  .barre-lettre .lettre-ligne .btn { justify-content: center; }
  .barre-lettre .lettre-ligne input { font-size: 16px; padding-top: 4px; padding-bottom: 4px; }
}
.panneau .panneau-plus { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ligne); border-radius: 0 0 10px 10px; }
.panneau .panneau-plus b { color: var(--accent); }
/* Fin lettre du mois */
.footer-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--ligne); color: var(--texte-3); }

/* Grille de 3 : si la dernière rangée n'a que 2 cartes, elles se partagent toute la largeur (pas de trou à droite) */
@media (min-width: 961px) {
  .grille-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grille-3 > * { grid-column: span 2; }
  .grille-3 > :nth-child(3n+1):nth-last-child(2), .grille-3 > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
}

/* Bandeau de consentement aux cookies (en bas de l'écran, discret) */
.cookies { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-left: auto;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--fond-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: 14px; line-height: 1.5; color: var(--texte); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies-boutons { display: flex; gap: 10px; justify-content: flex-end; }
.cookies-boutons { align-items: center; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.cookies .btn { padding: 10px 22px; font: inherit; font-size: 14px; font-weight: 600; }
.cookies .cookies-enregistrer { background: transparent; color: var(--texte); border: 1px solid var(--ligne); }
.cookies .cookies-enregistrer:hover { border-color: var(--accent); color: var(--accent); }
.cookies-liens { margin-left: auto; display: flex; gap: 18px; }
.cookies-lien-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--texte-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookies-lien-btn:hover { color: var(--texte); }
.cookies-detail { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.cookies-detail[hidden] { display: none; }
.cookies-detail label { display: flex; align-items: center; gap: 10px; }
.cookies-detail small { color: var(--texte-3); font-size: 12.5px; }
.cookies-detail input { width: 17px; height: 17px; accent-color: var(--accent); }
.cookies-detail .btn { align-self: flex-start; }
.cookies-lien { color: var(--texte-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .cookies { font-size: 13px; padding: 14px 16px; gap: 10px; } }
.footer-bas .lien-cookies { cursor: pointer; }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1040px) {
  .liens { display: none; }
  .burger { display: block; }
  .liens.ouvert { display: flex; flex-direction: column; gap: 20px; position: absolute; top: 72px; left: 0; right: 0; background: var(--fond); padding: 24px; border-bottom: 1px solid var(--ligne); }
}
@media (max-width: 960px) {
  .grille-3, .grille-4, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes { grid-auto-flow: row; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .page-hero { padding: 36px 0 40px; }
  .page-hero:has(.fil) { padding-top: 16px; }
  section#contact { padding-top: 0; }
  .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
  .nav-droite .btn { display: none; }
  .grille-2, .grille-3, .grille-4, .etapes { grid-template-columns: minmax(0, 1fr); }
  .etapes { grid-auto-flow: row; }
  .cta { padding: 52px 22px; }
  .footer-grille { grid-template-columns: 1fr; }
}
/* Téléphone : pied de page compact (2 colonnes, sans la liste des métiers) */
@media (max-width: 760px) {
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .footer-grille > div:first-child { grid-column: 1 / -1; }
}
/* Rangées de cartes à faire défiler du doigt : seulement sur écran tactile (sur ordinateur, fenêtre étroite = cartes empilées).
   Les étapes, les questions fréquentes et les listes à parcourir (blog, métiers : .liste-verticale) restent verticales. */
@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
  section .grille:not(.liste-verticale) {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    gap: 14px; margin-inline: -24px; padding: 4px 24px 16px; align-items: stretch;
  }
  section .grille:not(.liste-verticale)::-webkit-scrollbar { display: none; }
  section .grille:not(.liste-verticale) > * { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
