/* ODL Méditerranée — styles (no build). Tokens first, then base, layout, components. */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	/* Colours taken from the logo: grey lettering, blue and burgundy spheres, green stroke. */
	--encre: #1f2124;
	--gris: #55575a;
	--gris-clair: #b3b4b6;
	--trait: #dfe2ea;
	--papier: #ffffff;
	--brume: #f3f5fa;
	--mer: #27408f;
	--mer-fonce: #1b2d68;
	--mer-clair: #c9d3f2;
	--bordeaux: #9a1b47;
	--vert: #8cc63f;
	--vert-texte: #4a7712;
	--alerte: #a4262c;

	--large: 76rem;
	--gouttiere: clamp(1.25rem, 4vw, 3rem);
	--rythme: clamp(3.5rem, 8vw, 6.5rem);
	--rayon: 4px;
	--penche: 9deg; /* the logo's two oblique strokes */
	--transition: 180ms cubic-bezier(.2, .7, .2, 1);

	--titre: "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--texte: "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mer); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--titre); font-stretch: 112%; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1.08rem; font-weight: 700; }

.cadre { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--encre); color: #fff; border-radius: var(--rayon); transition: top var(--transition); }
.evitement:focus { top: 1rem; }

.surtitre { font-size: .78rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--mer); }
.chapeau { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--gris); max-width: 36em; }

.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--mer); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ul li + li { margin-top: .4em; }

.points { margin-top: 1.5rem; display: grid; gap: .1rem; }
.points li { position: relative; padding: .8rem 0 .8rem 2rem; border-top: 1px solid var(--trait); }
.points li:last-child { border-bottom: 1px solid var(--trait); }
.points li::before { content: ""; position: absolute; left: .35rem; top: 1.2rem; width: 3px; height: 1.1rem; background: var(--vert); transform: skewX(calc(var(--penche) * -1)); box-shadow: 6px 0 0 var(--gris-clair); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3.25rem; padding: .7rem 1.5rem;
	border: 2px solid var(--mer); border-radius: var(--rayon);
	font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn .ico { transition: transform var(--transition); }
.btn:hover .ico { transform: translateX(4px); }
.btn--plein { background: var(--mer); color: #fff; }
.btn--plein:hover { background: var(--mer-fonce); border-color: var(--mer-fonce); }
.btn--trait { background: transparent; color: var(--mer); }
.btn--trait:hover { background: var(--mer); color: #fff; }

.tag-brouillon {
	display: inline-block; padding: .2rem .55rem;
	background: #fff4cc; color: #5c4400; border: 1px solid #e6c95c; border-radius: 2px;
	font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}

/* Header */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--trait); }
@supports (backdrop-filter: blur(8px)) { .entete { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); } }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.entete__logo { flex: none; display: block; }
.entete__logo img { width: clamp(9.5rem, 16vw, 13rem); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__liste { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.75rem); }
.nav__liste a { position: relative; display: block; padding: .5rem 0; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__liste a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; background: var(--vert); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.nav__liste a:hover::after, .nav__liste .current-menu-item > a::after { transform: scaleX(1); }
.nav__liste .current-menu-item > a { color: var(--mer); }
.nav__tel { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; background: var(--mer); color: #fff; border-radius: var(--rayon); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color var(--transition); }
.nav__tel:hover { background: var(--mer-fonce); }
.entete__menu { display: none; }

@media (max-width: 68rem) {
	.entete__menu { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: none; border: 1px solid var(--trait); border-radius: var(--rayon); cursor: pointer; }
	.entete__menu-trait, .entete__menu-trait::before, .entete__menu-trait::after { display: block; width: 1.35rem; height: 2px; background: var(--encre); transition: transform var(--transition), background-color var(--transition); }
	.entete__menu-trait { position: relative; }
	.entete__menu-trait::before, .entete__menu-trait::after { content: ""; position: absolute; left: 0; }
	.entete__menu-trait::before { top: -7px; }
	.entete__menu-trait::after { top: 7px; }
	.entete__menu[aria-expanded="true"] .entete__menu-trait { background: transparent; }
	.entete__menu[aria-expanded="true"] .entete__menu-trait::before { transform: translateY(7px) rotate(45deg); }
	.entete__menu[aria-expanded="true"] .entete__menu-trait::after { transform: translateY(-7px) rotate(-45deg); }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gouttiere) 1.5rem; background: var(--papier); border-bottom: 1px solid var(--trait); box-shadow: 0 18px 30px -18px rgba(31, 33, 36, .35); }
	.nav.est-ouvert { display: flex; }
	.nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__liste a { padding: .95rem 0; border-bottom: 1px solid var(--trait); font-size: 1.05rem; }
	.nav__liste a::after { display: none; }
	.nav__tel { margin-top: 1.25rem; justify-content: center; min-height: 3.25rem; }
}

/* Hero: text on white, the site photo cut on the logo's oblique. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--trait); }
.hero__grille { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__texte { display: flex; flex-direction: column; justify-content: center; }
.hero__texte h1 { margin-top: .9rem; max-width: 15em; }
.hero__texte .chapeau { margin-top: 1.5rem; }
.hero--simple .hero__texte { max-width: 52rem; }
.hero--simple::after { content: ""; position: absolute; right: 8%; top: -10%; width: 3px; height: 130%; background: var(--gris-clair); transform: rotate(var(--penche)); box-shadow: 14px 0 0 var(--gris-clair); opacity: .7; }
.fil { margin-bottom: 1.5rem; font-size: .85rem; color: var(--gris); }
.fil ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.fil li + li::before { content: "/"; margin-right: .6rem; color: var(--gris-clair); }
.fil a { text-underline-offset: .2em; }
.hero__photo { position: relative; }
.hero__cadre { overflow: hidden; background: var(--brume); aspect-ratio: 4 / 3; }
.hero__cadre img { width: 100%; height: 100%; object-fit: cover; }
.hero__obliques { display: none; }
.hero__photo figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; font-size: .85rem; color: var(--gris); }

@media (min-width: 62rem) {
	.hero--photo .hero__grille { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; padding-block: 0; min-height: min(44rem, 82vh); }
	.hero--photo .hero__texte { padding-block: clamp(3rem, 6vw, 5rem); }
	.hero__photo { margin-right: calc((100vw - min(100vw, var(--large))) / -2 - var(--gouttiere)); display: flex; flex-direction: column; }
	.hero__cadre { position: relative; flex: 1; aspect-ratio: auto; min-height: 26rem; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
	.hero__cadre img { position: absolute; inset: 0; }
	.hero__obliques { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
	.hero__obliques line { stroke: var(--gris-clair); stroke-width: 3; vector-effect: non-scaling-stroke; }
	.hero__photo figcaption { position: absolute; right: var(--gouttiere); bottom: 1rem; margin: 0; padding: .45rem .75rem; max-width: 70%; background: rgba(255, 255, 255, .94); border-radius: 2px; color: var(--encre); }
}

/* Sections */
.section { padding-block: var(--rythme); }
.section--brume { background: var(--brume); }
.section--mer { background: var(--mer); color: #fff; }
.section__tete { max-width: 46rem; }
.section__tete h2 + .prose { margin-top: 1.25rem; color: var(--gris); }

.duo { display: grid; gap: 1.75rem; }
.duo__corps > .prose { font-size: 1.08rem; }
@media (min-width: 56rem) {
	.duo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
	.duo__titre { position: sticky; top: 7rem; }
}
.duo__titre h2::before { content: ""; display: block; width: 3px; height: 2.2rem; margin: 0 0 1.25rem .5rem; background: var(--vert); transform: skewX(calc(var(--penche) * -1)); box-shadow: 8px 0 0 var(--gris-clair); }
.duo__titre .prose { margin-top: 1.25rem; color: var(--gris); }
.duo--encadre .duo__corps { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--papier); border: 1px solid var(--trait); border-left: 4px solid var(--mer); }
.section--brume .duo--encadre .duo__corps { background: var(--papier); }
.section--blanc .duo--encadre .duo__corps { background: var(--brume); }

.trajet { margin-top: 2rem; width: 100%; max-width: 20rem; overflow: visible; }
.trajet line { stroke: var(--gris-clair); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.trajet__a { fill: var(--mer); }
.trajet__b { fill: var(--bordeaux); }
.trajet text { font-family: var(--titre); font-size: 15px; font-weight: 700; fill: var(--encre); }

/* Cards */
.cartes { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.carte { position: relative; display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--mer); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.section--blanc .carte { background: var(--brume); }
.carte:nth-child(3n+2) { border-top-color: var(--bordeaux); }
.carte:nth-child(3n+3) { border-top-color: var(--vert); }
.carte--photo { border-top: 1px solid var(--trait); }
.carte__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--trait); }
.carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.carte__photo .tag-brouillon { position: absolute; left: .75rem; top: .75rem; }
.carte__corps { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: 1.6rem 1.5rem 1.7rem; }
.carte__corps p { color: var(--gris); }
.carte__lieu { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--mer) !important; }
.carte__lieu .ico { width: 1rem; height: 1rem; flex: none; }
.carte--lien h3 a { text-decoration: none; }
.carte--lien h3 a::after { content: ""; position: absolute; inset: 0; }
.carte__suite { margin-top: auto; padding-top: .5rem; color: var(--mer); transition: transform var(--transition); }
.carte--lien:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -22px rgba(27, 45, 104, .55); border-color: var(--mer-clair); }
.carte--lien:hover .carte__suite { transform: translateX(6px); }
.carte--lien:hover .carte__photo img { transform: scale(1.04); }
.carte--lien:focus-within { outline: 3px solid var(--mer); outline-offset: 3px; }
.carte--lien h3 a:focus-visible { outline: none; }
.section--cartes .actions { margin-top: 2.5rem; }

/* Réalisations */
.filtres { margin-top: 2.25rem; }
.filtres__titre { font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.filtres__liste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.filtre { min-height: 2.75rem; padding: .45rem 1rem; background: var(--papier); border: 1px solid var(--gris-clair); border-radius: 999px; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background-color var(--transition), color var(--transition), border-color var(--transition); }
.filtre:hover { border-color: var(--mer); color: var(--mer); }
.filtre[aria-pressed="true"] { background: var(--mer); border-color: var(--mer); color: #fff; }

.chantiers { display: grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.chantiers__titre { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.chantier { display: flex; }
.chantier[hidden] { display: none; }
.chantier article { display: flex; flex-direction: column; width: 100%; background: var(--papier); border: 1px solid var(--trait); }
.chantier__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--trait); }
.chantier__photo img { width: 100%; height: 100%; object-fit: cover; }
.chantier__corps { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.5rem; flex: 1; }
.chantier__type { font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-texte); }
.chantier__titre { font-size: 1.25rem; }
.chantier__prestation { font-size: .95rem; }
.chantier__texte { font-size: .96rem; color: var(--gris); }
.chantier__faits { width: 100%; margin-top: auto; padding-top: .5rem; font-size: .88rem; }
.chantier__faits div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--trait); }
.chantier__faits dt { color: var(--gris); }
.chantier__faits dd { font-weight: 600; }
.chantier__document { margin-top: .9rem; }
/* LinkedIn link under the portrait. */
.portrait__reseau { margin-top: 1.25rem; }
.portrait__reseau a { display: inline-flex; align-items: center; gap: .55rem; color: var(--mer); font-weight: 650; text-decoration: none; }
.portrait__reseau a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.portrait__reseau .ico { width: 1.35rem; height: 1.35rem; }
.chantier__document a { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border: 1px solid var(--mer); border-radius: var(--rayon); color: var(--mer); font-size: .9rem; font-weight: 650; text-decoration: none; transition: background-color var(--transition), color var(--transition); }
.chantier__document a:hover { background: var(--mer); color: #fff; }
.chantier__document small { font-weight: 400; opacity: .8; }
.vide { margin-top: 2rem; padding: 1.5rem; background: var(--papier); border-left: 4px solid var(--mer); }

/* FAQ */
.faq__item { border-top: 1px solid var(--trait); }
.faq__item:last-of-type { border-bottom: 1px solid var(--trait); }
.section--brume .faq__item { border-color: #d3d8e4; }
.faq__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.1rem; font-stretch: 105%; line-height: 1.35; transition: color var(--transition); }
.faq__item summary:hover h3 { color: var(--mer); }
.faq__item summary .ico { flex: none; margin-top: .15rem; color: var(--mer); transition: transform var(--transition); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__reponse { padding: 0 2.5rem 1.4rem 0; color: var(--gris); }

/* Call to contact */
.appel { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .appel { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 4rem; } }
.appel h2 { max-width: 16em; }
.appel .prose { margin-top: 1.25rem; color: var(--mer-clair); max-width: 36em; }
.appel__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.appel__actions .actions { margin-top: 0; }
.section--mer .btn--plein { background: #fff; border-color: #fff; color: var(--mer); }
.section--mer .btn--plein:hover { background: var(--vert); border-color: var(--vert); color: var(--encre); }
.section--mer .btn--trait { border-color: #fff; color: #fff; }
.section--mer .btn--trait:hover { background: #fff; color: var(--mer); }
.section--mer :focus-visible { outline-color: var(--vert); }
.appel__tel { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--titre); font-stretch: 112%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; text-decoration: underline transparent; text-underline-offset: .25em; transition: text-decoration-color var(--transition); }
.appel__tel:hover { text-decoration-color: var(--vert); }

/* Portrait */
.portrait { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .portrait { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2.5rem, 6vw, 5rem); } .portrait--sans { grid-template-columns: minmax(0, 46rem); } }
.portrait__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--trait); max-width: 26rem; }
.portrait__photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait__photo--attente { display: flex; align-items: center; justify-content: center; padding: 1.5rem; border: 2px dashed var(--gris-clair); background: var(--papier); text-align: center; font-size: .9rem; color: var(--gris); }
.portrait__texte .prose { margin-top: 1.5rem; }

/* Contact */
.contact { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; } }
.contact__aide .prose { margin-top: 1.25rem; color: var(--gris); }
.coordonnees { margin-top: 2.25rem; }
.coordonnees li { display: grid; gap: .15rem; padding: 1rem 0; border-top: 1px solid var(--trait); }
.coordonnees li:last-child { border-bottom: 1px solid var(--trait); }
.coordonnees span { font-size: .74rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.coordonnees a { font-family: var(--titre); font-size: 1.2rem; font-weight: 700; text-decoration: underline transparent; text-underline-offset: .25em; overflow-wrap: anywhere; transition: text-decoration-color var(--transition); }
.coordonnees a:hover { text-decoration-color: var(--vert); }

.formulaire { padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--brume); border-top: 4px solid var(--mer); }
.formulaire__note { font-size: .88rem; color: var(--gris); }
.champs { display: grid; gap: 1.1rem 1.25rem; margin-top: 1.25rem; }
@media (min-width: 40rem) { .champs { grid-template-columns: 1fr 1fr; } .champ--large { grid-column: 1 / -1; } }
.champ { display: grid; gap: .4rem; }
.champ label { font-size: .92rem; font-weight: 650; }
.champ label span { color: var(--alerte); }
.champ input:not([type="file"]), .champ select, .champ textarea { width: 100%; min-height: 3.1rem; padding: .7rem .85rem; background: var(--papier); border: 1px solid #9ea3ad; border-radius: var(--rayon); transition: border-color var(--transition), box-shadow var(--transition); }
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input[type="file"] { padding: .75rem; background: var(--papier); border: 1px dashed #9ea3ad; border-radius: var(--rayon); width: 100%; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--mer); box-shadow: 0 0 0 3px rgba(39, 64, 143, .22); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--alerte); }
.champ__aide { font-size: .85rem; color: var(--gris); }
.formulaire__donnees { margin: 1.5rem 0; font-size: .88rem; color: var(--gris); }
.formulaire__donnees a { color: var(--mer); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerte { margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--papier); border-left: 4px solid; font-weight: 600; }
.alerte--ok { border-color: var(--vert-texte); }
.alerte--erreur { border-color: var(--alerte); }

/* Footer */
.pied { background: var(--encre); color: #d9dadc; font-size: .96rem; }
.pied a { text-decoration: underline transparent; text-underline-offset: .25em; transition: text-decoration-color var(--transition), color var(--transition); }
.pied a:hover { color: #fff; text-decoration-color: var(--vert); }
.pied :focus-visible { outline-color: var(--vert); }
.pied__grille { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 52rem) { .pied__grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 4rem; } }
.pied__nom { font-family: var(--titre); font-stretch: 118%; font-size: 1.5rem; font-weight: 800; color: #fff; }
.pied__metier { margin-top: .4rem; font-size: .74rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--vert); }
.pied__marque p + p { margin-top: 1rem; max-width: 30em; }
.pied__marque .pied__metier { margin-top: .4rem; }
.pied__titre { margin-bottom: 1rem; font-size: .74rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: #9c9ea2; }
.pied__nav li + li, .pied__contact li + li { margin-top: .65rem; }
.pied__contact a, .pied__contact address { display: flex; align-items: flex-start; gap: .65rem; overflow-wrap: anywhere; }
.pied__contact .ico { flex: none; margin-top: .2rem; width: 1.1rem; height: 1.1rem; color: var(--vert); }
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid #3a3c40; font-size: .86rem; color: #9c9ea2; }
.pied__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
/* Social icons in the footer. */
.pied__reseaux { display: flex; gap: .75rem; margin-top: 1.5rem; }
.pied__reseaux a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #55575a; border-radius: 50%; color: #fff; transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
.pied__reseaux a:hover { background: var(--vert); border-color: var(--vert); color: var(--encre); }
.pied__reseaux li + li { margin-top: 0; }
.pied__reseaux .ico { margin: 0; width: 1.2rem; height: 1.2rem; }
.pied__reseaux a:hover .ico { color: var(--encre); }

/* Entrance: content rises once, in order. Nothing moves for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
	.hero__texte > * { animation: monte .7s cubic-bezier(.2, .7, .2, 1) both; }
	.hero__texte > :nth-child(2) { animation-delay: .06s; }
	.hero__texte > :nth-child(3) { animation-delay: .12s; }
	.hero__texte > :nth-child(4) { animation-delay: .18s; }
	.hero__texte > :nth-child(5) { animation-delay: .24s; }
	@keyframes monte { from { opacity: .01; transform: translateY(14px); } }
	.js .revele { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
	.js .revele.est-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Back to top: bottom right, shown once the visitor has scrolled (always shown without JS). */
.haut { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 40; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--mer); color: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(31, 33, 36, .22); text-decoration: none; transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition); }
.haut:hover { background: var(--mer-fonce); }
.haut .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.js .haut:not(.est-visible) { opacity: 0; visibility: hidden; transform: translateY(.6rem); }
.visionneuse-ouverte .haut { display: none; }

@media print {
	.haut { display: none !important; }
	.entete, .pied, .actions, .filtres, .formulaire { display: none; }
	.section { padding-block: 1.5rem; }
}

/* Signed-in editors: the sticky header sits under the admin bar. */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
@media (max-width: 600px) { .admin-bar .entete { top: 0; } }
.a-completer { background: #fff4cc; color: #5c4400; padding: 0 .25em; }
.section--texte .duo__corps h3 { margin-top: 2rem; }
.section--texte .duo__corps h3:first-child { margin-top: 0; }

/* Réalisations: gallery trigger on the card (same in every design). */
.chantier__photo--galerie { position: relative; display: block; cursor: zoom-in; color: #fff; text-decoration: none; }
.chantier__photo--galerie img { transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
.chantier__voile { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 45%, rgba(10, 11, 13, .78) 100%); opacity: .85; transition: opacity .4s ease; pointer-events: none; }
.chantier__compte { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; display: flex; align-items: flex-end; gap: .7rem; font-family: "Archivo", "Segoe UI", Arial, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; color: #fff; }
.chantier__nombre { font-stretch: 62%; font-weight: 800; font-size: 3.2rem; line-height: .8; font-variant-numeric: tabular-nums; }
.chantier__compte-texte { font-size: .82rem; font-weight: 650; line-height: 1.2; padding-bottom: .15rem; }
.chantier__compte .ico { margin-left: auto; width: 2.6rem; height: 2.6rem; padding: .7rem; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; transition: background-color .3s ease, color .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.chantier__photo--galerie:hover img, .chantier__photo--galerie:focus-visible img { transform: scale(1.07); }
.chantier__photo--galerie:hover .chantier__voile, .chantier__photo--galerie:focus-visible .chantier__voile { opacity: 1; }
.chantier__photo--galerie:hover .ico, .chantier__photo--galerie:focus-visible .ico { background: #fff; color: #111214; transform: rotate(-45deg); }
.chantier__photo--galerie:focus-visible { outline: 3px solid var(--mer); outline-offset: 3px; }

/* The photo viewer. */
.visionneuse-ouverte { overflow: hidden; }
.visionneuse { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #08090b; color: #fff; font-family: "Archivo", "Segoe UI", Arial, sans-serif; }
.visionneuse::backdrop { background: #08090b; }
.visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.visionneuse__halo { position: absolute; inset: -12%; z-index: 0; background-size: cover; background-position: center; filter: blur(70px) saturate(1.7) brightness(.9); opacity: 0; transition: opacity .7s ease; transform: translateZ(0); }
.visionneuse__halo.est-visible { opacity: 1; }
.visionneuse__halo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8, 9, 11, .25), rgba(8, 9, 11, .7) 80%); }
.visionneuse > :not(.visionneuse__halo) { position: relative; z-index: 1; }

.visionneuse__tete { display: flex; align-items: center; gap: 1.25rem; padding: 1rem clamp(1rem, 3vw, 2rem); }
.visionneuse__nom { margin-right: auto; min-width: 0; }
.visionneuse__titre { font-stretch: 112%; font-weight: 750; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.15; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visionneuse__lieu { margin-top: .2rem; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visionneuse__compte { white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; }
.visionneuse__courant { font-stretch: 62%; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.9rem); }
.visionneuse__total { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .55); }

.visionneuse__bouton { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; cursor: pointer; backdrop-filter: blur(10px); transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.visionneuse__bouton:hover { background: #fff; border-color: #fff; color: #08090b; }
.visionneuse__bouton[data-fermer]:hover { transform: rotate(90deg); }
.visionneuse__fleche:hover { transform: scale(1.1); }
.visionneuse__bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }

.visionneuse__scene { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem); min-height: 0; padding: 0 clamp(.75rem, 2.5vw, 2rem); }
.visionneuse__vue { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; height: 100%; min-height: 0; margin: 0; }
.visionneuse__cadre { position: relative; width: 100%; height: 100%; min-height: 0; }
/* Two stacked layers: the next photo is decoded out of sight, then fades in over the current one. */
.visionneuse__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .6)); transition: opacity .45s ease; cursor: ew-resize; will-change: opacity; }
.visionneuse__cadre img.est-visible { opacity: 1; }
.visionneuse__vue figcaption { padding: .9rem 1rem 0; max-width: 56rem; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .68); }

.visionneuse__progres { height: 2px; margin: 1.1rem clamp(1rem, 3vw, 2rem) 0; background: rgba(255, 255, 255, .16); }
.visionneuse__progres span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

.visionneuse__bande { display: flex; gap: .5rem; margin: 0; padding: .9rem clamp(1rem, 3vw, 2rem) 1.1rem; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.visionneuse__bande::-webkit-scrollbar { display: none; }
.visionneuse__bande li { flex: none; scroll-snap-align: center; }
.visionneuse__bande li:first-child { margin-left: auto; }
.visionneuse__bande li:last-child { margin-right: auto; }
.visionneuse__bande button { display: block; width: 4.25rem; height: 4.25rem; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #1a1c20; cursor: pointer; opacity: .42; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
.visionneuse__bande img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visionneuse__bande button:hover { opacity: .85; }
.visionneuse__bande button[aria-current="true"] { opacity: 1; transform: translateY(-5px); box-shadow: 0 0 0 2px #fff; }
.visionneuse__bande button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; opacity: 1; box-shadow: none; }

@media (max-width: 46rem) {
	.visionneuse__scene { grid-template-columns: minmax(0, 1fr); padding-inline: .5rem; }
	.visionneuse__fleche { display: none; } /* swipe, tap a half of the photo, or use the strip */
	.visionneuse__bande button { width: 3.4rem; height: 3.4rem; }
	.visionneuse__vue figcaption { font-size: .78rem; }
}

@media (prefers-reduced-motion: no-preference) {
	.visionneuse[open] { animation: visionneuse-ouvre .45s cubic-bezier(.2, .7, .2, 1); }
	.visionneuse[open] .visionneuse__tete, .visionneuse[open] .visionneuse__bande, .visionneuse[open] .visionneuse__progres { animation: visionneuse-monte .6s cubic-bezier(.2, .7, .2, 1) .12s both; }
	@keyframes visionneuse-ouvre { from { opacity: 0; transform: scale(1.03); } }
	@keyframes visionneuse-monte { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) { .visionneuse__cadre img, .visionneuse__halo { transition: none; } }

/* Drawings: the parapet section (coupe) and the house elevation (elevation).
   The elevation sits on a blueprint panel: in the hero ("Visuel d’en-tête") or under a section title. */
.coupe, .elevation { margin: 0; --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; }
.coupe svg, .elevation svg { display: block; width: 100%; height: auto; overflow: visible; }
.coupe figcaption, .elevation figcaption { margin-top: .9rem; font-family: var(--mono); font-size: .74rem; line-height: 1.5; }

.coupe { color: var(--encre); }
.coupe__trait { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; }
.coupe__trait--fin { stroke-width: 1; }
.coupe__trait--tirets { fill: none; stroke-width: 1.2; stroke-dasharray: 7 5; }
.coupe__hachure { stroke: currentColor; stroke-width: .7; opacity: .5; }
.coupe__membrane { fill: none; stroke: var(--mer); stroke-width: 5; stroke-linejoin: miter; }
.coupe__cote line { stroke: var(--mer); stroke-width: 1; }
.coupe__legende line { stroke: currentColor; stroke-width: .8; }
.coupe__legende circle { fill: var(--papier); stroke: currentColor; stroke-width: 1; }
.coupe__legende text { font-family: var(--mono); font-size: 15px; fill: currentColor; }
.coupe figcaption { color: var(--gris); }

.elevation { padding: clamp(1.25rem, 3vw, 2rem); color: #fff; background-color: var(--mer); background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 10rem 10rem, 10rem 10rem, 2rem 2rem, 2rem 2rem; }
.elevation line, .elevation path, .elevation circle { fill: none; stroke: #fff; stroke-linecap: square; }
.elevation__trait path { stroke-width: 1.8; }
.elevation__fin, .elevation__fin path, .elevation__fin circle { stroke-width: .9; opacity: .8; }
.elevation__sol { stroke-width: 3; }
.elevation__axe line { stroke-width: .7; stroke-dasharray: 14 5 2 5; opacity: .55; }
.elevation__axe circle { stroke-width: 1; opacity: .8; }
.elevation__axe text { font-family: var(--mono); font-size: 14px; fill: #fff; text-anchor: middle; }
.elevation__toit path { stroke: var(--vert); stroke-width: 5; stroke-linecap: butt; }
.elevation__vegetal { stroke: var(--vert) !important; stroke-width: 2 !important; }
.elevation__cote line, .elevation__cote path { stroke-width: .9; opacity: .75; }
.elevation__legende path { stroke-width: .9; }
.elevation__legende text { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; fill: #fff; }
.elevation figcaption { display: flex; align-items: center; gap: .7rem; color: var(--mer-clair); }
.elevation__cle { flex: none; width: 1.6rem; height: 5px; background: var(--vert); }

/* Hero: the blueprint panel takes the photo's place and its oblique cut. */
.hero__plan .hero__cadre { background: var(--mer); }
.hero__plan .elevation { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 62rem) {
	.hero__plan .hero__cadre { position: relative; }
	.hero__plan .elevation { position: absolute; inset: 0; padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(5rem, 9vw, 9rem); }
	.hero__plan .elevation svg { max-height: calc(100% - 4rem); }
}
@media (max-width: 61.99rem) { .hero__plan .hero__cadre { aspect-ratio: auto; } }

/* Under a section title. */
.section__dessin { margin-top: 2rem; }
.section__dessin { margin-top: 2.5rem; }
.section__dessin .coupe { max-width: 40rem; }
.section__logo { margin-top: 1.75rem; }
.section__logo img { width: 9rem; height: auto; }
/* Section with a photo: title and text on the left, the 4:5 photo on the right (below the text on phones). */
.duo--photo .duo__corps { margin-top: 1.5rem; }
.section__photo { margin: 0; width: 100%; max-width: 30rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brume); border-radius: var(--rayon); }
.section__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 56rem) {
	.duo--photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
	.duo--photo .duo__titre { position: static; }
	.duo--photo .section__photo { justify-self: end; }
}

/* The drawings trace themselves once: on load in the hero, when scrolled into view in a section. */
@media (prefers-reduced-motion: no-preference) {
	.coupe__trait:not(.coupe__trait--tirets), .coupe__membrane, .elevation__trait path, .elevation__toit path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s cubic-bezier(.6, 0, .2, 1) .15s forwards; }
	.coupe__membrane { animation-duration: 1.8s; animation-delay: .9s; }
	.elevation__toit path { animation-duration: 1.1s; animation-delay: 1.3s; }
	.coupe__trait--tirets, .coupe__legende, .coupe__cote, .elevation__fin, .elevation__axe, .elevation__cote, .elevation__legende, .elevation__vegetal { opacity: 0; animation: parait .7s ease 1.9s forwards; }
	.elevation__vegetal, .elevation__legende { animation-delay: 2.2s; }
	.coupe rect.coupe__trait, .coupe .coupe__trait[fill^="url"] { fill-opacity: 0; animation: trace 1.6s cubic-bezier(.6, 0, .2, 1) .15s forwards, hachure .9s ease 1.2s forwards; }
	.js .revele:not(.est-visible) .coupe *, .js .revele:not(.est-visible) .elevation * { animation-play-state: paused; }
	@keyframes trace { to { stroke-dashoffset: 0; } }
	@keyframes parait { to { opacity: .9; } }
	@keyframes hachure { to { fill-opacity: 1; } }
}

/* Service area: the departments as tags. */
.section--zone .points { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.section--zone .points li, .section--zone .points li:last-child { padding: .55rem 1rem; border: 1px solid var(--mer); border-radius: 999px; font-weight: 650; color: var(--mer); }
.section--zone .points li::before { display: none; }
.hero__plan .elevation figcaption { position: static; max-width: none; margin: .9rem 0 0; padding: 0; background: none; border-radius: 0; color: var(--mer-clair); }

/* Footer: the Sika Sarnafil approval. */
.pied__agrement { display: flex; align-items: center; gap: .9rem; font-weight: 650; color: #fff; }
.pied__agrement-logo { flex: none; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; padding: .3rem; background: #fff; border-radius: var(--rayon); box-sizing: border-box; }
.pied__agrement-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Legal notice: company details as label / value rows. */
.prose .mentions { display: grid; margin: 1.5rem 0 0; border-top: 1px solid var(--trait); }
.prose .mentions > div { display: grid; gap: .15rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--trait); }
@media (min-width: 40rem) { .prose .mentions > div { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; } }
.prose .mentions dt { font-size: .82rem; font-weight: 650; letter-spacing: .04em; color: var(--gris); }
.prose .mentions dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
