/* =========================================================
   TRINDADE S.A.S - feuille de style principale
   Palette : vert militaire #4B5320 / blanc / vert sauge #E5EAD3
   ========================================================= */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --olive: #4B5320;
  --olive-fonce: #353A16;
  --olive-tres-fonce: #262A10;
  --olive-clair: #6B7536;
  --sauge: #E5EAD3;
  --sauge-fonce: #D3DABB;
  --blanc: #FFFFFF;
  --texte: #23271A;
  --texte-doux: #555B45;
  --bordure: #D9DEC6;
  --ombre: 0 10px 30px rgba(38, 42, 16, .10);
  --rayon: 6px;
  --largeur: 1180px;
  --titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;

}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); }
a:hover { color: var(--olive-fonce); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.2; color: var(--olive-tres-fonce); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--olive); color: #fff; padding: 10px 16px; z-index: 100; }
.lien-evitement:focus { left: 10px; }

/* --- Informations à compléter (à retirer avant mise en ligne) --- */
.a-completer {
  background: #FFF3B0;
  outline: 1px dashed #B59B00;
  padding: 0 4px;
  border-radius: 3px;
  color: #5A4A00;
}

/* ---------------- Barre supérieure ---------------- */
.barre-haut { background: var(--olive); color: var(--sauge); font-size: .88rem; }
.barre-haut .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.barre-haut a { color: var(--blanc); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.barre-haut a:hover { text-decoration: underline; color: var(--blanc); }
.barre-haut .coord { display: flex; gap: 22px; flex-wrap: wrap; }
.barre-haut svg { width: 15px; height: 15px; }

/* ---------------- En-tête / navigation ---------------- */
.entete { overflow-x: clip; background: var(--blanc); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--bordure); transition: box-shadow .2s; }
.entete.defile { box-shadow: 0 4px 18px rgba(38, 42, 16, .10); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo img { width: 270px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--texte); font-weight: 500; font-size: .95rem; border-radius: var(--rayon); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--olive); background: var(--sauge); }
.nav .bouton { margin-left: 8px; }
.nav .bouton:hover { background: var(--olive-fonce); color: #fff; }
.sous-menu-parent { position: relative; }
.sous-menu-parent > button {
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--texte); background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: var(--rayon); display: flex; align-items: center; gap: 6px;
}
.sous-menu-parent > button:hover, .sous-menu-parent.actif > button { color: var(--olive); background: var(--sauge); }
.sous-menu-parent > button svg { width: 12px; height: 12px; transition: transform .2s; }
.sous-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--rayon); box-shadow: var(--ombre); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.sous-menu-parent:hover .sous-menu, .sous-menu-parent.ouvert .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu-parent.ouvert > button svg { transform: rotate(180deg); }
.burger { display: none; background: none; border: 1px solid var(--bordure); border-radius: var(--rayon); width: 46px; height: 46px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--olive); position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------------- Boutons ---------------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px; background: var(--olive); color: #fff !important; text-decoration: none;
  padding: 13px 26px; border-radius: var(--rayon); font-weight: 600; font-size: .95rem; letter-spacing: .02em; border: 2px solid var(--olive);
  transition: background .2s, transform .2s; cursor: pointer; font-family: var(--corps);
}
.bouton:hover { background: var(--olive-fonce); border-color: var(--olive-fonce); transform: translateY(-1px); }
.bouton.contour { background: transparent; color: var(--olive) !important; }
.bouton.contour:hover { background: var(--olive); color: #fff !important; }
.bouton.clair { background: #fff; color: var(--olive) !important; border-color: #fff; }
.bouton.clair:hover { background: var(--sauge); border-color: var(--sauge); }
.bouton svg { width: 18px; height: 18px; }

/* ---------------- Héros ---------------- */
.heros { background: linear-gradient(180deg, var(--sauge) 0%, #F2F5E9 100%); position: relative; overflow: hidden; }
.heros::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--olive); }
.heros .conteneur { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.surtitre { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.surtitre::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--olive); vertical-align: middle; margin-right: 10px; }
.heros p.intro { font-size: 1.12rem; color: var(--texte-doux); max-width: 34em; }
.heros .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.heros .croquis { position: relative; }
.heros .croquis img { width: 100%; mix-blend-mode: multiply; }
.heros .croquis figcaption { position: absolute; right: 0; bottom: -30px; font-size: .78rem; color: var(--texte-doux); font-style: italic; }

/* Héros des pages intérieures */
.heros-page { background: var(--olive); color: var(--sauge); padding: 64px 0 56px; position: relative; overflow: hidden; }
.heros-page h1 { color: #fff; margin-bottom: .3em; }
.heros-page p { max-width: 46em; font-size: 1.08rem; margin: 0; }
.heros-page .fond { position: absolute; right: -40px; bottom: -10px; width: 560px; opacity: .14; pointer-events: none; }
.fil-ariane { font-size: .85rem; margin-bottom: 18px; }
.fil-ariane a { color: var(--sauge); }
.fil-ariane span { opacity: .7; }

/* ---------------- Sections ---------------- */
.section { padding: 90px 0; }
.section.sauge { background: var(--sauge); }
.section.olive { background: var(--olive); color: var(--sauge); }
.section.olive h2, .section.olive h3 { color: #fff; }
.entete-section { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.entete-section .surtitre::before { display: none; }
.entete-section p { color: var(--texte-doux); font-size: 1.05rem; }
.section.olive .entete-section p { color: var(--sauge); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.note { font-style: italic; color: var(--texte-doux); text-align: center; max-width: 760px; margin: 40px auto 0; }

/* Cartes domaines */
.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.carte {
  background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 30px 26px; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.carte::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--olive); border-radius: var(--rayon) var(--rayon) 0 0; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.carte:hover::before { transform: scaleX(1); }
.picto { width: 62px; height: 62px; border-radius: 50%; background: var(--sauge); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--olive); }
.picto svg { width: 32px; height: 32px; }
.carte ul { padding: 0; margin: 0 0 20px; list-style: none; font-size: .93rem; color: var(--texte-doux); }
.carte li { padding: 5px 0 5px 20px; position: relative; }
.carte li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--olive); }
.carte .lien { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.carte .lien:hover { gap: 10px; }

/* Atouts */
.atouts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.atouts li { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 18px 20px; border-radius: var(--rayon); border-left: 4px solid var(--olive); }
.atouts li svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--olive); margin-top: 2px; }
.atouts strong { display: block; color: var(--olive-tres-fonce); }
.atouts span { color: var(--texte-doux); font-size: .95rem; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.chiffre strong { display: block; font-family: var(--titre); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1.1; }
.chiffre > span { font-size: .92rem; letter-spacing: .04em; }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: etape; }
.etape { position: relative; padding-top: 58px; }
.etape::before { counter-increment: etape; content: "0" counter(etape); position: absolute; top: 0; left: 0; font-family: var(--titre); font-size: 2.4rem; font-weight: 700; color: var(--sauge-fonce); }
.etape h3 { font-size: 1.05rem; }
.etape p { color: var(--texte-doux); font-size: .95rem; }

/* Galerie réalisations */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filtres button { font: inherit; font-size: .9rem; font-weight: 500; padding: 9px 20px; border-radius: 40px; border: 1px solid var(--bordure); background: #fff; color: var(--texte); cursor: pointer; }
.filtres button[aria-pressed="true"], .filtres button:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.realisation { background: #fff; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); transition: box-shadow .25s, transform .25s; }
.realisation:hover { box-shadow: var(--ombre); transform: translateY(-3px); }
.realisation.cache { display: none; }
.visuel {
  aspect-ratio: 4 / 3; background-color: var(--sauge);
  background-image: url("../img/maison-croquis.png"); background-repeat: no-repeat; background-position: center 60%; background-size: 88%;
  display: flex; align-items: flex-end; justify-content: flex-start; position: relative;
}
.visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visuel .etiquette { position: relative; margin: 12px; background: var(--olive); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.visuel .provisoire { position: absolute; top: 12px; right: 12px; background: #FFF3B0; color: #5A4A00; font-size: .72rem; padding: 3px 8px; border-radius: 3px; border: 1px dashed #B59B00; }
.realisation .infos { padding: 18px 20px 22px; }
.realisation h3 { font-size: 1.02rem; margin-bottom: .3em; }
.realisation p { font-size: .9rem; color: var(--texte-doux); margin: 0; }

/* Bloc d'appel */
.appel { background: var(--olive); color: var(--sauge); border-radius: var(--rayon); padding: 50px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.appel h2 { color: #fff; margin-bottom: .2em; }
.appel p { margin: 0; }
.appel .fond { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: .12; pointer-events: none; }
.appel > * { position: relative; }
.appel .fond { position: absolute; }

/* Pages services : contenu */
.contenu h2 { margin-top: 0; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 24px; }
.liste-coches li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px solid var(--bordure); }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--olive)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.encadre { background: var(--sauge); border-radius: var(--rayon); padding: 34px; }
.encadre h3 { margin-bottom: .8em; }
.illustration { background: var(--sauge); border-radius: var(--rayon); padding: 30px; }
.illustration img { mix-blend-mode: multiply; }

/* Zone d'intervention */
.communes { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; list-style: none; }
.communes li { background: #fff; border: 1px solid var(--bordure); padding: 6px 14px; border-radius: 30px; font-size: .9rem; }
.communes li.principale { background: var(--olive); border-color: var(--olive); color: #fff; font-weight: 600; }
.carte-geo { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); background: var(--sauge); aspect-ratio: 4 / 3; }
.carte-geo iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact */
.grille-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.coordonnees { list-style: none; padding: 0; margin: 0 0 30px; }
.coordonnees li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--bordure); }
.coordonnees svg { width: 24px; height: 24px; color: var(--olive); flex: 0 0 24px; margin-top: 3px; }
.coordonnees strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.formulaire { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 36px; box-shadow: var(--ombre); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: .88rem; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: #FAFBF6; color: var(--texte); width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); background: #fff; }
.champ textarea { min-height: 150px; resize: vertical; }
.consentement { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--texte-doux); }
.consentement input { margin-top: 5px; accent-color: var(--olive); }
.message-formulaire { grid-column: 1 / -1; font-size: .9rem; margin: 0; }

/* Textes légaux */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* ---------------- Pied de page ---------------- */
.pied { background: var(--olive-tres-fonce); color: #C9CFB2; font-size: .92rem; }
.pied .conteneur { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.pied img { width: 240px; margin-bottom: 18px; }
.pied h3 { color: #fff; font-size: .95rem; letter-spacing: .1em; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { padding: 4px 0; }
.pied a { color: #E5EAD3; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .bas { border-top: 1px solid rgba(229, 234, 211, .15); }
.pied .bas .conteneur { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 20px; font-size: .82rem; }
.pied .a-completer { color: #5A4A00; }

/* Bouton retour en haut */
.haut-de-page { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre); opacity: 0; visibility: hidden; transition: .25s; z-index: 40; }
.haut-de-page.visible { opacity: 1; visibility: visible; }
.haut-de-page svg { width: 20px; height: 20px; }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .pied .conteneur { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: #fff; padding: 20px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; border-top: 1px solid var(--bordure); }
  .nav.ouvert { transform: none; visibility: visible; }
  body.menu-ouvert { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .sous-menu-parent > button { font-size: 1.05rem; padding: 14px 12px; width: 100%; text-align: left; justify-content: space-between; }
  .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; }
  .sous-menu-parent:hover .sous-menu { display: none; }
  .sous-menu-parent.ouvert .sous-menu { display: block; }
  .nav .bouton { margin: 14px 0 0; justify-content: center; }
  .heros .conteneur, .deux-colonnes, .grille-contact { grid-template-columns: 1fr; gap: 40px; }
  .heros .conteneur { padding-top: 46px; padding-bottom: 60px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .barre-haut .horaires { display: none; }
  .barre-haut .coord { gap: 14px; }
  .logo img { width: 180px; }
  .entete .conteneur { min-height: 72px; }
  .section { padding: 64px 0; }
  .cartes, .galerie, .etapes, .champs { grid-template-columns: 1fr; }
  .pied .conteneur { grid-template-columns: 1fr; }
  .appel { padding: 34px 24px; }
  .formulaire { padding: 24px 18px; }
  .heros-page { padding: 46px 0 40px; }
}
