/* =========================================================
   CLIMAX STUDIO — home.css
   Refonte graphique mais lisible :
   - Hero : nom géant + courte intro à droite
   - Bandeau "Chiffres clés" 01/02/03/04
   - Aperçu projets (3 vignettes) avec lien vers la page Projets
   - Marquee aux étoiles ✦ EN BAS
   ========================================================= */

/* ============ HERO ============ */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (min-width: 1024px) {
  .hero__layout {
    /* On donne plus de place au nom : ratio ~3:1 pour que COLLEVILLE tienne */
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    gap: var(--s-7);
  }
}

/* --- Bloc gauche : nom géant --- */
.hero__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  position: relative;
  /* Empêche le débordement sur la colonne de droite */
  min-width: 0;
  overflow: hidden;
}

.hero__eyebrow {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-5);
}
.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero__first {
  /* "Thylan" — italique rouge, plus gros, en haut */
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: var(--s-3);
  text-transform: none;
  line-height: 0.95;
}

.hero__last {
  /* "Colleville" — typo géante, OBLIGATOIREMENT sur une seule ligne */
  display: block;
  font-weight: 900;
  /* Taille calibrée pour 10 lettres en Unbounded 900 :
     à 1024px de viewport, la colonne fait ~620px → 8.5vw donne ~87px qui tient.
     À 1920px, ~10.5vw donne ~200px qui tient encore. */
  font-size: clamp(40px, 8.5vw, 130px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink);
  /* Une seule ligne, garantie */
  white-space: nowrap;
  position: relative;
  padding-bottom: var(--s-3);
}
/* Sur mobile (avant 1024px) le layout est en colonne, le nom a toute la largeur */
@media (max-width: 1023px) {
  .hero__last {
    font-size: clamp(40px, 13vw, 110px);
  }
}
.hero__last::after {
  /* Liseré rouge sous le nom */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(60px, 8vw, 120px);
  height: 4px;
  background: var(--accent);
}

/* --- Bloc droite : intro courte + CTA --- */
.hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  border-left: 2px solid var(--ink);
  padding-left: var(--s-5);
}
@media (max-width: 1023px) {
  .hero__intro {
    border-left: 0;
    border-top: 2px solid var(--ink);
    padding-left: 0;
    padding-top: var(--s-5);
  }
}

.hero__intro-label {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__intro-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink);
}
.hero__intro-text strong { font-weight: 700; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn__arrow { transition: transform .3s; }
.btn:hover .btn__arrow { transform: translateX(6px); }

/* ============ CHIFFRES CLÉS ============ */
.facts {
  border-top: var(--rule-w) solid var(--ink);
  border-bottom: var(--rule-w) solid var(--ink);
  padding: var(--s-6) 0;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (min-width: 768px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }

.fact {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 0 var(--s-3);
  border-left: 2px solid var(--rule);
  transition: border-color .25s;
}
.fact:hover { border-left-color: var(--accent); }
.fact:first-child { border-left-color: var(--accent); }

.fact__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.fact__label {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

/* ============ APERÇU PROJETS ============ */
.featured {
  padding: var(--s-9) 0 var(--s-8);
}

.featured__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
@media (min-width: 768px) {
  .featured__head {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-6);
    align-items: end;
  }
}
.featured__num {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.featured__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.featured__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.featured__see-all {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.featured__see-all:hover {
  color: var(--accent);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px)  { .featured__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .featured__grid { grid-template-columns: repeat(3, 1fr); } }

.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border: var(--rule-w) solid var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.featured-card:hover { transform: translateY(-6px); }

.featured-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-soft);
}
.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.featured-card:hover .featured-card__media img {
  transform: scale(1.05);
}

.featured-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s-4);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #f0ebe1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-3);
}
.featured-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 22px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.featured-card__cat {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ============ MARQUEE AUX ÉTOILES (en bas, juste avant footer) ============ */
.marquee {
  border-top: var(--rule-w) solid var(--ink);
  border-bottom: var(--rule-w) solid var(--ink);
  overflow: hidden;
  margin: 0;
  padding: var(--s-3) 0;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: var(--s-7);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  width: max-content;
  will-change: transform;
}
.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-7);
}
.marquee__track > span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.6em;
  font-weight: 400;
}
