/* Alpiema — feuille de style principale */

/* Police Jost hébergée sur le site (licence SIL OFL, voir assets/fonts/LICENSE-Jost.txt) */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --noir: #111110;
  --anthracite: #1A1A19;
  --carte: #1E1E1D;
  --pied: #0A0A0A;
  --ligne: #2C2D2E;
  --ligne-forte: #3A3D3F;
  --texte: #F2EFEA;
  --texte-2: #C9C5BE;
  --texte-3: #A6A29B;
  --zinc: #A9B1B6;
  --bois: #C68A52;
  --bois-clair: #D9A570;
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--texte);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--texte); }
a:hover { color: var(--bois-clair); }
:focus-visible { outline: 2px solid var(--bois-clair); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }

.conteneur { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--bois); color: var(--noir); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.lien-evitement:focus { left: 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 6px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-bois { background: var(--bois); color: var(--noir); font-weight: 600; }
.btn-bois:hover { background: var(--bois-clair); color: var(--noir); }
.btn-contour { border-color: var(--zinc); color: var(--texte); background: transparent; }
.btn-contour:hover { border-color: var(--texte); color: var(--texte); }
.btn-petit { min-height: 44px; padding: 0 18px; }

/* Surtitre avec motif de toit */
.surtitre { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bois); }
.surtitre svg { flex-shrink: 0; }
.centre { text-align: center; align-items: center; justify-content: center; }
.titre-section { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.12; }
.entete-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 44px; }
.entete-section.centre { align-items: center; }
.entete-section .chapo { color: var(--texte-2); max-width: 36rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--ligne); background: var(--noir); }
.site-header .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.marque img { width: 50px; height: 50px; object-fit: contain; }
.marque-nom { display: block; font-weight: 600; font-size: 22px; letter-spacing: .16em; line-height: 1.1; }
.marque-sous { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--zinc); line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--bois); border-bottom: 2px solid var(--bois); }

/* Accueil */
.hero .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-texte { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
.hero-texte > p { font-size: 19px; color: var(--texte-2); max-width: 33rem; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 180px 14px 14px 14px; }

.atouts { background: var(--anthracite); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.atouts .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.atout { display: flex; gap: 12px; align-items: flex-start; }
.atout svg { flex-shrink: 0; margin-top: 2px; }
.atout strong { display: block; font-weight: 600; }
.atout span { font-size: 15px; color: var(--texte-3); }

/* Avis clients */
.avis { padding-top: 24px; padding-bottom: 72px; }
.avis-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.avis-entete h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 8px; }
.avis-note { display: flex; align-items: center; gap: 10px; color: var(--texte-2); }
.avis-note-chiffre { font-size: 28px; font-weight: 600; color: var(--texte); }
.etoiles { display: inline-flex; gap: 2px; }
.avis-grille { columns: 3 300px; column-gap: 24px; }
.avis-carte { margin: 0 0 24px; break-inside: avoid; background: var(--anthracite); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.avis-carte blockquote { margin: 0; color: var(--texte-2); font-size: 17px; line-height: 1.6; }
.avis-carte blockquote::before { content: "« "; color: var(--bois); }
.avis-carte blockquote::after { content: " »"; color: var(--bois); }
.avis-carte figcaption { font-weight: 500; }
.avis-carte figcaption span { color: var(--texte-3); font-weight: 400; font-size: 14px; }
.avis-lien { display: flex; justify-content: center; margin-top: 20px; }

/* Instagram */
.insta { padding-top: 24px; padding-bottom: 96px; }
.insta-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.insta-entete h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 8px; }
.insta-bande { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.insta-bande::-webkit-scrollbar { display: none; }
.insta-points { display: flex; justify-content: center; gap: 4px; margin-top: 14px; min-height: 28px; }
.insta-points button { width: 24px; height: 28px; padding: 0; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.insta-points button span { display: block; width: 8px; height: 8px; border-radius: 8px; background: rgba(242,239,234,.25); transition: width .25s, background .25s; }
.insta-points button:hover span { background: rgba(242,239,234,.5); }
.insta-points button[aria-current="true"] { width: 36px; }
.insta-points button[aria-current="true"] span { width: 22px; background: var(--bois); }
.insta-bande a { flex: 0 0 210px; scroll-snap-align: start; }
.insta-bande img { width: 210px; height: 210px; object-fit: cover; border-radius: 10px; }

/* Services */
.services { padding-top: 72px; padding-bottom: 72px; }
.cartes-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.carte { background: var(--anthracite); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.carte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carte-corps { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.carte h3 { font-size: 24px; }
.carte p { color: var(--texte-2); }
.et-aussi { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ligne); text-align: center; }
.et-aussi p { color: var(--texte-3); font-size: 16px; }
.et-aussi strong { color: var(--texte); font-weight: 600; }
.lien-bois { color: var(--bois); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

.cta-centre { display: flex; justify-content: center; margin-top: 40px; }
.btn-grand { min-height: 58px; padding: 0 34px; font-size: 18px; border-radius: 8px; box-shadow: 0 6px 24px rgba(198,138,82,.25); }
.btn-grand svg { transition: transform .2s; flex-shrink: 0; }
@media (max-width: 480px) { .btn-grand { padding: 0 20px; font-size: 17px; text-align: center; } }
.btn-grand:hover svg { transform: translateX(4px); }

/* Bandeau d'accès aux réalisations */
.bandeau-real { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 18px 18px 32px; border-radius: 14px; background: var(--anthracite); border: 1px solid var(--ligne-forte); text-decoration: none; color: var(--texte); transition: border-color .2s, background .2s; }
.bandeau-real:hover { border-color: var(--bois); background: #1E1D1B; color: var(--texte); }
.bandeau-texte { display: flex; flex-direction: column; gap: 4px; }
.bandeau-sur { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bois); }
.bandeau-titre { font-size: 24px; font-weight: 600; line-height: 1.25; }
.bandeau-visuels { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bandeau-visuels img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.bandeau-fleche { width: 92px; height: 92px; border-radius: 10px; background: var(--bois); color: var(--noir); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bandeau-fleche svg { transition: transform .2s; }
.bandeau-real:hover .bandeau-fleche { background: var(--bois-clair); }
.bandeau-real:hover .bandeau-fleche svg { transform: translateX(4px); }
@media (max-width: 760px) {
  .bandeau-real { padding: 18px; gap: 16px; }
  .bandeau-titre { font-size: 20px; }
  .bandeau-visuels img { display: none; }
  .bandeau-fleche { width: 56px; height: 56px; }
}

/* Entretien */
.entretien { background: var(--anthracite); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.entretien .conteneur { padding-top: 96px; padding-bottom: 96px; }
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; }
.offre { background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.offre.vedette { border: 1.5px solid var(--bois); }
.offre-badge { position: absolute; top: -13px; left: 32px; background: var(--bois); color: var(--noir); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.offre h3 { font-size: 24px; margin-bottom: 4px; }
.offre .sous { font-size: 15px; color: var(--texte-3); }
.prix-a-partir { display: block; font-size: 14px; color: var(--texte-3); }
.prix { font-size: 46px; font-weight: 600; line-height: 1.1; }
.prix-unite { font-size: 15px; color: var(--texte-3); }
.offre ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #DEDAD3; }
.offre li.non { color: #8E8A84; }
.offre .option { border-top: 1px solid var(--ligne-forte); padding-top: 16px; font-size: 15px; color: var(--texte-2); }
.offre .option strong { color: var(--bois); font-weight: 600; display: block; }
.offre .btn { margin-top: auto; }
.conditions { margin: 32px auto 0; font-size: 15px; color: var(--texte-3); max-width: 54rem; text-align: center; }

/* À propos */
.apropos { max-width: 1000px; padding-top: 96px; padding-bottom: 96px; }
.apropos-grille { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.apropos-photo { flex: 0 0 240px; width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 100px 12px 12px 12px; }
.apropos-texte { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.apropos-texte p { color: var(--texte-2); }
.citation { margin: 8px 0 0; padding: 22px 26px; background: var(--anthracite); border: 1px solid var(--ligne); border-radius: 12px; font-size: 22px; font-weight: 500; line-height: 1.35; }
.citation del { color: #8E8A84; text-decoration-thickness: 2px; text-decoration-color: var(--bois); }

/* Contact */
.contact { background: var(--anthracite); border-top: 1px solid var(--ligne); }
.contact .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.contact-infos { display: flex; flex-direction: column; gap: 20px; }
.contact-infos > p { color: var(--texte-2); }
.coordonnees { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.coordonnees a, .coordonnees div { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.coordonnees a { font-size: 19px; font-weight: 500; text-decoration: none; }
.coordonnees div { color: var(--texte-2); }
.reseaux { display: flex; gap: 12px; padding-top: 8px; }
.reseaux a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #55595C; border-radius: 6px; text-decoration: none; font-weight: 500; }
.formulaire { background: var(--noir); border: 1px solid var(--ligne-forte); border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.formulaire .duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.formulaire input, .formulaire select, .formulaire textarea {
  min-height: 46px; padding: 0 12px; border: 1px solid #6B6F72; border-radius: 6px;
  font: inherit; font-weight: 400; background: var(--carte); color: var(--texte);
}
.formulaire textarea { padding: 12px; resize: vertical; }
.formulaire .piege { position: absolute; left: -9999px; }
.formulaire .rgpd { font-size: 13px; color: var(--texte-3); }
.message-envoi { padding: 14px 16px; border-radius: 8px; font-size: 16px; }
.message-envoi.ok { background: #1F2E22; border: 1px solid #4F7A57; }
.message-envoi.erreur { background: #3A2020; border: 1px solid #8A4A4A; }

/* Pied de page */
.site-footer { background: var(--pied); color: var(--texte-3); font-size: 15px; border-top: 1px solid var(--ligne); }
.site-footer .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .marque-pied { display: flex; align-items: center; gap: 14px; }
.site-footer .marque-pied img { width: 40px; height: 40px; object-fit: contain; }
.site-footer strong { color: var(--texte); font-weight: 600; letter-spacing: .16em; }
.site-footer .liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--texte-3); }

/* Réalisations */
.bandeau-page { background: var(--anthracite); border-bottom: 1px solid var(--ligne); }
.bandeau-page .conteneur { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.bandeau-page h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.1; }
.bandeau-page p { color: var(--texte-2); max-width: 40rem; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.filtre { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #55595C; background: transparent; color: var(--texte); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--bois); border-color: var(--bois); color: var(--noir); }

.avant-apres { padding-top: 48px; padding-bottom: 8px; }
.avant-apres h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.grille-aa { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 28px; }
.aa { display: flex; flex-direction: column; gap: 12px; }
.aa-cadre { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--anthracite); }
.aa-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aa-trait { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--texte); pointer-events: none; }
.etiquette { position: absolute; top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.etiquette.gauche { left: 12px; background: rgba(17,17,16,.85); color: var(--texte); }
.etiquette.droite { right: 12px; background: var(--bois); color: var(--noir); }
.aa label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--texte-3); }
.aa input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--bois); margin: 0; }
.aa-titre { font-size: 17px; font-weight: 500; line-height: 1.35; }

.galerie { padding-top: 40px; padding-bottom: 80px; }
.compteur { margin-bottom: 20px; font-size: 15px; color: var(--texte-3); }
.grille-chantiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; }
.chantier { display: flex; flex-direction: column; gap: 10px; }
.chantier-cadre { position: relative; }
.chantier-cadre .agrandir { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.chantier-cadre img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.fleche { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(17,17,16,.75); color: var(--texte); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fleche:hover { background: rgba(17,17,16,.95); }
.fleche.prec { left: 8px; }
.fleche.suiv { right: 8px; }
.points { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.points span { width: 8px; height: 8px; border-radius: 50%; background: rgba(242,239,234,.4); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.points span.actif { background: var(--texte); }
.position { position: absolute; right: 10px; top: 10px; background: rgba(17,17,16,.85); font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.chantier-titre { font-size: 17px; font-weight: 500; line-height: 1.35; }
.chantier-note { font-size: 14px; color: var(--texte-3); line-height: 1.35; }
.chantier-cats { font-size: 14px; color: var(--bois); font-weight: 500; letter-spacing: .04em; }

.appel { background: var(--anthracite); border-top: 1px solid var(--ligne); }
.appel .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.appel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin-bottom: 8px; }
.appel p { color: var(--texte-2); }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; background: rgba(8,8,8,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 16px; z-index: 50; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; }
.visionneuse .fermer { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--texte); color: var(--noir); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.visionneuse .barre { display: flex; align-items: center; gap: 16px; }
.visionneuse .nav-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--zinc); background: transparent; color: var(--texte); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.visionneuse .legende { text-align: center; min-width: 200px; max-width: 520px; }
.visionneuse .legende-titre { font-size: 18px; font-weight: 500; }
.visionneuse .legende-texte { font-size: 15px; color: var(--texte-2); }
.visionneuse .legende-pos { font-size: 14px; color: var(--bois-clair); }

/* Mentions légales */
.texte-legal { max-width: 800px; padding-top: 56px; padding-bottom: 80px; }
.texte-legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 32px; }
.texte-legal h2 { font-size: 22px; margin: 32px 0 10px; color: var(--bois); }
.texte-legal p { color: var(--texte-2); margin-bottom: 8px; }
.a-completer { background: #3A2E12; color: #F0D9A8; padding: 0 4px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
