@font-face{font-family:"Marcellus";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/marcellus-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/jost-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/jost-latin-500-normal.woff2) format("woff2")}
/* Mise en page : colonne de texte à gauche, photos en arche plein cintre comme une porte de mas,
   filets or utilisés comme des joints de pierre entre les blocs. Une seule ambiance (crème), assumée. */
:root {
  --creme: #FCF8F0;      /* fond, enduit à la chaux */
  --enduit: #F4ECDF;     /* bandes alternées */
  --pierre: #E3D5BE;     /* filets, bordures */
  --brun: #6B3A22;       /* titres, logo */
  --noyer: #2E1D14;      /* texte courant, bande sombre */
  --or: #B88C46;         /* joints, accents (jamais pour du petit texte sur crème) */
  --or-clair: #D9BC86;   /* accents sur fond sombre */
  --gris: #6F5F54;       /* texte secondaire */
  --creme-sur-noyer: #F3E8D6;

  --f-titre: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-texte: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --t-xs: 0.875rem;
  --t-s: 1rem;
  --t-m: 1.125rem;
  --t-l: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(1.9rem, 3.4vw, 2.5rem);
  --t-3xl: clamp(2.5rem, 6.2vw, 4.4rem);

  --large: 1180px;
  --mesure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--noyer);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--creme);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; color: var(--brun); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--large);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; background: var(--brun); color: var(--creme); padding: 10px 14px; z-index: 100; }
.evitement:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 var(--t-s)/1.2 var(--f-texte); letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--brun); transition: background-color .2s, color .2s, border-color .2s;
}
.btn--plein { background: var(--brun); color: var(--creme); }
.btn--plein:hover { background: var(--noyer); border-color: var(--noyer); }
.btn--trait { background: transparent; color: var(--brun); }
.btn--trait:hover { background: var(--enduit); }
.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--creme) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--or) 35%, transparent);
}
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.entete__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__liste { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__liste > li { position: relative; }
.nav__liste a, .nav__ouvrir { font: 400 var(--t-s)/1.2 var(--f-texte); color: var(--noyer); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.nav__liste a:hover, .nav__ouvrir:hover { color: var(--brun); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 6px; }
.nav__ouvrir::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid var(--or); border-bottom: 1.5px solid var(--or); transform: translateY(-3px) rotate(45deg); }
.sous-menu { position: absolute; top: 100%; left: -18px; min-width: 270px; list-style: none; margin: 0; padding: 10px 0; background: var(--creme); border: 1px solid var(--pierre); box-shadow: 0 18px 40px -24px rgba(46, 29, 20, .45); display: none; }
.sous-menu a { display: block; padding: 10px 18px; }
.nav__liste > li:hover > .sous-menu, .nav__liste > li:focus-within > .sous-menu, .sous-menu[data-ouvert="true"] { display: block; }
.entete__actions { display: flex; align-items: center; gap: 18px; }
.entete__tel { font-weight: 500; color: var(--brun); text-decoration: none; }
.burger { display: none; }

@media (max-width: 1080px) {
  .entete__tel { display: none; }
}
@media (max-width: 920px) {
  .entete__logo img { height: 44px; }
  .burger { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-s)/1 var(--f-texte); color: var(--brun); background: none; border: 1px solid var(--pierre); padding: 10px 14px; border-radius: 2px; cursor: pointer; }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--brun); box-shadow: 0 -5px 0 var(--brun), 0 5px 0 var(--brun); }
  .nav { position: fixed; inset: calc(69px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--creme); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(110px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
  .nav[data-ouvert="true"] { display: flex; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__liste > li { border-bottom: 1px solid var(--pierre); }
  .nav__liste a, .nav__ouvrir { display: block; width: 100%; text-align: left; padding: 16px 0; font-size: var(--t-m); }
  .sous-menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 10px 14px; min-width: 0; background: transparent; }
  .nav__liste > li:hover > .sous-menu { display: none; }
  .sous-menu[data-ouvert="true"], .nav__liste > li:focus-within > .sous-menu[data-ouvert="true"] { display: block; }
  .sous-menu a { padding: 10px 0; font-size: var(--t-s); }
  .entete__actions .btn { display: none; }
  .nav .btn { margin-top: 24px; }
}
@media (min-width: 921px) { .nav > .btn { display: none; } }

/* ---------- Héro ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero__texte { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { max-width: 13ch; }
.hero__chapo { font-size: var(--t-l); line-height: 1.55; color: var(--noyer); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__garanties { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 18px 0 0; margin: 6px 0 0; border-top: 1px solid var(--pierre); font-size: var(--t-xs); color: var(--gris); max-width: 560px; }
.hero__garanties li { display: flex; align-items: center; gap: 10px; }
.hero__garanties li::before { content: ""; width: 7px; height: 7px; background: var(--or); transform: rotate(45deg); flex: none; }

/* L'arche : une porte en plein cintre, avec son arc extérieur (archivolte) en filet or */
.arche { position: relative; padding: 14px; border: 1px solid var(--or); border-radius: 999px 999px 0 0; max-width: 440px; width: 100%; justify-self: center; }
.arche__baie { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--pierre); max-width: 100%; }
.arche__baie img, .arche__baie svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.arche__seuil { position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px; background: var(--brun); }
.photo-a-venir { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px; background: linear-gradient(to top, rgba(46, 29, 20, .82), rgba(46, 29, 20, 0)); color: var(--creme-sur-noyer); font-size: var(--t-xs); line-height: 1.4; }
.photo-a-venir strong { display: block; font-family: var(--f-titre); font-weight: 400; font-size: var(--t-m); color: #fff; }

@media (max-width: 860px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); }
  .arche { max-width: 340px; justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--enduit { background: var(--enduit); }
.sec-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-tete p { color: var(--gris); max-width: 46ch; font-size: var(--t-m); }
@media (max-width: 760px) { .sec-tete { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Un seul interlocuteur ---------- */
.interlocuteur { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 72px; align-items: start; }
.interlocuteur h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.interlocuteur__texte { display: flex; flex-direction: column; gap: 18px; font-size: var(--t-m); padding-top: 10px; border-top: 1px solid var(--or); }
@media (max-width: 860px) { .interlocuteur { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Métiers : des lignes séparées comme des assises de pierre ---------- */
.lignes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--pierre); }
.lignes li { border-top: 1px solid var(--pierre); }
.lignes a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 12px 48px; align-items: baseline; padding: 30px 8px; text-decoration: none; transition: background-color .2s; }
.lignes a:hover { background: var(--enduit); }
.lignes h3 { font-size: var(--t-xl); }
.lignes p { color: var(--gris); max-width: 52ch; }
.lignes__lien { font-size: var(--t-xs); font-weight: 500; color: var(--brun); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 5px; }
.lignes--fortes h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.lignes--fortes a { padding-block: 38px; }
.metiers__suite { margin-top: clamp(48px, 7vw, 80px); }
.lignes--moyennes h3 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); }
.lignes--moyennes a { padding-block: 34px; }
.metiers__suite > h3 { font-size: var(--t-l); color: var(--noyer); margin-bottom: 18px; }
@media (max-width: 760px) {
  .lignes a { grid-template-columns: minmax(0, 1fr); padding: 24px 4px; }
}

/* ---------- Déroulé (vraie séquence, donc numérotée) ---------- */
.deroule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: etape; }
.deroule li { counter-increment: etape; padding-top: 22px; border-top: 1px solid var(--or); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deroule li::before { content: counter(etape); font-family: var(--f-titre); font-size: 2.6rem; line-height: 1; color: var(--or); }
.deroule h3 { font-size: var(--t-l); }
.deroule p { color: var(--gris); }
@media (max-width: 900px) { .deroule { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .deroule { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Grégory ---------- */
.gregory { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.gregory .arche { max-width: 360px; }
.gregory__texte { display: flex; flex-direction: column; gap: 20px; }
.gregory blockquote { margin: 0; font-family: var(--f-titre); font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.35; color: var(--brun); }
.gregory__nom { font-size: var(--t-s); color: var(--gris); }
.gregory__nom strong { color: var(--noyer); font-weight: 500; }
@media (max-width: 860px) { .gregory { grid-template-columns: minmax(0, 1fr); } .gregory .arche { max-width: 280px; } }

/* ---------- Réalisations (aperçu) ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.galerie figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.galerie__photo { position: relative; aspect-ratio: 4 / 3; background: var(--pierre); overflow: hidden; max-width: 100%; }
.galerie__photo svg, .galerie__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie figcaption { font-size: var(--t-xs); color: var(--gris); }
.galerie__photo .photo-a-venir { padding: 36px 16px 14px; }
.galerie--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .galerie { grid-template-columns: minmax(0, 1fr); } }
.lien-suite { display: inline-block; margin-top: 28px; color: var(--brun); font-weight: 500; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 6px; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.zone__carte { min-width: 0; }
.zone__carte svg { width: 100%; height: auto; display: block; max-width: 600px; }
.zone__carte figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--gris); }
.zone__listes { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.zone__listes h3 { font-size: var(--t-l); margin-bottom: 10px; }
.communes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.communes li { font-size: var(--t-xs); padding: 6px 12px; border: 1px solid var(--pierre); border-radius: 2px; background: var(--creme); }
.communes li.avec-page { border-color: var(--brun); }
.communes li.avec-page a { color: var(--brun); font-weight: 500; text-decoration: none; }
.communes li.avec-page a:hover { text-decoration: underline; }
.zone__note { font-size: var(--t-xs); color: var(--gris); }
@media (max-width: 900px) { .zone { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--pierre); }
.faq details:last-child { border-bottom: 1px solid var(--pierre); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 24px 0; font-family: var(--f-titre); font-size: var(--t-l); color: var(--brun); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-texte); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--or); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; max-width: var(--mesure); color: var(--noyer); display: flex; flex-direction: column; gap: 12px; }

/* ---------- Contact (bande sombre) ---------- */
.contact { background: var(--noyer); color: var(--creme-sur-noyer); }
.contact h2 { color: var(--creme-sur-noyer); }
.contact__grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); }
.contact__infos { display: flex; flex-direction: column; gap: 24px; }
.contact__infos p { color: color-mix(in srgb, var(--creme-sur-noyer) 82%, transparent); max-width: 40ch; }
.coordonnees { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.coordonnees li { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(217, 188, 134, .3); }
.coordonnees span { font-size: var(--t-xs); color: var(--or-clair); }
.coordonnees a, .coordonnees strong { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-l); color: var(--creme-sur-noyer); text-decoration: none; overflow-wrap: anywhere; }
.coordonnees a:hover { text-decoration: underline; text-decoration-color: var(--or-clair); }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: var(--t-xs); color: var(--or-clair); }
.champ input, .champ select, .champ textarea {
  font: 400 var(--t-s)/1.4 var(--f-texte); color: var(--creme-sur-noyer);
  background: rgba(243, 232, 214, .06); border: 1px solid rgba(217, 188, 134, .35); border-radius: 2px; padding: 13px 14px; width: 100%;
  color-scheme: dark;
}
.champ select option { color: var(--noyer); background: var(--creme); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--or-clair); outline-offset: 1px; border-color: var(--or-clair); }
.champ textarea { min-height: 130px; resize: vertical; }
.formulaire__bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.formulaire__bas .btn { background: var(--or-clair); border-color: var(--or-clair); color: var(--noyer); }
.formulaire__bas .btn:hover { background: var(--creme-sur-noyer); border-color: var(--creme-sur-noyer); }
.formulaire__mention { font-size: var(--t-xs); color: color-mix(in srgb, var(--creme-sur-noyer) 70%, transparent); max-width: 46ch; }
.formulaire__retour { grid-column: 1 / -1; font-size: var(--t-s); color: var(--or-clair); }
.piege { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact__grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .formulaire { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.pied { background: var(--noyer); color: color-mix(in srgb, var(--creme-sur-noyer) 78%, transparent); border-top: 1px solid rgba(217, 188, 134, .25); font-size: var(--t-xs); }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 40px; }
.pied__marque { display: flex; flex-direction: column; gap: 16px; }
.pied__marque img { height: 58px; width: auto; align-self: flex-start; }
.pied h2 { font-family: var(--f-texte); font-weight: 500; font-size: var(--t-s); color: var(--or-clair); margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--creme-sur-noyer); text-decoration: underline; }
.pied__communes { color: color-mix(in srgb, var(--creme-sur-noyer) 62%, transparent); line-height: 1.8; }
.pied__communes a { color: var(--creme-sur-noyer); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(217, 188, 134, .18); }
.pied__bas ul { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Barre d'appel mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--creme); border-top: 1px solid var(--pierre);
  }
  .barre-mobile .btn { padding: 13px 6px; font-size: .9375rem; }
  .pied__bas { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Carte de la zone ---------- */
.carte-anneau { fill: none; stroke: var(--or); stroke-width: 1; stroke-dasharray: 2 5; opacity: .75; }
.carte-km { font: 500 13px var(--f-texte); fill: var(--or); }
.carte-riviere { fill: none; stroke: #9FB7BE; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.carte-riviere-nom { font: italic 400 13px var(--f-texte); fill: #5E7C85; }
.carte-pt { fill: var(--gris); }
.carte-pt--page { fill: var(--brun); }
.carte-pt--siege { fill: var(--or); stroke: var(--brun); stroke-width: 2.5; }
.carte-nom { font: 400 13px var(--f-texte); fill: var(--gris); }
.carte-nom--fort { font: 500 15px var(--f-texte); fill: var(--brun); }
@media (max-width: 600px) {
  .carte-nom { display: none; }
  .carte-nom--fort { display: inline; font-size: 21px; }
  .carte-km { font-size: 17px; }
  .carte-riviere-nom { font-size: 18px; }
}

/* ---------- Pages intérieures ---------- */
.page-tete { padding-block: clamp(28px, 5vw, 64px) clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--pierre); }
.page-tete__grille { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.page-tete__grille--seule { grid-template-columns: minmax(0, 1fr); }
.page-tete__texte { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.page-tete h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 19ch; }
.page-tete__chapo { font-size: var(--t-l); line-height: 1.55; max-width: 48ch; }
.arche--page { max-width: 290px; justify-self: end; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: var(--t-xs); color: var(--gris); }
.fil li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--or); }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { color: var(--brun); text-decoration: underline; }
@media (max-width: 860px) {
  .page-tete__grille { grid-template-columns: minmax(0, 1fr); }
  .arche--page { justify-self: start; max-width: 220px; }
}

.corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 310px); gap: clamp(40px, 7vw, 96px); padding-block: clamp(48px, 7vw, 96px); align-items: start; }
.corps--seul { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .corps { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); min-width: 0; }
.prose section { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h3 { font-size: var(--t-l); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.prose ul li::marker { color: var(--or); }
.prose ol.etapes { list-style: none; padding: 0; gap: 0; counter-reset: e; border-bottom: 1px solid var(--pierre); }
.prose ol.etapes li { counter-increment: e; position: relative; padding: 14px 0 14px 3rem; border-top: 1px solid var(--pierre); }
.prose ol.etapes li::before { content: counter(e); position: absolute; left: 4px; top: 9px; font-family: var(--f-titre); font-size: 1.6rem; line-height: 1.2; color: var(--or); }
.prose a { color: var(--brun); text-decoration-color: var(--or); text-underline-offset: 4px; }
.prose strong { font-weight: 500; color: var(--noyer); }
.prose ul.lignes { padding-left: 0; gap: 0; }
.prose .lignes a { padding-inline: 4px; }
.prose .lignes h3 { font-size: var(--t-l); }
.prose .lignes a { grid-template-columns: minmax(0, 1fr) auto; }
.prose .lignes p { grid-column: 1 / -1; grid-row: 2; }

.corps__aside { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 900px) { .corps__aside { position: static; } }
.encart { background: var(--enduit); padding: 24px; border-top: 2px solid var(--or); display: flex; flex-direction: column; gap: 14px; }
.encart h2 { font-size: var(--t-l); }
.encart p { font-size: var(--t-s); color: var(--gris); }
.encart ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: var(--t-s); }
.encart a { color: var(--brun); text-decoration: none; }
.encart a:hover { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.encart .btn { color: var(--creme); align-self: flex-start; }
.encart .btn:hover { text-decoration: none; }
.encart .tel { font-family: var(--f-titre); font-size: var(--t-l); color: var(--brun); }

.sources { font-size: var(--t-xs); color: var(--gris); border-top: 1px solid var(--pierre); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.sources h2 { font-family: var(--f-texte); font-size: var(--t-s); font-weight: 500; color: var(--noyer); }
.sources ul { list-style: none; padding: 0; gap: 6px; }
.sources a { color: var(--gris); overflow-wrap: anywhere; }

.fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 32px; margin: 0; padding: 22px 0; border-block: 1px solid var(--pierre); }
.fiche dt { color: var(--gris); font-size: var(--t-s); }
.fiche dd { margin: 0; }
@media (max-width: 520px) { .fiche { grid-template-columns: minmax(0, 1fr); gap: 2px; } .fiche dd { margin-bottom: 12px; } }

.mention-maj { font-size: var(--t-xs); color: var(--gris); }
.page-404 { padding-block: clamp(64px, 10vw, 140px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- Métiers en images : vignettes en arche ---------- */
.lignes--visuel a { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 12px 40px; padding-block: 22px; }
.lignes--visuel.lignes--fortes a { padding-block: 26px; }
.lignes--visuel.lignes--moyennes a { padding-block: 24px; }
.metier__vignette {
  display: block; width: 112px; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--pierre);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--or) 45%, transparent);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.metier__vignette img, .metier__vignette svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.lignes--visuel a:hover .metier__vignette, .lignes--visuel a:focus-visible .metier__vignette { transform: translateY(-4px) scale(1.06); }
.lignes--visuel a:hover .metier__vignette img { transform: scale(1.08); }
.lignes--visuel a:hover h3 { color: var(--noyer); }
@media (max-width: 760px) {
  .lignes--visuel a { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 20px 2px; }
  .lignes--fortes .metier__vignette, .metier__vignette { width: 76px; grid-row: 1 / span 3; }
  .lignes--visuel h3, .lignes--visuel p, .lignes--visuel .lignes__lien { grid-column: 2; }
  .lignes--visuel .lignes__lien { margin-top: 6px; }
  .lignes--visuel.lignes--fortes h3 { font-size: 1.6rem; }
}

/* ---------- Bandeau de chantiers (défilement horizontal) ---------- */
.section--bandeau { overflow: hidden; }
.sec-tete--commandes { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.sec-tete--commandes > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.commandes { display: flex; gap: 10px; }
.commande {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--brun); background: transparent; color: var(--brun);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s;
}
.commande svg, .visionneuse__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.commande:hover:not(:disabled) { background: var(--brun); color: var(--creme); }
.commande:disabled { opacity: .3; cursor: default; }
.bandeau {
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: var(--gouttiere); padding-inline: var(--gouttiere); padding-bottom: 6px;
  scrollbar-width: none;
}
.bandeau::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .bandeau { --gouttiere: max(40px, calc((100% - var(--large)) / 2 + 40px)); } }
.bandeau:focus-visible { outline-offset: -2px; }
.bandeau__piste { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; width: max-content; }
.bandeau__item { width: clamp(260px, 30vw, 380px); scroll-snap-align: start; flex: none; }
.bandeau__item figure { display: flex; flex-direction: column; gap: 10px; }
.bandeau__item figcaption { font-size: var(--t-xs); color: var(--gris); }
.section--bandeau .lien-suite { margin-top: 32px; }
@media (max-width: 520px) { .commandes { display: none; } .bandeau__item { width: 80vw; } }

/* ---------- Photos cliquables + visionneuse ---------- */
.galerie__ouvrir { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.galerie__ouvrir:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.galerie__photo img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.galerie__ouvrir:hover img { transform: scale(1.05); }
.visionneuse {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: transparent; color: var(--creme-sur-noyer);
}
.visionneuse::backdrop { background: rgba(28, 18, 12, .97); }
.visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.visionneuse__cadre {
  margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-width: 100%;
}
.visionneuse__img { max-width: min(1200px, 100%); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; animation: apparait .35s ease; }
.visionneuse__legende { display: flex; gap: 18px; align-items: baseline; justify-content: center; flex-wrap: wrap; font-size: var(--t-s); text-align: center; }
.visionneuse__compte { color: var(--or-clair); font-variant-numeric: tabular-nums; font-size: var(--t-xs); }
.visionneuse__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(217, 188, 134, .5);
  background: rgba(28, 18, 12, .5); color: var(--creme-sur-noyer); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.visionneuse__btn:hover { background: var(--or-clair); color: var(--noyer); border-color: var(--or-clair); }
.visionneuse__fermer { top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.visionneuse__prec { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .visionneuse__prec, .visionneuse__suiv { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .visionneuse__cadre { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .visionneuse__img { max-height: calc(100dvh - 220px); }
}
@keyframes apparait { from { opacity: .4; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Animation signature : l'arche se monte depuis ses deux appuis jusqu'à la clé ---------- */
.arche.js-trace { border-color: transparent; }
.arche__trace { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.arche__trace path { fill: none; stroke: var(--or); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: monte 1.5s .1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes monte { to { stroke-dashoffset: 0; } }
.arche.js-trace .arche__baie img { animation: pose 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pose { from { transform: scale(1.12); } to { transform: none; } }
.arche.js-trace .arche__seuil { transform-origin: center; animation: seuil .9s .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes seuil { from { transform: scaleX(.2); } to { transform: none; } }

/* Photos qui « se posent » à leur arrivée à l'écran (visibles dès le départ, seulement un léger zoom) */
.js-pose { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js-pose.attente { transform: scale(1.1); }

/* En-tête qui se détache au défilement */
.entete { transition: box-shadow .3s; }
.defile .entete { box-shadow: 0 10px 30px -22px rgba(46, 29, 20, .6); }

@media (prefers-reduced-motion: reduce) {
  .arche__trace path { stroke-dashoffset: 0; }
  .js-pose.attente { transform: none; }
}

/* ---------- Page piscine : grande arche + mosaïque de photos ---------- */
@media (min-width: 861px) { .page-tete__grille:has(.arche--grande) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.arche--page.arche--grande { max-width: 470px; width: 100%; justify-self: end; }
@media (max-width: 860px) { .arche--page.arche--grande { justify-self: start; max-width: 360px; } }
.mosaique { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mosaique__item { margin: 0; position: relative; min-width: 0; grid-column: span 2; }
.mosaique__item .galerie__photo { aspect-ratio: 4 / 3; height: 100%; }
.mosaique__item:first-child { grid-column: span 4; grid-row: span 2; }
.mosaique__item:first-child .galerie__photo { aspect-ratio: auto; min-height: 100%; }
.mosaique__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; pointer-events: none;
  background: linear-gradient(to top, rgba(28, 18, 12, .75), rgba(28, 18, 12, 0)); color: #fff; font-size: var(--t-xs);
}
.mosaique__item:first-child figcaption { font-size: var(--t-s); padding: 60px 22px 18px; }
.mosaique--4 .mosaique__item:last-child, .mosaique--5 .mosaique__item:nth-child(4), .mosaique--5 .mosaique__item:nth-child(5) { grid-column: span 3; }
.mosaique--4 .mosaique__item:nth-child(4) { grid-column: span 6; }
@media (max-width: 760px) {
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mosaique__item, .mosaique--4 .mosaique__item:last-child, .mosaique--5 .mosaique__item:nth-child(n) { grid-column: span 1; }
  .mosaique__item:first-child { grid-column: span 2; grid-row: auto; }
  .mosaique__item:first-child .galerie__photo { aspect-ratio: 4 / 3; }
  .mosaique--6 .mosaique__item:last-child, .mosaique--4 .mosaique__item:last-child { grid-column: span 2; }
  .mosaique__item figcaption { font-size: .75rem; padding: 28px 10px 8px; }
}

/* ---------- Second secteur (Rognes, technicien piscine) ---------- */
.zone { grid-template-columns: minmax(0, 1fr); }
.zone__carte svg { max-width: 100%; }
.zone__listes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.zone__note { grid-column: 1 / -1; }
@media (max-width: 900px) { .zone__listes { grid-template-columns: minmax(0, 1fr); } }
.carte-zone2 { fill: color-mix(in srgb, #2B7A9E 7%, transparent); stroke: #2B7A9E; stroke-width: 1.4; stroke-dasharray: 6 5; }
.carte-km--bleu { fill: #2B7A9E; }
.carte-pt--base2 { fill: #2B7A9E; stroke: var(--creme); stroke-width: 2.5; }
.carte-nom--bleu { font: 500 16px var(--f-texte); fill: #2B7A9E; }
.legende { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--or); vertical-align: middle; margin: 0 6px 0 0; }
.legende--bleu { border-top-color: #2B7A9E; margin-left: 14px; }
@media (max-width: 600px) { .carte-nom.carte-nom--bleu { display: inline; font-size: 22px; } }

/* ---------- Bandeau d'information cookies ---------- */
.cookies {
  position: fixed; z-index: 45; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 440px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--noyer); color: var(--creme-sur-noyer); padding: 18px 20px; border-top: 2px solid var(--or-clair);
  box-shadow: 0 18px 40px -20px rgba(46, 29, 20, .6); font-size: var(--t-xs); line-height: 1.5;
}
.cookies a { color: var(--or-clair); }
.cookies .btn { background: var(--or-clair); border-color: var(--or-clair); color: var(--noyer); padding: 10px 18px; }
.cookies .btn:hover { background: var(--creme-sur-noyer); border-color: var(--creme-sur-noyer); }
@media (max-width: 720px) {
  .cookies { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); max-width: none;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

[hidden] { display: none !important; }

/* ---------- Lien Facebook ---------- */
.social { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.social svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social--entete { color: var(--brun); width: 40px; height: 40px; justify-content: center; border-radius: 50%; transition: color .2s, background-color .2s; }
.social--entete:hover { color: #1877F2; background: var(--enduit); }
.social--pied { color: var(--creme-sur-noyer); align-self: flex-start; font-size: var(--t-xs); }
.social--pied svg { width: 26px; height: 26px; color: var(--or-clair); }
.social--pied:hover span { text-decoration: underline; }
@media (max-width: 920px) { .entete__actions { gap: 8px; } }
.nav__liste a, .nav__ouvrir, .entete__actions .btn, .entete__tel { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1320px) { .entete__tel { display: none; } .nav__liste { gap: 20px; } .entete__in { gap: 18px; } }
@media (min-width: 921px) and (max-width: 1080px) { .nav__liste { gap: 14px; } .nav__liste a, .nav__ouvrir { font-size: .9375rem; } .entete__logo img { height: 44px; } }
