/*
Theme Name: DS-Web
Theme URI: https://ds-web.fr
Author: Denis — DS-Web
Description: Thème sur mesure pour DS-Web, création et refonte de sites WordPress. Épuré, centré sur le logo au corbeau, avec portfolio (sites web, applications WordPress, thèmes WordPress), page contact avec formulaire et balisage SEO / GEO.
Version: 1.4.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ds-web
*/

/* ---------- Police (auto-hébergée, pas d'appel à Google : RGPD) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"),
	     url("assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
	--encre: #15171B;
	--papier: #F3F1EC;
	--carte: #FBFAF7;
	--petrole: #2E5E6E;
	--bleu-clair: #7FB3C2;
	--gris: #52565D;
	--filet: #DAD6CD;

	--fond: var(--papier);
	--texte: var(--encre);
	--oeil: var(--petrole);

	--police: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mesure: 68ch;
	--large: 1200px;
	--gouttiere: clamp(1.25rem, 4vw, 3rem);
	--espace-section: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--fond);
	color: var(--texte);
	font-family: var(--police);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--petrole); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petrole); outline-offset: 3px; border-radius: 2px; }
.sur-sombre :focus-visible { outline-color: var(--bleu-clair); }
::selection { background: var(--bleu-clair); color: var(--encre); }

h1, h2, h3, h4 {
	font-weight: 700;
	font-stretch: 125%;
	line-height: 1.08;
	letter-spacing: -.015em;
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1.1em; }
.chapeau { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--gris); max-width: 52ch; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100;
	top: 1rem; left: 1rem; padding: .75rem 1rem;
	background: var(--encre); color: var(--papier);
}

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.texte-courant { max-width: var(--mesure); }
.section { padding-block: var(--espace-section); }

/* Zones sombres : l'œil passe au bleu clair, comme sur le logo inversé */
.sur-sombre {
	--fond: var(--encre);
	--texte: var(--papier);
	--oeil: var(--bleu-clair);
	background: var(--encre);
	color: var(--papier);
}
.sur-sombre a { color: var(--bleu-clair); }
.sur-sombre .chapeau, .sur-sombre .discret { color: #B7B4AC; }

/* ---------- Le corbeau ---------- */
.ds-mark { color: currentColor; overflow: visible; }
.ds-mark__oeil { fill: var(--oeil); transition: transform .35s ease-out; }
/* Œil vivant (grand corbeau de l'accueil) */
.ds-mark__pupille { fill: var(--oeil); transition: opacity .5s ease; }
.ds-mark__paupiere { fill: var(--fond); }
.ds-mark__sommeil { stroke: var(--oeil); opacity: 0; transition: opacity .8s ease; }
[data-etat="dort"] .ds-mark__pupille { opacity: 0; }
[data-etat="dort"] .ds-mark__sommeil { opacity: 1; }

/* ---------- Apparitions surprises ---------- */
[data-scene] { position: relative; }
.scene-corbeau { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.corbeau-surprise { position: absolute; color: var(--texte); will-change: transform; }
.corbeau-surprise svg { display: block; width: 100%; height: auto; overflow: visible; }
.corbeau-surprise .oeil { fill: var(--oeil); transform-box: fill-box; transform-origin: center; }
.corbeau-surprise--remontee { bottom: 0; transform-origin: 50% 100%; }
.corbeau-surprise--coin { bottom: 0; transform-origin: 50% 100%; }
.corbeau-surprise--coin.a-droite { right: 0; }
.corbeau-surprise--coin.a-gauche { left: 0; }
.corbeau-surprise--survol { left: 0; opacity: .55; }
.corbeau-surprise--survol svg { transform-origin: 50% 75%; }
.corbeau-surprise--plume { top: 0; }

/* ---------- Retour en haut ---------- */
.retour-haut {
	position: fixed; z-index: 40;
	right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
	width: 3rem; height: 3rem; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	background: var(--encre); color: var(--papier);
	border: 2px solid var(--papier); box-shadow: 0 6px 20px -8px rgba(21, 23, 27, .5);
	opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, background-color .2s;
}
.retour-haut.est-visible { opacity: 1; transform: none; pointer-events: auto; }
.retour-haut:hover { background: var(--petrole); }
.retour-haut:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .retour-haut { transition: opacity .2s; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ds-mark__oeil { transition: none; } }

.marque {
	display: inline-flex; align-items: center; gap: .7rem;
	color: var(--texte); text-decoration: none;
}
.marque .ds-mark { width: 2.6rem; }
.marque__nom {
	font-weight: 700; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -.01em;
}
.marque:hover { text-decoration: none; }
.custom-logo { max-height: 56px; width: auto; }

/* ---------- Boutons ---------- */
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .95rem 1.5rem;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
	border: 2px solid var(--texte); border-radius: 999px;
	background: var(--texte); color: var(--fond);
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.bouton:hover { background: transparent; color: var(--texte); text-decoration: none; }
.bouton--clair { background: transparent; color: var(--texte); }
.bouton--clair:hover { background: var(--texte); color: var(--fond); }
.sur-sombre .bouton { color: var(--encre); background: var(--papier); border-color: var(--papier); }
.sur-sombre .bouton:hover { background: transparent; color: var(--papier); }

/* ---------- En-tête ---------- */
.entete {
	/* En-tête collant : reste en haut, s'affine et se détache du contenu quand on défile */
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	padding-block: 1.25rem;
	background: rgba(243, 241, 236, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: padding .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.entete.est-defile { padding-block: .6rem; border-bottom-color: var(--filet); box-shadow: 0 6px 24px -18px rgba(21, 23, 27, .45); }
.entete .marque .ds-mark { transition: width .25s ease; }
.entete.est-defile .marque .ds-mark { width: 2.2rem; }
@media (max-width: 782px) { .entete { top: 0; } } /* la barre d'admin WordPress n'est pas collante sur mobile */
[id] { scroll-margin-top: calc(var(--hauteur-entete, 5rem) + .5rem); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); align-items: center; }
.nav a { color: var(--texte); text-decoration: none; font-weight: 500; position: relative; padding-block: .4rem; }
.nav a::after {
	/* l'œil sert de repère de navigation */
	content: ""; position: absolute; left: 50%; bottom: -.35rem;
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--oeil); opacity: 0; transform: translateX(-50%) scale(.4);
	transition: opacity .2s, transform .2s;
}
.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-ancestor > a::after { opacity: 1; transform: translateX(-50%) scale(1); }
.nav .menu-contact > a, .nav .lien-contact {
	border: 2px solid var(--texte); border-radius: 999px; padding: .55rem 1.1rem;
}
.nav .menu-contact > a::after, .nav .lien-contact::after { display: none; }
.nav__bascule {
	display: none; background: none; border: 0; padding: .5rem; color: var(--texte); cursor: pointer;
	font: inherit; font-weight: 600;
}
@media (max-width: 860px) {
	.nav__bascule { display: inline-flex; align-items: center; gap: .5rem; }
	.nav ul {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: flex-start; gap: 0;
		background: var(--papier); padding: 1rem var(--gouttiere) 2rem;
		border-bottom: 1px solid var(--filet);
	}
	.nav.est-ouvert ul { display: flex; }
	.nav li { width: 100%; }
	.nav a { display: block; padding: .9rem 0; font-size: 1.15rem; }
	.nav .menu-contact > a, .nav .lien-contact { display: inline-block; margin-top: .75rem; }
}

/* ---------- Accueil : ouverture ---------- */
.ouverture { padding-block: clamp(2.5rem, 7vw, 6rem) var(--espace-section); }
.ouverture__grille {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center; gap: clamp(2rem, 6vw, 6rem);
}
.ouverture h1 { max-width: 15ch; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.ouverture__logo { display: flex; flex-direction: column; align-items: center; }
.ouverture__logo .ds-mark { width: min(100%, 360px); }
.ouverture__nom {
	font-weight: 700; font-stretch: 125%; font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	letter-spacing: -.01em; line-height: 1; margin: 1.4rem 0 0;
}
.ouverture__signature { color: var(--gris); margin-top: .5rem; font-size: 1rem; }
.ouverture__chiffre {
	display: flex; align-items: baseline; gap: .8rem; margin-top: 2.5rem;
	padding-top: 1.4rem; border-top: 1px solid var(--filet); max-width: 34rem; color: var(--gris);
}
.ouverture__chiffre strong { font-stretch: 125%; font-size: 2rem; color: var(--encre); line-height: 1; white-space: nowrap; }
@media (max-width: 860px) {
	.ouverture__grille { grid-template-columns: 1fr; }
	.ouverture__logo { order: -1; align-items: flex-start; }
	.ouverture__logo .ds-mark { width: 150px; }
	.ouverture__nom, .ouverture__signature { display: none; }
}

/* ---------- Services ---------- */
.services__tete { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .services__tete { grid-template-columns: 1fr; } }
.service {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(1.25rem, 4vw, 4rem);
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
	border-top: 1px solid rgba(243, 241, 236, .18);
}
.service h3 { margin: 0; }
.service--majeur h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.service p:last-child { margin-bottom: 0; }
.service__points { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.service__points li {
	font-size: .92rem; padding: .35rem .8rem; border-radius: 999px;
	border: 1px solid rgba(243, 241, 236, .28);
}
.services__secondaires { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 4rem); }
.services__secondaires .service { grid-template-columns: 1fr; gap: .8rem; }
@media (max-width: 760px) {
	.service, .services__secondaires { grid-template-columns: 1fr; }
}

/* Puce en forme d'œil */
.liste-oeil { list-style: none; padding: 0; margin: 0 0 1.2em; }
.liste-oeil li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.liste-oeil li::before {
	content: ""; position: absolute; left: 0; top: .6em;
	width: 8px; height: 8px; border-radius: 50%; background: var(--oeil);
}

/* ---------- Méthode (vraie séquence : numérotée) ---------- */
.methode__etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: etape; }
.methode__etapes li { counter-increment: etape; padding-top: 1.2rem; border-top: 2px solid var(--encre); }
.methode__etapes li::before {
	content: counter(etape); display: block; font-weight: 700; font-stretch: 125%;
	font-size: 1.05rem; color: var(--petrole); margin-bottom: .6rem;
}
.methode__etapes h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.methode__etapes p { color: var(--gris); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .methode__etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .methode__etapes { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.portfolio__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.filtres a {
	display: inline-block; padding: .5rem 1rem; border-radius: 999px;
	border: 1px solid var(--filet); color: var(--texte); text-decoration: none; font-size: .95rem;
}
.filtres a:hover { border-color: var(--encre); }
.filtres a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.grille-realisations {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.realisation { position: relative; }
.realisation__visuel {
	aspect-ratio: 4 / 3; overflow: hidden; background: var(--carte);
	border: 1px solid var(--filet); margin-bottom: 1.1rem;
	display: grid; place-items: center;
}
.realisation__visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.realisation:hover .realisation__visuel img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .realisation:hover .realisation__visuel img { transform: none; } }
.realisation__visuel .ds-mark { width: 30%; color: var(--filet); --oeil: var(--filet); }
.realisation__type { font-size: .9rem; color: var(--petrole); font-weight: 600; margin-bottom: .3rem; }
.realisation h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.realisation h3 a { color: var(--encre); text-decoration: none; }
.realisation h3 a::after { content: ""; position: absolute; inset: 0; }
.realisation h3 a:focus-visible { outline: none; }
.realisation:has(a:focus-visible) { outline: 3px solid var(--petrole); outline-offset: 6px; }
.realisation p { color: var(--gris); margin: 0; font-size: .98rem; }
.portfolio__tout { margin: 3rem 0 0; }
.apropos__texte > p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.vide {
	padding: 2.5rem; border: 1px dashed var(--filet); color: var(--gris); max-width: 46rem;
}

/* ---------- À propos ---------- */
.apropos__grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.apropos__faits { list-style: none; margin: 2rem 0 0; padding: 0; }
.apropos__faits li { padding: 1rem 0; border-top: 1px solid var(--filet); display: flex; justify-content: space-between; gap: 1rem; }
.apropos__faits li span:first-child { color: var(--gris); }
.apropos__faits li span:last-child { font-weight: 600; text-align: right; }
@media (max-width: 860px) { .apropos__grille { grid-template-columns: 1fr; } }

/* ---------- Appel au contact ---------- */
.appel { text-align: left; }
.appel__boite { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.appel__boite .ds-mark { width: 92px; }
.appel h2 { margin-bottom: .3rem; }
.appel p { margin: 0; }
@media (max-width: 760px) { .appel__boite { grid-template-columns: 1fr; } }

/* ---------- Consentement aux cookies : une carte d'où sort le corbeau ---------- */
.consent {
	position: fixed; z-index: 60;
	left: max(1.25rem, env(safe-area-inset-left)); bottom: max(1.25rem, env(safe-area-inset-bottom));
	width: min(27rem, calc(100vw - 2.5rem));
	padding: 1.7rem 1.6rem 1.25rem;
	border-radius: 20px;
	box-shadow: 0 24px 60px -24px rgba(21, 23, 27, .55), 0 2px 0 rgba(243, 241, 236, .04) inset;
	opacity: 0; transform: translateY(26px);
	transition: opacity .32s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
}
.consent__corps { max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior: contain; }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent.est-visible { opacity: 1; transform: none; }
.consent__perchoir {
	/* le corbeau émerge du bord haut de la carte : même couleur, son cou se fond dans le fond */
	position: absolute; bottom: calc(100% - 1px); left: 1.5rem;
	width: 78px; height: 50px; overflow: hidden; pointer-events: none;
}
.consent__corbeau {
	width: 78px; color: var(--encre);
	transform: translateY(100%); transition: transform .55s cubic-bezier(.2, .9, .25, 1.15) .2s;
	/* liseré clair : le corbeau reste lisible même posé sur un texte sombre */
	filter: drop-shadow(0 0 1px var(--papier)) drop-shadow(0 0 1px var(--papier));
}
.consent.est-visible .consent__corbeau { transform: translateY(14%); }
.consent__corbeau .ds-mark__oeil { transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.consent.est-refus .consent__corbeau .ds-mark__oeil { transform: scaleY(.08); }       /* il ferme les yeux */
.consent.est-accord .consent__corbeau .ds-mark__oeil { animation: ds-clin .5s ease 2; } /* il cligne, content */
@keyframes ds-clin { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
.consent__titre { font-size: 1.3rem; line-height: 1.15; margin: 0 0 .6rem; color: var(--papier); }
.consent__texte { font-size: .95rem; line-height: 1.55; color: #CFCBC2; margin: 0 0 1.1rem; }
.consent__details { margin: 0 0 1.1rem; border-top: 1px solid rgba(243, 241, 236, .14); }
.consent__ligne {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: .85rem 0; border-bottom: 1px solid rgba(243, 241, 236, .14);
}
.consent__ligne p { margin: 0; font-size: .86rem; color: #B7B4AC; line-height: 1.45; }
.consent__ligne .consent__nom { font-size: .95rem; font-weight: 600; color: var(--papier); margin-bottom: .2rem; }
.consent__ligne code { font-size: .82em; background: rgba(243, 241, 236, .08); padding: .05em .35em; border-radius: 4px; }
.consent__fixe { font-size: .8rem; color: var(--bleu-clair); white-space: nowrap; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.consent__actions .bouton { width: 100%; padding: .85rem 1rem; }
.consent__actions .consent__enregistrer { grid-column: 1 / -1; background: transparent; color: var(--papier); }
.consent__actions .consent__enregistrer:hover { background: var(--papier); color: var(--encre); }
.consent__liens { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .9rem 0 0; font-size: .86rem; }
.consent__lien { background: none; border: 0; padding: 0; font: inherit; color: var(--bleu-clair); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consent__liens a { color: #CFCBC2; }
.interrupteur {
	appearance: none; -webkit-appearance: none; flex: none; cursor: pointer;
	width: 46px; height: 26px; border-radius: 999px; margin: 0;
	background: rgba(243, 241, 236, .2); position: relative; transition: background-color .2s;
}
.interrupteur::before {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--papier); transition: transform .2s ease;
}
.interrupteur:checked { background: var(--bleu-clair); }
.interrupteur:checked::before { transform: translateX(20px); background: var(--encre); }
@media (prefers-reduced-motion: reduce) {
	.consent, .consent__corbeau, .interrupteur::before { transition: none; }
	.consent.est-accord .consent__corbeau .ds-mark__oeil { animation: none; }
}
@media (max-width: 600px) {
	.consent { left: .75rem; right: .75rem; width: auto; bottom: max(.75rem, env(safe-area-inset-bottom)); padding: 1.5rem 1.25rem 1.1rem; }
	.consent-ouvert .retour-haut { opacity: 0; pointer-events: none; }
}
.pied__legal { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pied__legal a { color: inherit; }
.tableau { overflow-x: auto; margin: 1.5rem 0; max-width: var(--mesure); }
.contenu table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.contenu th, .contenu td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--filet); }
.contenu thead th { border-bottom: 2px solid var(--encre); font-weight: 600; }
.contenu code { font-size: .88em; background: var(--carte); border: 1px solid var(--filet); padding: .05em .35em; border-radius: 4px; }
.pied__cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.pied__cookies:hover { color: var(--bleu-clair); }

/* ---------- Pages internes ---------- */
.tete-page { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.tete-page h1 { max-width: 20ch; }
.contenu { padding-bottom: var(--espace-section); }
.contenu > * { max-width: var(--mesure); }
.contenu > .alignwide { max-width: var(--large); }
.contenu > .alignfull { max-width: none; }
.contenu h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contenu h3 { margin-top: 1.6em; }
.contenu ul:not([class]) li::marker { color: var(--petrole); }
.contenu blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--petrole); font-size: 1.2rem; }
.contenu img { border: 1px solid var(--filet); }
.contenu figcaption { color: var(--gris); font-size: .9rem; margin-top: .5rem; }
.contenu pre { background: var(--encre); color: var(--papier); padding: 1.2rem; overflow-x: auto; border-radius: 4px; }

.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); padding-bottom: var(--espace-section); }
.fiche__visuel { margin: 0 0 2.5rem; border: 1px solid var(--filet); }
.fiche__infos { position: sticky; top: 2rem; align-self: start; }
.fiche__infos dl { margin: 0 0 1.75rem; }
.fiche__infos dt { color: var(--gris); font-size: .9rem; margin-top: 1rem; }
.fiche__infos dd { margin: .15rem 0 0; font-weight: 600; }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } .fiche__infos { position: static; order: -1; } }

.articles { display: grid; gap: 2.5rem; padding-bottom: var(--espace-section); max-width: var(--mesure); }
.article-resume h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.article-resume h2 a { color: var(--encre); text-decoration: none; }
.article-resume time, .discret { color: var(--gris); font-size: .95rem; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--filet); border-radius: 999px; text-decoration: none; color: var(--encre); }
.pagination .current { background: var(--encre); color: var(--papier); border-color: var(--encre); }

/* ---------- Formulaire de contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--espace-section); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.formulaire .plein { grid-column: 1 / -1; }
@media (max-width: 600px) { .formulaire { grid-template-columns: 1fr; } }
.champ label { display: block; font-weight: 600; margin-bottom: .4rem; }
.champ .facultatif { font-weight: 400; color: var(--gris); }
.champ input, .champ select, .champ textarea {
	width: 100%; font: inherit; color: var(--encre);
	background: var(--carte); border: 1px solid #C9C4B8; border-radius: 6px;
	padding: .8rem .95rem;
}
.champ textarea { min-height: 11rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--petrole); outline: 2px solid var(--petrole); outline-offset: 0; }
.consentement { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--gris); }
.consentement input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--petrole); flex: none; }
.anti-robot { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: var(--gris); }
.anti-robot__voyant {
	/* l'œil du corbeau sert de voyant : gris, puis bleu pétrole quand c'est vérifié */
	flex: none; width: 12px; height: 12px; border-radius: 50%;
	border: 2px solid #A8A399; background: transparent; transition: background-color .3s, border-color .3s;
}
.anti-robot.est-en-cours .anti-robot__voyant { border-color: var(--petrole); animation: ds-pulse 1s ease-in-out infinite; }
.anti-robot.est-ok .anti-robot__voyant { border-color: var(--petrole); background: var(--petrole); }
.anti-robot.est-ok .anti-robot__etat { color: var(--petrole); }
.anti-robot.est-erreur .anti-robot__voyant { border-color: #8E3B2A; }
@keyframes ds-pulse { 50% { transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .anti-robot.est-en-cours .anti-robot__voyant { animation: none; } }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-formulaire { padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 2rem; border-left: 4px solid; max-width: 46rem; }
.message-formulaire--ok { background: #E3EEF1; border-color: var(--petrole); }
.message-formulaire--erreur { background: #F5E6E1; border-color: #8E3B2A; }
.coordonnees h2 { font-size: 1.35rem; }
.coordonnees p { color: var(--gris); }
.coordonnees a { font-weight: 600; }

/* ---------- Pied de page ---------- */
.pied { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; border-top: 1px solid rgba(243, 241, 236, .12); }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.pied .marque .ds-mark { width: 3rem; }
.pied h2 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: .8rem; color: #B7B4AC; font-weight: 500; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: var(--papier); text-decoration: none; }
.pied a:hover { color: var(--bleu-clair); text-decoration: underline; }
.pied__bas {
	margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 241, 236, .15);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: #9C9990;
}
@media (max-width: 760px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Classes WordPress ---------- */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { color: var(--gris); font-size: .9rem; }
