/* JN-DesignSolar — feuille de style du site (ambiance claire, D-5). */

/* Polices hébergées sur le serveur (aucun appel à Google : conforme RGPD). */
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }

:root {
	--pierre: #F5F2ED;      /* fond */
	--pierre-2: #ECE7DF;    /* fond des bandes teintées */
	--carte: #FBF9F6;       /* fond des cartes */
	--emplacement: #E4DED4; /* emplacements d'images */
	--ligne: #DDD6CB;       /* filets */
	--anthracite: #1E2023;  /* texte, boutons */
	--texte-2: #5F5B55;     /* texte secondaire (contraste 6:1 sur --pierre) */
	--or: #A8854A;          /* filets et ornements dorés */
	--or-texte: #7A5C2E;    /* or lisible en texte (contraste 5,5:1) */
	--or-clair: #D9C29A;    /* or sur fond sombre */
	--erreur: #9E2B25;      /* messages d'erreur du formulaire (contraste 6,6:1) */
	--police-titre: "Cormorant Garamond", Georgia, serif;
	--police-texte: "Manrope", system-ui, -apple-system, sans-serif;
	--police-marque: "Jost", "Futura", sans-serif;
	--largeur: 1240px;
	--marge: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--pierre); color: var(--anthracite); font-family: var(--police-texte); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-texte); }
a:hover { color: #5A421F; }
:focus-visible { outline: 2px solid var(--or-texte); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
em { font-style: italic; }

/* Accessibilité */
.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--anthracite); color: var(--pierre); padding: 12px 18px; z-index: 100; }
.lien-evitement:focus { left: 8px; }

/* Mise en page */
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.conteneur--etroit { max-width: 900px; }
.conteneur--texte { max-width: 820px; }
.pile { display: flex; flex-direction: column; gap: 22px; }
.pile--large { gap: 28px; }
.pile--section { gap: 48px; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: start; }
.deux-colonnes--centre { align-items: center; }
.deux-colonnes--texte { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 860px) { .deux-colonnes--texte { grid-template-columns: 1fr; } }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--sans-bas { padding-bottom: 0; }
.section--sans-haut { padding-top: 0; }
.section--teinte { background: var(--pierre-2); }
.section--filet { border-top: 1px solid var(--ligne); }
.intro-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.intro-section > p { max-width: 420px; }

/* Typographie */
.titre-xxl, .titre-xl, .titre-l { font-family: var(--police-titre); font-weight: 400; letter-spacing: -0.01em; }
.titre-xxl { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; }
.titre-xl { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.titre-l { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.titre-xxl em, .titre-xl em { color: var(--or-texte); }
.texte-doux { color: var(--texte-2); }
.surtitre { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or-texte); }
.surtitre--neutre { color: var(--texte-2); letter-spacing: 0.18em; }
.legende { margin-top: 10px; font-size: 11px; letter-spacing: 0.08em; color: var(--texte-2); }
.numero { font-family: var(--police-marque); font-size: 15px; letter-spacing: 0.18em; color: var(--or-texte); }
.pastille { display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-texte); border: 1px solid var(--or); padding: 4px 10px; }

/* Boutons et liens */
.bouton { display: inline-block; background: var(--anthracite); color: var(--pierre); text-decoration: none; padding: 16px 28px; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border: 0; cursor: pointer; }
.bouton:hover, .bouton:focus-visible { background: #000; color: var(--pierre); }
.bouton--petit { padding: 12px 22px; font-size: 12px; letter-spacing: 0.06em; }
.lien-souligne { color: var(--anthracite); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; border-bottom: 1px solid var(--or); padding: 4px 0; }
.lien-souligne:hover { color: var(--or-texte); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }

/* En-tête */
.entete { border-bottom: 1px solid var(--ligne); background: var(--pierre); position: relative; z-index: 10; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.marque { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--anthracite); }
.marque .logo-symbole { width: 52px; height: 52px; flex: none; }
.marque__texte { display: flex; flex-direction: column; gap: 5px; line-height: 1.1; }
.marque__nom { font-family: var(--police-marque); font-weight: 400; font-size: 18px; letter-spacing: 0.26em; }
.marque__accroche { font-family: var(--police-marque); font-weight: 300; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-2); }
.navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.navigation a:not(.bouton) { color: var(--anthracite); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.navigation a:not(.bouton):hover, .navigation a[aria-current] { border-bottom-color: var(--or); }
.menu-bouton { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--ligne); color: var(--anthracite); padding: 10px 14px; font: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; min-height: 44px; }
.menu-bouton__traits, .menu-bouton__traits::before, .menu-bouton__traits::after { display: block; width: 18px; height: 1.5px; background: currentColor; content: ""; position: relative; }
.menu-bouton__traits::before { position: absolute; top: -6px; }
.menu-bouton__traits::after { position: absolute; top: 6px; }

@media (max-width: 1080px) {
	.js .menu-bouton { display: inline-flex; }
	.js .navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--pierre); border-bottom: 1px solid var(--ligne); padding: 8px var(--marge) 24px; }
	.js .navigation.est-ouverte { display: block; }
	.navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
	.navigation li { border-top: 1px solid var(--ligne); }
	.navigation li:first-child { border-top: 0; }
	.navigation a:not(.bouton) { display: block; padding: 14px 0; font-size: 16px; border-bottom: 0; }
	.navigation .bouton { margin-top: 16px; text-align: center; display: block; }
	.entete__barre { flex-wrap: wrap; }
	.no-js .navigation { width: 100%; padding-bottom: 16px; }
}
@media (max-width: 480px) {
	.marque { gap: 12px; }
	.marque .logo-symbole { width: 44px; height: 44px; }
	.marque__nom { font-size: 15px; letter-spacing: 0.2em; }
	.marque__accroche { display: none; }
}

/* Bandeau d'accueil */
.bandeau { padding: clamp(64px, 10vw, 120px) 0; }
.bandeau__accroche { max-width: 520px; font-size: 18px; }
.bandeau__visuel img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; }
.bandeau__logo { display: flex; align-items: center; justify-content: center; min-height: clamp(320px, 42vw, 500px); background: var(--pierre-2); border: 1px solid var(--ligne); }
.bandeau__logo .logo-symbole { width: min(320px, 70%); height: auto; }

/* Citation */
.citation { border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: clamp(64px, 9vw, 100px) 0; text-align: center; }
.citation p { font-family: var(--police-titre); font-style: italic; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; }

/* Matières */
.matieres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.matieres figure { display: flex; flex-direction: column; gap: 10px; }
.matieres img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: inset 0 0 0 1px var(--ligne); }
.matieres figcaption { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }

/* Cartes (savoir-faire) et vignettes (réalisations, journal) */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.carte { display: flex; flex-direction: column; gap: 18px; background: var(--carte); border: 1px solid var(--ligne); padding: 28px; }
.carte__image img, .carte__image .emplacement { width: 100%; height: 260px; object-fit: cover; }
.carte__entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.carte__titre { font-family: var(--police-titre); font-weight: 500; font-size: 32px; line-height: 1.1; }
.carte__titre a, .vignette__titre a { color: inherit; text-decoration: none; }
.carte__titre a:hover, .vignette__titre a:hover { color: var(--or-texte); }
.carte__pied { font-size: 13px; letter-spacing: 0.04em; border-top: 1px solid var(--ligne); padding-top: 16px; margin-top: auto; }
.vignette { display: flex; flex-direction: column; gap: 12px; }
.vignette__image img, .vignette .emplacement { width: 100%; height: 300px; object-fit: cover; }
.vignette__titre { font-family: var(--police-titre); font-weight: 500; font-size: 26px; line-height: 1.15; }
.vignette__meta { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2); }
.emplacement { display: flex; align-items: flex-end; padding: 14px; background: var(--emplacement); color: var(--texte-2); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; min-height: 160px; }

/* Atouts */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.atouts li { display: flex; flex-direction: column; gap: 10px; }
.atouts__chiffre { font-family: var(--police-titre); font-size: clamp(36px, 4vw, 46px); line-height: 1; color: var(--or-texte); }

/* Professionnels */
.publics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.publics li { background: var(--pierre); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.publics__titre { font-family: var(--police-titre); font-size: 24px; }
.publics .texte-doux { font-size: 14px; }

/* Méthode */
.methode { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.methode li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--or); padding-top: 24px; }
.methode h3 { font-size: 18px; font-weight: 600; }
.methode__numero { font-family: var(--police-marque); letter-spacing: 0.18em; color: var(--or-texte); }

/* Contact */
.contact { border-top: 1px solid var(--ligne); }
.contact__coordonnees { border-left: 1px solid var(--ligne); padding-left: clamp(24px, 4vw, 48px); align-items: flex-start; gap: 18px; }
.contact__telephone { font-family: var(--police-titre); font-size: clamp(30px, 3.4vw, 36px); color: var(--anthracite); text-decoration: none; }
.contact__email { font-size: 18px; text-decoration: none; word-break: break-word; }
@media (max-width: 720px) { .contact__coordonnees { border-left: 0; padding-left: 0; border-top: 1px solid var(--ligne); padding-top: 32px; } }

/* Pages intérieures */
.entete-page { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 64px); }
.entete-page__intro { max-width: 640px; font-size: 18px; }
.visuel-large img { width: 100%; max-height: 620px; object-fit: cover; }
.liste-encadree { border-top: 1px solid var(--or); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.liste-encadree ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.liste-encadree li { padding-left: 18px; position: relative; color: var(--texte-2); }
.liste-encadree li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--or); }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; }
.filtres a { text-decoration: none; color: var(--anthracite); border: 1px solid var(--ligne); padding: 10px 18px; font-size: 13px; letter-spacing: 0.06em; min-height: 44px; display: inline-flex; align-items: center; }
.filtres a[aria-current] { background: var(--anthracite); color: var(--pierre); border-color: var(--anthracite); }
.vide { font-size: 18px; }
.retour { margin-top: 48px; }

/* Contenu rédigé par Jérôme (éditeur de blocs) */
.contenu { font-size: 17px; }
.contenu > * + * { margin-top: 1.1em; }
.contenu h2 { font-family: var(--police-titre); font-weight: 500; font-size: 34px; line-height: 1.15; margin-top: 1.6em; }
.contenu h3 { font-size: 19px; font-weight: 600; margin-top: 1.4em; }
.contenu ul, .contenu ol { padding-left: 1.2em; list-style: revert; } /* puces rétablies (les listes à classe sont remises à zéro plus haut) */
.contenu li + li { margin-top: 0.35em; }
.contenu blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 1px solid var(--or); font-family: var(--police-titre); font-style: italic; font-size: 24px; }
.contenu .wp-block-image img, .contenu .wp-block-gallery img { height: auto; }
.contenu figcaption { font-size: 12px; color: var(--texte-2); }

/* FAQ */
.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--police-titre); font-size: 24px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--police-texte); font-size: 24px; color: var(--or-texte); }
.faq details[open] summary::after { content: "−"; }
.faq details > .contenu { padding: 0 0 24px; color: var(--texte-2); font-size: 16px; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--ligne); text-decoration: none; color: var(--anthracite); }
.pagination .current { background: var(--anthracite); color: var(--pierre); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Pied de page */
.pied { background: var(--anthracite); color: #B8B2A8; font-size: 13px; }
.pied__barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.pied__marque { display: flex; align-items: center; gap: 14px; }
.pied__marque .logo-symbole { width: 40px; height: 40px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied__liens a { color: var(--or-clair); }
.pied__liens a:hover { color: #fff; }

/* ---------- Formulaire de demande de devis ---------- */
.formulaire { display: flex; flex-direction: column; gap: 28px; }
.formulaire__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.champ label, .champ legend { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--anthracite); padding: 0; }
.champ legend { margin-bottom: 12px; }
.champ__option { font-weight: 400; color: var(--texte-2); margin-left: 6px; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--anthracite);
	background: var(--carte); border: 1px solid var(--ligne); border-radius: 0; padding: 14px 16px;
}
.champ textarea { resize: vertical; min-height: 170px; line-height: 1.6; }
.champ input::placeholder, .champ textarea::placeholder { color: #8E887F; }
.champ input:focus, .champ textarea:focus { border-color: var(--or); outline: 2px solid var(--or); outline-offset: -1px; }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--erreur); }
.champ__erreur { font-size: 14px; color: var(--erreur); }
.choix { display: flex; flex-wrap: wrap; gap: 12px; }
.choix__option { position: relative; cursor: pointer; font-weight: 400 !important; letter-spacing: 0.02em !important; font-size: 15px !important; }
.choix__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix__option span { display: inline-block; padding: 12px 18px; border: 1px solid var(--ligne); background: var(--carte); transition: border-color 0.15s, background 0.15s; }
.choix__option:hover span { border-color: var(--or); }
.choix__option input:checked + span { background: var(--anthracite); border-color: var(--anthracite); color: var(--pierre); }
.choix__option input:focus-visible + span { outline: 2px solid var(--or-texte); outline-offset: 3px; }
.formulaire__envoi { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 8px; }
.formulaire__mention { font-size: 13px; max-width: 60ch; }
.formulaire__alerte { border-left: 2px solid var(--erreur); background: var(--carte); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.formulaire__alerte ul { margin: 0; padding-left: 1.2em; }
.formulaire__alerte a { color: var(--erreur); }
.formulaire__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .devis__coordonnees { border-left: 0; padding-left: 0; border-top: 1px solid var(--ligne); padding-top: 32px; } }
