/* TERRAS-DEMO — feuille de style principale */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --jaune: #FFC743;
  --jaune-fonce: #F0AE00;
  --asphalte: #1F2328;
  --asphalte-2: #2C3238;
  --beton: #ECEDEA;
  --beton-2: #DCDED9;
  --texte: #1F2328;
  --texte-doux: #545B63;
  --blanc: #FFFFFF;
  --trait: #D3D6D1;
  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --corps: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --largeur: 1200px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--corps); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--largeur)); margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--texte-doux); max-width: 62ch; }
:focus-visible { outline: 3px solid var(--jaune-fonce); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--jaune); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 2px solid transparent; font-family: var(--corps); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-jaune { background: var(--jaune); color: var(--asphalte); }
.btn-jaune:hover { background: var(--jaune-fonce); }
.btn-noir { background: var(--asphalte); color: var(--blanc); }
.btn-noir:hover { background: #000; }
.btn-contour { border-color: currentColor; color: inherit; background: transparent; }
.btn-contour:hover { background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.entete .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque img { width: 54px; height: 54px; }
.marque strong { font-family: var(--titre); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.marque span { display: block; font-size: .82rem; color: var(--texte-doux); line-height: 1.2; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .sous > button { font: 600 1rem var(--corps); color: var(--texte); text-decoration: none; padding: 10px 12px; border-radius: var(--r); background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav .sous > button:hover, .nav a[aria-current="page"] { background: var(--beton); }
.sous { position: relative; }
.sous > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); }
.sous-menu { position: absolute; top: calc(100% + 6px); left: -12px; width: 560px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); box-shadow: 0 14px 40px rgba(31,35,40,.16); padding: 18px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.sous.ouvert .sous-menu { display: grid; }
.sous-menu a { display: block; padding: 7px 10px; text-decoration: none; border-radius: var(--r); font-weight: 500; }
.sous-menu a:hover { background: var(--beton); }
.entete .tel { white-space: nowrap; min-height: 46px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: var(--beton); border-radius: var(--r); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--asphalte); margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }

@media (max-width: 1020px) {
  .burger { display: block; }
  .entete .tel span.num { display: none; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto; display: none; gap: 0; }
  .nav.ouvert { display: flex; }
  .nav > a, .nav .sous > button { font-size: 1.15rem; padding: 14px 8px; border-bottom: 1px solid var(--beton-2); border-radius: 0; text-align: left; width: 100%; }
  .sous-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 10px 12px; grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .marque span { display: none; } .marque strong { font-size: 1.35rem; } .entete .wrap { gap: 10px; } }

/* Héro accueil */
.hero { position: relative; color: var(--blanc); background: var(--asphalte); isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,23,26,.92) 0%, rgba(20,23,26,.78) 42%, rgba(20,23,26,.15) 78%); }
.hero .wrap { padding: clamp(80px, 13vw, 170px) 0 clamp(70px, 10vw, 130px); }
.hero h1 { max-width: 14ch; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: #E6E8E5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 700px) { .hero::before { background: linear-gradient(180deg, rgba(20,23,26,.55), rgba(20,23,26,.92) 70%); } .hero > img { object-position: 70% 50%; } }

/* Bande jaune */
.bande { background: var(--jaune); color: var(--asphalte); }
.bande ul { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bande li { font-weight: 600; line-height: 1.3; padding-left: 16px; border-left: 3px solid var(--asphalte); }
.bande li b { display: block; font-family: var(--titre); font-size: 1.7rem; font-weight: 800; line-height: 1.05; }
@media (max-width: 860px) { .bande ul { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.gris { background: var(--beton); }
.section.noir { background: var(--asphalte); color: var(--blanc); }
.section.noir .lead { color: #C9CDC8; }
.tete-section { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.tete-section h2 { margin: 0; max-width: 18ch; }
.tete-section .lead { margin: 0; }

/* Entreprise */
.entreprise { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.entreprise figure { margin: 0; position: relative; }
.entreprise figure img { border-radius: var(--r); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.entreprise figcaption { font-size: .9rem; color: var(--texte-doux); margin-top: 10px; }
@media (max-width: 860px) { .entreprise { grid-template-columns: 1fr; } }

/* Services */
.groupes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .groupes { grid-template-columns: 1fr; } }
.groupe h3 { font-size: 1.7rem; padding-bottom: 12px; border-bottom: 3px solid var(--asphalte); margin-bottom: 0; }
.liste-services { display: grid; }
.service { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--beton-2); text-decoration: none; }
.service img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); }
.service h4 { font-size: 1.35rem; margin: 0 0 4px; }
.service p { margin: 0; color: var(--texte-doux); font-size: .97rem; line-height: 1.45; }
.service:hover h4 { text-decoration: underline; text-decoration-color: var(--jaune-fonce); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Parc d'engins */
.parc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.engin { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--asphalte-2); }
.engin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.engin figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(15,17,20,.88)); line-height: 1.3; }
.engin figcaption b { display: block; font-family: var(--titre); font-size: 1.4rem; }
.engin figcaption span { font-size: .93rem; color: #DADDD8; }
@media (max-width: 860px) { .parc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .parc { grid-template-columns: 1fr; } }
.suite-parc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Tarifs */
.tarifs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tarifs caption { text-align: left; font-family: var(--titre); font-size: 1.6rem; font-weight: 700; padding-bottom: 12px; }
.tarifs th, .tarifs td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tarifs thead th { font-size: .9rem; color: var(--texte-doux); font-weight: 600; border-bottom: 2px solid var(--asphalte); }
.tarifs td:last-child, .tarifs th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.tarifs td small { display: block; color: var(--texte-doux); font-weight: 400; }
.table-defile { overflow-x: auto; }
.mention { font-size: .92rem; color: var(--texte-doux); margin-top: 14px; }

/* Engagements */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.engagements div { border-top: 3px solid var(--jaune); padding-top: 18px; }
.engagements h3 { font-size: 1.4rem; }
.engagements p { color: var(--texte-doux); margin: 0; }
@media (max-width: 900px) { .engagements { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .engagements { grid-template-columns: 1fr; } }

/* Spécialités */
.specialites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specialite { display: grid; grid-template-rows: 240px auto; background: var(--blanc); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.specialite img { width: 100%; height: 100%; object-fit: cover; }
.specialite div { padding: 24px 26px 28px; }
.specialite p { color: var(--texte-doux); margin: 0 0 14px; }
.specialite .lien { font-weight: 700; text-decoration: underline; text-decoration-color: var(--jaune-fonce); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 760px) { .specialites { grid-template-columns: 1fr; } }

/* Devis */
.devis { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.coordonnees { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.coordonnees li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.coordonnees .ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--jaune); display: grid; place-items: center; }
.coordonnees .ico svg { width: 20px; height: 20px; }
.coordonnees small { display: block; color: var(--texte-doux); font-size: .88rem; }
.coordonnees a { font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.coordonnees a:hover { text-decoration: underline; }
.formulaire { background: var(--blanc); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border: 1px solid var(--trait); }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.formulaire label i { font-style: normal; color: var(--texte-doux); font-weight: 400; }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #B9BDB7; border-radius: var(--r); background: var(--blanc); color: var(--texte); }
.formulaire textarea { min-height: 140px; resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--asphalte); box-shadow: 0 0 0 3px var(--jaune); }
.formulaire .rgpd { font-size: .88rem; color: var(--texte-doux); margin: 0; }
.formulaire .btn { width: 100%; }
.piege { position: absolute; left: -9999px; }
@media (max-width: 900px) { .devis { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }

/* Pages intérieures */
.page-hero { position: relative; color: var(--blanc); background: var(--asphalte); isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,23,26,.9), rgba(20,23,26,.55)); }
.page-hero .wrap { padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 18ch; margin: 0; }
.fil { font-size: .95rem; margin-bottom: 14px; color: #D5D8D3; }
.fil a { color: var(--blanc); }
.fil ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

.contenu { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding: clamp(48px, 7vw, 80px) 0; align-items: start; }
.contenu .texte { max-width: 760px; }
.texte .intro { font-size: 1.22rem; color: var(--texte); }
.texte h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.4em; }
.texte h3 { font-size: 1.3rem; margin-bottom: .3em; }
.texte .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin: 22px 0 10px; }
.texte .feat > div { border-left: 3px solid var(--jaune); padding-left: 16px; }
.texte .feat p { margin: 0; color: var(--texte-doux); }
.texte .checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.texte .checks li { position: relative; padding-left: 32px; }
.texte .checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px; border-left: 3px solid var(--jaune-fonce); border-bottom: 3px solid var(--jaune-fonce); transform: rotate(-45deg); }
.texte .note { background: var(--beton); border-left: 4px solid var(--asphalte); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; margin: 28px 0; }
.texte .split { height: 1px; background: var(--trait); margin: 44px 0 0; }
.texte ul:not(.checks) { padding-left: 1.2em; }
@media (max-width: 640px) { .texte .feat { grid-template-columns: 1fr; } }

.cote { position: sticky; top: 100px; display: grid; gap: 22px; }
.carte-devis { background: var(--jaune); border-radius: var(--r); padding: 26px; }
.carte-devis h2 { font-size: 1.8rem; }
.carte-devis p { margin-bottom: 18px; }
.carte-devis .btn { width: 100%; margin-top: 8px; }
.carte-devis .btn-contour { color: var(--asphalte); }
.carte-devis .btn-contour:hover { background: rgba(0,0,0,.06); }
.autres { border: 1px solid var(--trait); border-radius: var(--r); padding: 22px 24px; }
.autres h2 { font-size: 1.35rem; }
.autres a { display: block; padding: 8px 0; border-top: 1px solid var(--beton-2); font-weight: 600; text-decoration: none; }
.autres a:hover { text-decoration: underline; }
@media (max-width: 960px) { .contenu { grid-template-columns: 1fr; } .cote { position: static; } }

/* Appel final */
.appel { background: var(--asphalte); color: var(--blanc); }
.appel .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 54px 0; }
.appel h2 { margin: 0; max-width: 22ch; }
.appel .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.pied { background: #171A1E; color: #C3C7C2; font-size: .97rem; }
.pied .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
.pied h2 { font-size: 1.3rem; color: var(--blanc); }
.pied a { color: #E6E8E5; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pied .logo-pied { width: 84px; height: 84px; margin-bottom: 14px; }
.pied .bas { border-top: 1px solid #2E3339; }
.pied .bas .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0; grid-template-columns: none; font-size: .88rem; }
@media (max-width: 900px) { .pied .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .wrap { grid-template-columns: 1fr; } }


/* Pages simples */
.simple { padding: clamp(48px, 7vw, 80px) 0; max-width: 780px; }
.simple h2 { font-size: 1.8rem; margin-top: 1.6em; }

/* Galerie de chantiers */
.galerie-section { background: var(--beton); padding: clamp(48px, 7vw, 80px) 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.page-hero > img { object-position: 50% 55%; }
.specialite img { object-position: 50% 60%; }
