/* FICHIER GÉNÉRÉ par build.py — ne pas éditer à la main.
   Source : ~/Sites/portemateriels-fr/assets/css/site.css */
/* =========================================================
   PORTE-MATÉRIELS — site catalogue en marque blanche
   Jaune chantier sur noir. Aucune parenté visuelle voulue
   avec le site du constructeur.
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --noir: #08090a;
  --noir-2: #0e1013;
  --acier: #15181c;
  --jaune: #30b4d8;
  --jaune-fonce: #2874b2;
  --blanc: #ffffff;
  --gris: #8d959c;
  --gris-fonce: #52585e;

  --max: 1280px;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--jaune); color: var(--noir); }

/* ---------- typo ---------- */

.display {
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.015em;
  margin: 0;
}
h1.display { font-size: clamp(2.3rem, 6vw, 5rem); }
h2.display { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
.display em { font-style: normal; color: var(--jaune); }

.sous-titre {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--jaune);
  margin: 2.6rem 0 .8rem;
}

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--jaune);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  background: var(--jaune);
  flex: none;
}

.lead { font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: #cfcfc9; max-width: 62ch; }
.muted { color: var(--gris); font-size: .95rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section-pad { padding-block: clamp(4rem, 9vw, 7.5rem); }
.bande { background: var(--noir-2); border-block: 1px solid rgba(255, 255, 255, .08); }

/* ---------- bandeau ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  background: rgba(11, 11, 11, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.6rem; }

.marque {
  margin-right: auto;
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  flex: none;
}
.marque span { color: var(--jaune); }

.nav {
  display: flex;
  gap: clamp(.8rem, 1.5vw, 1.6rem);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a { color: #c9c9c4; padding-block: .3rem; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover { color: var(--blanc); border-bottom-color: var(--jaune); }
.nav a.actif { color: var(--jaune); border-bottom-color: var(--jaune); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid var(--jaune);
  color: var(--jaune);
  background: transparent;
  transition: background .3s var(--ease), color .3s;
  cursor: pointer;
}
.btn:hover { background: var(--jaune); color: var(--noir); }
.btn-primary { background: var(--jaune); color: var(--noir); }
.btn-primary:hover { background: var(--blanc); border-color: var(--blanc); }
.btn svg { width: 14px; height: 14px; }

.burger { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.55); }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--noir) 2%, rgba(11, 11, 11, .35) 55%, rgba(11, 11, 11, .7) 100%),
    linear-gradient(to right, rgba(11, 11, 11, .92) 5%, rgba(11, 11, 11, .2) 65%);
}
.hero-inner { padding-bottom: clamp(2.5rem, 5vw, 4rem); width: 100%; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 0; }

.hero-gamme { min-height: 80svh; }
.logo-gamme { width: clamp(110px, 12vw, 150px); height: auto; margin-bottom: 1.8rem; }

/* barre de caractéristiques sous le hero produit */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  margin-top: 2.4rem;
}
.spec { background: rgba(11, 11, 11, .86); padding: 1.2rem 1.4rem; }
.spec b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  color: var(--jaune);
  line-height: 1.1;
  margin-bottom: .3rem;
}
.spec span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }

/* ---------- cartes de gamme ---------- */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--noir-2);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
}
.carte:hover { border-color: var(--jaune); transform: translateY(-4px); background: var(--acier); }
.carte img { width: 130px; height: auto; margin-bottom: 1rem; }
.carte-charge {
  font-size: 1.6rem;
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  color: var(--jaune);
  line-height: 1;
}
.carte-systeme { color: #c6c6c1; font-size: .95rem; flex: 1; }
.carte-go {
  margin-top: 1rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--jaune);
}
.carte-go svg { width: 14px; height: 14px; }

/* ---------- comparatif ---------- */

.tableau { overflow-x: auto; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 700;
  padding: 0 1rem 1rem 0;
  border-bottom: 2px solid var(--jaune);
}
tbody th, tbody td { text-align: left; padding: 1.2rem 1rem 1.2rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); vertical-align: top; }
tbody th {
  font-size: 1.25rem;
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  color: var(--jaune);
  white-space: nowrap;
}
tbody td { color: #c6c6c1; font-size: .95rem; }
tbody tr:hover td, tbody tr:hover th { background: rgba(255, 196, 0, .05); }

.lien-suite {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jaune);
  white-space: nowrap;
}
.lien-suite svg { width: 13px; height: 13px; }

/* ---------- page produit ---------- */

.deux-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .deux-col { grid-template-columns: 1fr; } }

ul.detail { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
ul.detail li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
ul.detail li::before { content: ''; width: 10px; height: 10px; background: var(--jaune); margin-top: .55em; }
ul.detail b { display: block; font-weight: 700; }
ul.detail span { color: var(--gris); font-size: .93rem; }

.photo-cadre { border: 1px solid rgba(255, 255, 255, .12); }
.photo-cadre img { width: 100%; height: auto; }

.liste-liens { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.liste-liens a {
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  color: var(--gris);
  transition: color .3s;
}
.liste-liens a:hover { color: var(--jaune); }
.liste-liens.grand a { font-size: clamp(1.4rem, 3vw, 2.4rem); }

/* ---------- pied ---------- */

.foot { background: var(--noir-2); border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .76rem;
  color: var(--gris-fonce);
}
.foot-bottom a:hover { color: var(--jaune); }

/* ---------- révélation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- mobile ---------- */

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    background: rgba(11, 11, 11, .97);
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav.open { transform: none; }
  .header-cta { display: none; }
  .burger { display: grid; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; z-index: 2; }
  .burger i { display: block; width: 26px; height: 2px; background: var(--jaune); transition: transform .4s var(--ease), opacity .3s; }
  .burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open i:nth-child(2) { opacity: 0; }
  .burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- vidéo en façade ---------- */
/* Une image et un bouton. L'iframe YouTube n'est injectée qu'au clic : aucun
   cookie tiers avant que le visiteur ait choisi de lancer la lecture. */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
  background: #000;
}
.video img,
.video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video img { filter: brightness(.62); transition: filter .5s var(--ease), transform 1.2s var(--ease); }
.video:hover img { filter: brightness(.75); transform: scale(1.03); }

.video button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px; height: 88px;
  border: 0;
  border-radius: 50%;
  background: var(--jaune);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.video button span {
  width: 0; height: 0;
  border-left: 26px solid var(--noir);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.video:hover button { transform: scale(1.08); background: var(--blanc); }

.video-titre {
  position: absolute;
  left: 0; bottom: 0;
  padding: 1rem 1.4rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(11, 11, 11, .9), transparent);
  width: 100%;
}
.video.joue button, .video.joue .video-titre, .video.joue img { display: none; }

/* ---------- galerie des pages produit ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem;
}
.galerie .photo-cadre { margin: 0; overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.galerie .photo-cadre:hover img { transform: scale(1.05); }
/* la première vue occupe toute la largeur : c'est la photo d'ensemble */
.galerie .photo-cadre:first-child { grid-column: 1 / -1; }
.galerie .photo-cadre:first-child img { aspect-ratio: 16 / 10; }


/* Lien de retour vers le site principal, propre à la variante lerouic. */
.retour { font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#9aa3a9; white-space:nowrap; margin-right:1rem; transition:color .3s }
.retour:hover { color:#fff }
