/* =============================================
   HORIZONS — Nicolas Widmer — V3
   Palette : sable / encre / or / blanc froid
   Typo : Cormorant Garamond + Inter Light
   Signature : escales en alternance plein-écran
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sable:       #F4EFE6;
  --sable-clair: #FAF7F2;
  --encre:       #191714;
  --encre-doux:  #2E2A25;
  --or:          #B09060;
  --or-clair:    #C8A878;
  --blanc:       #FFFFFF;
  --gris:        #E6E0D6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--encre);
  background: var(--sable);
  overflow-x: hidden;
}

/* ---- BOUSSOLE (nav fixe discrète) ---- */
.boussole {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}

.boussole.scrolled {
  background: rgba(25, 23, 20, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.boussole-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--blanc);
  letter-spacing: 1px;
}

.boussole-liens {
  display: flex;
  align-items: center;
  gap: 6px;
}

.boussole-liens a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.boussole-liens a:hover { color: var(--or-clair); }

.sep { color: rgba(255,255,255,0.3); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,17,12,0.3) 0%,
    rgba(20,17,12,0.2) 40%,
    rgba(20,17,12,0.65) 100%
  );
}

.hero-contenu {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanc);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-mantra {
  font-size: clamp(9px, 1.1vw, 12px);
  letter-spacing: 6px;
  opacity: 0.7;
  margin-bottom: 64px;
}

.hero-citation {
  margin-bottom: 64px;
}

.hero-citation p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.8vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-citation p.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 4px;
  transition: color 0.3s;
  animation: flotter 2.5s ease-in-out infinite;
}

.hero-cta:hover { color: var(--or-clair); }

@keyframes flotter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- INTRO ---- */
.intro {
  background: var(--encre);
  padding: 100px 48px;
}

.intro-texte {
  max-width: 680px;
  margin: 0 auto;
}

.intro-texte p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(244,239,230,0.82);
  margin-bottom: 28px;
}

/* ---- BLOCS TITRES DE SECTION ---- */
.bloc-titre {
  background: var(--encre-doux);
  padding: 80px 48px;
  text-align: center;
}

.bloc-titre-clair {
  background: var(--sable-clair);
}

.bloc-titre-inner { max-width: 600px; margin: 0 auto; }

.bloc-numero {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--or);
  display: block;
  margin-bottom: 16px;
}

.bloc-titre h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300;
  color: var(--blanc);
  line-height: 1;
  margin-bottom: 20px;
}

.bloc-titre-clair h2 { color: var(--encre); }

.bloc-sous {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,239,230,0.55);
  font-style: italic;
}

.bloc-titre-clair .bloc-sous { color: rgba(25,23,20,0.55); }

/* ---- ESCALES HORIZONS ---- */
.escale {
  display: grid;
  min-height: 70vh;
}

.escale-large {
  grid-template-columns: 1fr 1fr;
}

.escale-inversee .escale-image-wrap { order: 2; }
.escale-inversee .escale-texte      { order: 1; }

.escale-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.escale-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.escale:hover .escale-image { transform: scale(1.03); }

.escale-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}

.escale-texte-droite { background: var(--sable-clair); }
.escale-texte-gauche { background: var(--encre); color: var(--sable); }

.escale-texte-gauche .escale-label { color: var(--or-clair); }
.escale-texte-gauche h3 { color: var(--sable-clair); }
.escale-texte-gauche p  { color: rgba(244,239,230,0.75); }

.escale-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--or);
  display: block;
  margin-bottom: 16px;
}

.escale-texte h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}

.escale-texte p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(25,23,20,0.72);
  margin-bottom: 32px;
  max-width: 420px;
}

.escale-lien {
  display: inline-block;
  color: var(--or);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(176,144,96,0.35);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  align-self: flex-start;
}

.escale-lien:hover {
  color: var(--encre);
  border-color: var(--encre);
}

.escale-texte-gauche .escale-lien:hover {
  color: var(--blanc);
  border-color: var(--blanc);
}

/* Escale immersive plein écran (Gorilles) */
.escale-immersive {
  position: relative;
  min-height: 90vh;
  display: block;
}

.escale-immersive .escale-image-wrap {
  position: absolute;
  inset: 0;
  min-height: unset;
}

.escale-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 60%);
}

.escale-texte-centre {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 64px 10%;
  color: var(--blanc);
  z-index: 2;
  max-width: 700px;
}

.escale-texte-centre h3 { color: var(--blanc); }
.escale-texte-centre p  { color: rgba(255,255,255,0.80); max-width: 100%; }
.escale-texte-centre .escale-label { color: var(--or-clair); }
.escale-texte-centre .escale-lien  { color: var(--or-clair); border-color: rgba(200,168,120,0.4); }
.escale-texte-centre .escale-lien:hover { color: var(--blanc); border-color: var(--blanc); }

/* ---- GALERIE APERÇU ---- */
.galerie-apercu {
  background: var(--encre);
  padding: 80px 48px;
}

.galerie-titre {
  text-align: center;
  margin-bottom: 40px;
}

.galerie-titre h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--sable-clair);
  margin-top: 12px;
}

.galerie-grille {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.gal-item {
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: opacity 0.4s;
}

.gal-item:hover { opacity: 0.85; }

.gal-item.grand {
  grid-row: 1 / 3;
}

.galerie-voir {
  display: block;
  text-align: center;
  color: var(--or-clair);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.galerie-voir:hover { color: var(--blanc); }

/* ---- SECTION ÉCRITURES ---- */
.ecriture-ligne {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 380px;
  background: var(--sable-clair);
}

.ecriture-ligne-alt {
  background: var(--gris);
  grid-template-columns: 1fr 400px;
}

.ecriture-ligne-alt .ecriture-image { order: 2; }
.ecriture-ligne-alt .ecriture-corps  { order: 1; }

.ecriture-image {
  overflow: hidden;
}

.ecriture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.ecriture-ligne:hover .ecriture-image img { transform: scale(1.04); }

.ecriture-corps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 56px;
}

.ecriture-corps h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ecriture-corps p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(25,23,20,0.68);
  margin-bottom: 28px;
  max-width: 480px;
}

/* ---- FRAGMENT FINAL ---- */
.fragment {
  background: var(--encre-doux);
  padding: 100px 48px;
  text-align: center;
}

.fragment blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 300;
  font-style: italic;
  color: var(--sable-clair);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 28px;
}

.fragment cite {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--or-clair);
  font-style: normal;
}

/* ---- PIED ---- */
.pied {
  background: var(--encre);
  color: rgba(244,239,230,0.4);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pied-gauche {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pied-nom {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: rgba(244,239,230,0.7);
}

.pied-lieux {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--or);
}

.pied a {
  color: var(--or-clair);
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 12px;
}

.pied a:hover { color: var(--blanc); }

/* ---- REVEAL AU SCROLL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .boussole { padding: 16px 24px; }
  .escale-large { grid-template-columns: 1fr; }
  .escale-inversee .escale-image-wrap { order: 1; }
  .escale-inversee .escale-texte      { order: 2; }
  .escale-image-wrap { min-height: 300px; }
  .escale-texte { padding: 40px 28px; }
  .galerie-grille {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .gal-item.grand { grid-row: 1 / 2; grid-column: 1 / 3; }
  .ecriture-ligne,
  .ecriture-ligne-alt {
    grid-template-columns: 1fr;
  }
  .ecriture-ligne-alt .ecriture-image { order: 1; }
  .ecriture-ligne-alt .ecriture-corps  { order: 2; }
  .ecriture-image { height: 260px; }
  .ecriture-corps { padding: 36px 28px; }
  .intro { padding: 64px 28px; }
  .galerie-apercu { padding: 60px 24px; }
  .fragment { padding: 64px 28px; }
  .pied { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
}

/* ---- CORRECTIONS V3.1 ---- */

/* Titres d'escales plus francs et lisibles */
.escale-texte h3 {
  font-size: clamp(32px, 3.5vw, 50px);
  color: var(--encre);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.escale-texte-gauche h3 {
  color: var(--sable-clair);
}

/* Paragraphe : redeclare ici pour gagner sur la regle generale .escale-texte p
   (meme specificite, donc l'ordre dans le fichier decide) */
.escale-texte-gauche p {
  color: rgba(244,239,230,0.75);
}

.escale-texte-centre h3 {
  color: var(--blanc);
  font-size: clamp(34px, 4vw, 56px);
}

/* Label escale légèrement plus visible */
.escale-label {
  font-size: 12px;
  letter-spacing: 7px;
  font-weight: 400;
  color: var(--or);
}

/* Titres écriture plus francs */
.ecriture-corps h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  color: var(--encre);
  letter-spacing: 0.3px;
}

/* ---- SECTION CTA ÉCHANGES & CONTACT ---- */
.cta-section {
  background: var(--gris);
  padding: 90px 48px;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--encre);
  margin-bottom: 20px;
}

.cta-texte {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(25,23,20,0.65);
  margin-bottom: 44px;
  font-style: italic;
}

.cta-boutons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.cta-btn-principal {
  background: var(--encre);
  color: var(--or-clair);
  border: 1px solid var(--encre);
}

.cta-btn-principal:hover {
  background: var(--encre-doux);
  color: var(--blanc);
}

.cta-btn-secondaire {
  background: transparent;
  color: var(--encre);
  border: 1px solid rgba(25,23,20,0.35);
}

.cta-btn-secondaire:hover {
  border-color: var(--or);
  color: var(--or);
}

@media (max-width: 600px) {
  .cta-boutons { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 280px; text-align: center; }
}
