/* GEB · feuille de style du thème. Les couleurs viennent de theme.json (Apparence → Éditeur → Styles). */
:root {
  --noir: var(--wp--preset--color--noir);
  --noir-2: var(--wp--preset--color--noir-2);
  --laiton: var(--wp--preset--color--laiton);
  --laiton-fonce: var(--wp--preset--color--laiton-fonce);
  --beton: var(--wp--preset--color--beton);
  --gris: var(--wp--preset--color--gris);
  --gris-clair: var(--wp--preset--color--gris-clair);
  --blanc: var(--wp--preset--color--blanc);
  --rayon: 4px;
  --ombre: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);
  --max: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

/* Les sections occupent toute la largeur : on neutralise les largeurs « contenu » de WordPress. */
.accueil > *, .principal > *, .accueil.is-layout-constrained > *, .principal.is-layout-constrained > * { max-width: none; margin: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-image { margin: 0; }

.conteneur, .conteneur.is-layout-constrained, .conteneur.is-layout-flow { width: min(100% - 40px, var(--max)); max-width: none; margin-inline: auto !important; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--laiton); color: var(--noir); padding: 8px 14px; }
.evitement:focus { left: 8px; }

.surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--laiton); margin-bottom: 1rem;
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.surtitre a { text-decoration: none; }
.surtitre--sombre { color: var(--laiton-fonce); }

/* ---------- Boutons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button__link, .bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 600;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover, .bouton:hover { transform: translateY(-1px); }
.wp-block-button__link:hover { background: color-mix(in srgb, var(--laiton) 85%, white); }
.bouton { padding: 14px 24px; border-radius: var(--rayon); font-size: 1rem; }
.bouton--laiton { background: var(--laiton); color: var(--noir); }
.bouton--noir, .is-style-noir .wp-block-button__link { background: var(--noir); color: var(--blanc); }
.is-style-noir .wp-block-button__link:hover { background: #2b2b2b; }
.is-style-contour .wp-block-button__link { background: transparent; color: var(--blanc); border-color: rgb(255 255 255 / .35); }
.is-style-contour .wp-block-button__link:hover { background: transparent; border-color: var(--blanc); }
.is-style-lien .wp-block-button__link {
  background: none; color: inherit; padding: 0; border: 0; border-radius: 0;
  border-bottom: 2px solid var(--laiton); font-size: .92rem;
}
.is-style-lien .wp-block-button__link:hover { background: none; transform: none; }
.carte .is-style-lien .wp-block-button__link::after { content: " →"; margin-left: 4px; transition: margin .2s; }
.carte .is-style-lien .wp-block-button__link:hover::after { margin-left: 8px; }
.bouton--plein { width: 100%; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgb(20 20 20 / .94); backdrop-filter: blur(10px);
  color: var(--blanc); border-bottom: 1px solid rgb(255 255 255 / .06);
  transition: box-shadow .2s ease;
}
.admin-bar .entete { top: 32px; }
.entete.compacte { box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.entete__ligne { display: flex; align-items: center; gap: 28px; height: 72px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc); }
.marque__texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque__texte strong { font-family: var(--wp--preset--font-family--titre); font-size: 1.02rem; letter-spacing: -.01em; }
.marque__texte small { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--laiton); }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a:not(.bouton) { text-decoration: none; font-size: .93rem; color: rgb(255 255 255 / .78); position: relative; }
.nav a:not(.bouton):hover { color: var(--blanc); }
.nav a:not(.bouton):not(.nav__tel)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--laiton); transition: right .25s ease;
}
.nav a:not(.bouton):hover::after { right: 0; }
.nav .nav__tel { display: inline-flex; align-items: center; gap: 6px; color: var(--blanc); font-weight: 600; }
.nav__cta { padding: 10px 18px; font-size: .9rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--blanc); margin: 5px 0; }

/* ---------- Bandeau principal ---------- */
.hero { position: relative; overflow: hidden; background: var(--noir); color: var(--blanc); padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero__grille { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; margin-bottom: 1.25rem; color: var(--blanc); }
.hero h1 strong { position: relative; white-space: nowrap; font-weight: inherit; }
.hero h1 strong::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--laiton); z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: geb-trait .9s .4s cubic-bezier(.6, 0, .2, 1) forwards;
}
.hero h1 strong { z-index: 0; }
@keyframes geb-trait { to { transform: scaleX(1); } }
.hero__intro { font-size: 1.15rem; color: rgb(255 255 255 / .75); max-width: 36em; }
.hero__actions { margin: 2rem 0 2.2rem; }
.preuves { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: rgb(255 255 255 / .8); }
.preuves li, .coches li { position: relative; padding-left: 24px; }
.preuves li::before, .coches li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--laiton); border-bottom: 2.5px solid var(--laiton); transform: rotate(-45deg);
}
.hero__visuel { position: relative; }
.hero__visuel img { width: 100%; height: auto; display: block; }
.hero__visuel figcaption {
  position: absolute; right: -6px; top: 64%; margin: 0; text-align: left;
  background: var(--blanc); color: var(--noir); padding: 12px 16px; border-radius: var(--rayon);
  border-left: 4px solid var(--laiton); box-shadow: 0 14px 40px rgb(0 0 0 / .35);
  font-size: .8rem; line-height: 1.5; opacity: 0; animation: geb-apparition .6s 2.1s ease forwards;
}
.hero__visuel figcaption strong { font-size: .9rem; }
.hero__visuel figcaption em { font-style: normal; font-weight: 600; color: var(--laiton-fonce); }
@keyframes geb-apparition { to { opacity: 1; } }

/* ---------- Pour qui ---------- */
.profils { background: var(--noir-2); color: var(--blanc); border-top: 1px solid rgb(255 255 255 / .06); }
.profils__liste { display: grid; grid-template-columns: repeat(5, 1fr); }
.profil { padding: 28px 22px; border-left: 1px solid rgb(255 255 255 / .08); }
.profil:last-child { border-right: 1px solid rgb(255 255 255 / .08); }
.profil p { margin: 0 0 6px; }
.profil strong { font-family: var(--wp--preset--font-family--titre); }
.profil p + p { font-size: .86rem; color: rgb(255 255 255 / .6); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--sombre { background: var(--noir); color: var(--blanc); }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }
.section--beton { background: var(--beton); }
.section__entete { max-width: 720px; margin-bottom: 56px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section__intro { color: var(--gris); font-size: 1.08rem; }
.section__entete--ligne { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__entete--ligne h2 { max-width: 640px; margin-bottom: 0; }

/* Expertises */
.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 26px 26px; background: var(--blanc); border: 1px solid var(--gris-clair); border-radius: var(--rayon);
  transition: box-shadow .25s, transform .25s;
}
.carte::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--noir); transition: background .25s; }
.carte:hover { box-shadow: var(--ombre); transform: translateY(-4px); }
.carte:hover::before { background: var(--laiton); }
.carte__icone { margin-bottom: 22px !important; }
.carte__icone img { width: 44px; height: 44px; }
.carte h3 { font-size: 1.18rem; }
.carte__accroche { color: var(--gris); font-size: .95rem; }
.coches { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.coches li::before { border-color: var(--laiton-fonce); width: 10px; height: 6px; border-width: 2px; }
.carte > .wp-block-buttons { margin-top: auto; }

/* Méthode */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); }
.etape { position: relative; padding-right: 28px; }
.etape::before { content: ""; position: absolute; left: 56px; right: 12px; top: 22px; height: 1px; background: rgb(255 255 255 / .18); }
.etape:last-child::before { display: none; }
.etape__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border: 1.5px solid var(--laiton); color: var(--laiton); font-weight: 700; border-radius: 50%;
  font-family: var(--wp--preset--font-family--titre);
}
.etape h3 { font-size: 1.15rem; }
.etape p:not(.etape__num) { color: rgb(255 255 255 / .68); font-size: .95rem; }

/* Réalisations */
.realisations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: real; }
.archive .realisations, .post-type-archive .realisations { grid-template-columns: repeat(3, 1fr); }
.realisations > li { counter-increment: real; margin: 0; }
.fiche {
  height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 22px;
  background: var(--blanc); border-radius: var(--rayon); border-bottom: 3px solid var(--noir);
  transition: border-color .25s, transform .25s;
}
.fiche::before {
  content: counter(real, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--titre); font-size: 2.2rem; font-weight: 800; color: var(--gris-clair); line-height: 1;
}
.fiche:has(.realisation__photo)::before { display: none; }
.fiche:hover { border-color: var(--laiton); transform: translateY(-3px); }
.realisation__photo { margin: -22px -22px 6px; overflow: hidden; border-radius: var(--rayon) var(--rayon) 0 0; }
.realisation__photo img { width: 100%; display: block; object-fit: cover; }
.realisation__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton-fonce); font-weight: 700; margin-top: auto; }
.realisation__cat a { text-decoration: none; }
.realisation__titre { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.realisation__titre a { text-decoration: none; }
.realisation__titre a:hover { text-decoration: underline; text-decoration-color: var(--laiton); }
.realisation__extrait { color: var(--gris); font-size: .92rem; }
.realisation__extrait .wp-block-post-excerpt__more-text { display: none; }

/* Pourquoi nous */
.apropos { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.apropos__texte > p { color: var(--gris); font-size: 1.05rem; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.signature p { margin: 0; color: var(--gris); }
.signature p strong { color: var(--noir); }
.signature .signature__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--noir); color: var(--laiton); font-weight: 700; flex: none; }
.engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
.engagement::before { content: ""; display: block; width: 36px; height: 3px; background: var(--laiton); margin-bottom: 18px; }
.engagement h3 { font-size: 1.12rem; }
.engagement p { color: var(--gris); font-size: .95rem; margin: 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq__liste { display: grid; gap: 12px; }
.wp-block-details { background: var(--blanc); border-radius: var(--rayon); padding: 0 24px; border: 1px solid var(--gris-clair); }
.wp-block-details[open] { border-color: var(--noir); }
.wp-block-details summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-weight: 600;
  font-family: var(--wp--preset--font-family--titre);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--laiton-fonce); transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details p { color: var(--gris); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact__grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.contact__infos > p { color: rgb(255 255 255 / .72); font-size: 1.05rem; }
.contact .contact__zone { margin-top: 24px; font-size: .9rem; color: rgb(255 255 255 / .5); }
.contact__cartes { display: grid; gap: 16px; }
.contact__carte {
  position: relative; padding: 28px 28px 24px 92px; background: var(--blanc); color: var(--noir);
  border-radius: 6px; border-left: 4px solid var(--laiton); box-shadow: 0 20px 50px rgb(0 0 0 / .3);
  transition: transform .2s ease;
}
.contact__carte:hover { transform: translateY(-3px); }
.contact__carte::before {
  content: ""; position: absolute; left: 28px; top: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--noir) center / 22px no-repeat;
}
.contact__carte--tel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6a73c' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.contact__carte--mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6a73c' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.contact__carte p { margin: 0; }
.contact__label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton-fonce); }
.contact__valeur { margin: 6px 0 8px; }
.contact__valeur .wp-block-button__link {
  border: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; text-align: left;
  font-family: var(--wp--preset--font-family--titre); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 800; color: var(--noir);
  background: linear-gradient(var(--laiton), var(--laiton)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease;
}
.contact__valeur .wp-block-button__link:hover { background-size: 100% 2px; }
/* toute la carte est cliquable */
.contact__valeur .wp-block-button__link::after { content: ""; position: absolute; inset: 0; }
.contact__aide { color: var(--gris); font-size: .9rem; }

/* Pages simples (mentions légales, réalisation) */
.page-simple__entete { background: var(--noir); color: var(--blanc); padding: 72px 0 56px; }
.page-simple__entete h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--blanc); }
.page-simple__chapo { font-size: 1.15rem; color: rgb(255 255 255 / .75); max-width: 40em; margin-top: 12px; }
.page-simple__chapo .wp-block-post-excerpt__more-text { display: none; }
.page-simple__entete .realisation__cat { color: var(--laiton); }
.prose { padding: 56px 0 24px; }
.prose > * { max-width: 760px !important; margin-left: 0 !important; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: #333; font-size: 1.05rem; }
.realisation__grande-photo { margin-top: 48px !important; max-width: 960px; }
.realisation__grande-photo img { border-radius: 6px; }
.appel { margin-bottom: 96px !important; padding: 28px; background: var(--beton); border-left: 4px solid var(--laiton); border-radius: var(--rayon); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.appel p { margin: 0; }

/* Pied de page */
.pied { background: #0d0d0d; color: rgb(255 255 255 / .7); padding: 56px 0 24px; font-size: .92rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--laiton); }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.pied__marque { display: flex; gap: 16px; align-items: flex-start; color: var(--blanc); }
.pied__marque .logo { flex: none; width: 44px; }
.pied__marque p { color: rgb(255 255 255 / .6); }
.pied__marque strong { color: var(--blanc); }
.pied nav { display: grid; gap: 8px; align-content: start; }
.pied__bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: .8rem; color: rgb(255 255 255 / .4); }
.appel-mobile { display: none; }

/* Apparition au défilement (ajoutée par theme.js, jamais dans l'éditeur) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .realisations { grid-template-columns: repeat(3, 1fr); }
  .profils__liste { grid-template-columns: repeat(3, 1fr); }
  .profil { border-bottom: 1px solid rgb(255 255 255 / .08); }
  .nav { gap: 16px; }
  .nav .nav__tel { display: none; }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--noir); padding: 8px 20px 24px; border-bottom: 1px solid rgb(255 255 255 / .1);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .admin-bar .nav { inset: 118px 0 auto 0; }
  .nav.ouverte { transform: none; visibility: visible; }
  .nav a:not(.bouton) { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 1rem; }
  .nav a:not(.bouton)::after { display: none; }
  .nav .nav__tel { display: flex; }
  .nav__cta { margin-top: 18px; padding: 14px; }
  .hero { padding: 56px 0 72px; }
  .hero__grille, .apropos, .faq, .contact__grille { grid-template-columns: 1fr; gap: 40px; }
  .hero__visuel { max-width: 420px; margin-inline: auto !important; width: 100%; }
  .etapes { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .etape::before { display: none; }
  .section { padding: 72px 0; }
  .archive .realisations, .post-type-archive .realisations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
@media (max-width: 600px) {
  .cartes, .realisations, .engagements, .etapes, .archive .realisations, .post-type-archive .realisations { grid-template-columns: 1fr; }
  .profils__liste { grid-template-columns: 1fr 1fr; }
  .profil { padding: 20px 16px; }
  .fiche { min-height: 0; }
  .contact__carte { padding: 22px 18px 20px 72px; }
  .contact__carte::before { top: 24px; left: 16px; width: 40px; height: 40px; background-size: 20px; }
  .hero__actions .wp-block-button { width: 100%; }
  .hero__actions .wp-block-button__link { width: 100%; }
  .hero__visuel figcaption { right: 0; top: auto; bottom: -12px; }
  .marque__texte strong { font-size: .95rem; }
  .pied__grille { grid-template-columns: 1fr; }
  body { padding-bottom: 72px; }
  .appel-mobile {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; padding: 14px;
    background: var(--laiton); color: var(--noir) !important; font-weight: 700; border-radius: 6px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .3);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 strong::after { transform: none; }
  .hero__visuel figcaption { opacity: 1; }
}
