/* Polices hébergées sur le site (@fontsource), aucune ressource Google */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/caveat-latin-500-normal.woff2") format("woff2"); }

:root {
  --beton: #eeebe6;
  --beton-2: #e2ded7;
  --noir: #141414;
  --gris: #55524d;
  --plan: #0c2a4b;
  --plan-2: #0a2240;
  --trait: #eef6ff;
  --trait-2: #a9c6e6;
  --holo: #8fdcff;
  --chaud: #ffa23a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--beton); color: var(--noir);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: rgba(238,235,230,.78); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px); font-size: 13px; transition: background .4s, color .4s; }
.nav.sombre { background: rgba(10,34,64,.72); color: var(--trait); }
.nav .logo { position: relative; height: 36px; width: 60px; }
.nav .logo img { position: absolute; inset: 0; height: 36px; width: auto; transition: opacity .4s; }
.nav .logo .blanc, .nav.sombre .logo .noir { opacity: 0; }
.nav.sombre .logo .blanc { opacity: 1; }
.nav .liens { display: flex; gap: 22px; }
.nav .btn { padding: 7px 15px; border-radius: 99px; background: var(--noir); color: #fff; font-weight: 600; }
.nav.sombre .btn { background: var(--trait); color: var(--plan-2); }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 56px 16px 0; background: var(--noir); }
.hero .photo { position: absolute; inset: 0; }
.hero .photo picture { display: contents; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
/* Voile sombre pour que le logo et le titre restent lisibles sur la photo */
.hero .photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7) 100%); }
.hero .texte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.hero .grandLogo { height: clamp(130px, 25vh, 250px); width: auto; }
.hero h1 { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; margin: 2.6vh 0 0;
  letter-spacing: -.03em; font-weight: 800; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero h1 span { color: #d8d3cb; font-weight: 700; }
.hero .legende { margin: 3vh 0 0; font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.5); }

.reals { padding: 20vh 6vw 14vh; }
.reals h2 { font-size: clamp(40px, 6vw, 86px); letter-spacing: -.035em; margin: 0 0 8px; font-weight: 800; }
.reals .sous { font-size: clamp(18px, 1.8vw, 24px); color: var(--gris); margin: 0 0 7vh; max-width: 620px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.carte { position: relative; display: block; color: inherit; text-decoration: none; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--beton-2); }
.carte picture { display: contents; }
/* Apparition progressive : seulement sur l'accueil (accueil.js ajoute .vu) */
.reals .carte { opacity: 0; transform: translateY(60px) scale(.97); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reals .carte.vu { opacity: 1; transform: none; }
.reals .carte:nth-child(2) { transition-delay: .1s; } .reals .carte:nth-child(3) { transition-delay: .2s; } .reals .carte:nth-child(4) { transition-delay: .3s; } .reals .carte:nth-child(5) { transition-delay: .4s; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.carte:hover img { transform: scale(1.05); }
.carte .vide { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gris); font-size: 15px; padding: 24px; text-align: center; }
.carte .etiq { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.74)); }
.carte .etiq small { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.carte .etiq strong { font-size: 22px; letter-spacing: -.02em; }

.bande { overflow: hidden; padding: 0 0 18vh; }
.bande .piste { display: flex; gap: 14px; width: max-content; will-change: transform; }
.bande img { height: 300px; width: auto; border-radius: 16px; }

.contact { background: var(--noir); color: #fff; text-align: center; padding: 22vh 6vw; }
.contact img { height: 110px; width: auto; margin: 0 auto 30px; }
.contact h2 { font-size: clamp(40px, 6.5vw, 96px); letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.contact p { color: #aaa59c; font-size: 20px; margin: 0 0 40px; }
.contact a { display: inline-block; padding: 16px 30px; border-radius: 99px; background: #fff; color: var(--noir);
  font-weight: 700; text-decoration: none; font-size: 17px; }


@media (max-width: 900px) {
  .grille { grid-template-columns: 1fr 1fr; }
  .nav .liens { display: none; }
  .bande img { height: 200px; }
}

/* Liens de la nav, pied de page, pages simples */
.nav a { color: inherit; text-decoration: none; }
.nav .btn { color: #fff; }
.nav.sombre .btn { color: var(--plan-2); }
.contact .direct { font-size: 17px; margin: 28px 0 0; }
.contact a.lien { display: inline; padding: 0; background: none; color: #fff; font-size: inherit; font-weight: 600; text-decoration: underline; }
.pied { background: var(--noir); color: #aaa59c; border-top: 1px solid #2a2a2a; padding: 40px 6vw; display: flex; flex-wrap: wrap; gap: 32px 60px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.pied img { height: 48px; width: auto; }
.pied p { margin: 0 0 14px; }
.pied a { color: #fff; }
.pied strong { color: #fff; }
.page { max-width: 760px; margin: 0 auto; padding: 120px 6vw 80px; }
.page h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; margin: 0 0 24px; }
.page h2 { margin: 36px 0 10px; }
.page a { color: var(--plan); }
/* Réalisations : listes et fiches */
.page.large { max-width: 1200px; }
.page .sous { color: var(--gris); font-size: 20px; margin: 0 0 40px; }
.catalogue { margin: 0 0 56px; }
.page .catalogue h2 a { color: inherit; text-decoration: none; }
.bientot { color: var(--gris); font-size: 18px; }
.page .retour { margin-top: 40px; }
.fiche .ariane { margin: 0 0 8px; font-size: 14px; color: var(--gris); }
.fiche .ariane a { color: inherit; }
.fiche figure { margin: 0 0 24px; }
.fiche img { display: block; width: 100%; height: auto; border-radius: 16px; }
.fiche .description { font-size: 20px; max-width: 640px; }
.fiche .galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.a-completer { background: #ffe3bd; padding: 0 .3em; border-radius: 3px; font-weight: 700; }

/* Formulaire de devis */
.devis { display: grid; gap: 8px; max-width: 100%; }
.devis label { font-weight: 600; margin-top: 14px; }
.devis input, .devis textarea { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid var(--gris); border-radius: 12px; background: #fff; color: var(--noir); }
.devis input[type=file] { border-style: dashed; }
.devis .piege { position: absolute; left: -9999px; }
.devis .erreur { color: #b3261e; font-weight: 600; margin: 0; min-height: 1.2em; }
.devis button { justify-self: start; margin-top: 18px; padding: 14px 28px; border: 0; border-radius: 99px; background: var(--noir); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
