/* balimmo.online : charte du groupe (vert #063436, orange #EB8526),
   titres en GD Boing, texte en Montserrat, comme balimmo-construction.com. */
@font-face { font-family: 'GD Boing'; src: url('/fonts/GD-Boing-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root { --vert: #063436; --orange: #EB8526; --gris: #F4F6F6; --texte: #1f3b3d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', sans-serif; color: var(--texte); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'GD Boing', sans-serif; color: var(--vert); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 44px); text-align: center; }
h3 { font-size: 22px; }
.orange { color: var(--orange); }

/* Barre de navigation */
.barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 5vw; background: rgba(255,255,255,.96); border-bottom: 1px solid #e6ecec; }
.logo img { width: 140px; }
.barre nav { display: flex; gap: 28px; }
.barre nav a { text-decoration: none; font-size: 15px; }
.barre nav a:hover { color: var(--orange); }
.barre-droite { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .barre nav { display: none; } .logo img { width: 120px; } }

/* Selecteur de langue (sans JavaScript) */
.langue { position: relative; font-size: 14px; }
.langue summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.langue summary::-webkit-details-marker { display: none; }
.langue[open] summary svg:last-child { transform: rotate(180deg); }
.langue a { position: absolute; right: 0; top: calc(100% + 4px); display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border: 1px solid #e6ecec; border-radius: 10px; box-shadow: 0 8px 24px rgba(6,52,54,.12); text-decoration: none; }
.langue svg { border-radius: 2px; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: var(--vert); border: 1px solid var(--vert); border-radius: 999px; padding: 13px 26px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; transition: transform .35s ease; }
.bouton:hover { transform: translateY(-3px); }
.bouton-clair { background: transparent; }
.bouton-petit { padding: 8px 18px; font-size: 14px; }
@media (max-width: 520px) { .bouton-petit { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 5vw 40px; }
.hero p { font-size: 18px; max-width: 560px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo { border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; text-align: center; } .hero p { margin: 0 auto; } .boutons { justify-content: center; } }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 5vw; padding: 26px; background: var(--vert); border-radius: 24px; color: #fff; text-align: center; }
.stat strong { display: block; font-variant-numeric: tabular-nums; font-family: 'GD Boing', sans-serif; font-size: clamp(28px, 4vw, 44px); color: var(--orange); line-height: 1.1; }
.stat span { font-size: 14px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }

/* Blocs */
.bloc { padding: 72px 5vw; }
.bloc-vert { background: var(--gris); }
.intro { text-align: center; max-width: 680px; margin: 0 auto 36px; }

/* Societes */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6ecec; border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform .5s ease, box-shadow .5s ease; }
.carte:hover, .carte:active { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(6,52,54,.14); }
.carte-photo { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.carte-corps { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-corps h3 { margin: 0 0 4px; }
.carte-logo { height: 34px; width: auto; }
.carte-corps p { margin: 0; flex: 1; }
.carte-lien { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; margin-top: 8px; }
@media (max-width: 960px) { .cartes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Surtitres, comme la page Qui sommes-nous */
.surtitre { text-align: center; color: var(--orange); text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.trait { width: 64px; height: 4px; border-radius: 4px; background: var(--orange); margin: 18px auto 0; }

/* Fondateurs : fond vert, cartes beiges, portraits detoures sur fond blanc */
.bloc-fonce { background: var(--vert); }
.bloc-fonce h2 { color: #fff; }
.fondateurs { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 1040px; margin: 48px auto 0; }
.fondateur { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #F5EEE0; border: 2px solid #D4B886; border-radius: 20px; padding: 32px 28px 26px; transition: transform .5s ease, box-shadow .5s ease; }
.fondateur:hover, .fondateur:active { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,.25); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.portrait { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(6,52,54,.15); margin-bottom: 18px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fondateur h3 { font-size: 24px; margin-bottom: 12px; }
.fondateur p { margin: 0 0 10px; text-align: justify; hyphens: auto; color: rgba(6,52,54,.85); font-size: 15px; }
.devise { max-width: 760px; margin: 56px auto 0; text-align: center; color: #fff; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; }
@media (max-width: 860px) { .fondateurs { grid-template-columns: 1fr; gap: 40px; } .portrait { width: 128px; height: 128px; } }

/* Histoire : frise alternee avec ligne centrale */
.frise { position: relative; list-style: none; padding: 0; margin: 40px auto 0; max-width: 1000px; }
.frise::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(235,133,38,.3); transform: translateX(-50%); }
.etape { position: relative; display: flex; margin-bottom: 40px; }
.etape.gauche { justify-content: flex-start; }
.etape.droite { justify-content: flex-end; }
.etape-carte { width: calc(50% - 48px); background: #FAF6EE; border: 1px solid rgba(212,184,134,.4); border-radius: 18px; padding: 24px; }
.etape.gauche .etape-carte { text-align: right; }
.point { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #fff; transform: translate(-50%, -50%); }
.annee { display: block; font-family: 'GD Boing', sans-serif; font-size: 36px; color: var(--orange); line-height: 1.1; margin-bottom: 6px; }
.etape-carte h3 { font-size: 20px; margin-bottom: 6px; }
.etape-carte p { margin: 0; color: rgba(6,52,54,.75); font-size: 15px; }
.citation { text-align: center; font-style: italic; max-width: 680px; margin: 24px auto 0; font-size: 18px; color: var(--vert); }
@media (max-width: 860px) {
  .frise::before, .point { display: none; }
  .etape { margin-bottom: 18px; }
  .etape-carte { width: 100%; }
  .etape.gauche .etape-carte { text-align: left; }
}

/* Appel final, comme le bandeau de balimmo-construction.com */
.final { position: relative; display: flex; align-items: flex-end; gap: 24px; margin: 80px 5vw 72px; padding: 0 64px; background: var(--vert) url('/img/pattern-white.svg') center / cover no-repeat; border-radius: 24px; color: #fff; }
.final-texte { flex: 1; padding: 48px 0; align-self: center; }
.final h2 { color: #fff; text-align: left; }
.final p { margin: 0 0 22px; font-size: 18px; }
.final-photo { width: 380px; margin-top: -60px; flex: none; }
@media (max-width: 860px) {
  .final { padding: 0 20px; overflow: hidden; margin-top: 40px; }
  .final-texte { padding: 32px 150px 32px 0; }
  .final h2 { font-size: 26px; }
  .final p { font-size: 15px; }
  .final-photo { position: absolute; right: -30px; bottom: 0; width: 220px; margin: 0; }
}
@media (max-width: 420px) { .final-texte { padding-right: 120px; } .final-photo { width: 190px; } }

/* Pages legales */
.page-legale { max-width: 760px; margin: 0 auto; padding: 56px 5vw 80px; }

/* Pied de page */
.pied { background: var(--vert); color: #fff; padding: 56px 5vw 24px; font-size: 14px; }
.pied h3 { color: var(--orange); font-size: 18px; }
.pied a { color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied p { margin: 0 0 10px; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.pied-grille img { width: 150px; margin-bottom: 14px; }
.pied-sign { font-style: italic; opacity: .85; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); opacity: .85; }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; } }
