/* ============================================================
   Steve Dubois — steve-dubois.fr
   Design tokens (système NAHO, allégé)
   ============================================================ */
:root{
  --noir-presence:#1a1a1a;
  --brun-nuit:#2a2822;
  --gris-brume:#8a8f96;
  --blanc-casse:#f0ede8;
  --or-pale:#c8a96e;
  --terracotta:#8b4a3a;
  --sable:#ece2d0;

  --font-title:'Nunito', sans-serif;
  --font-body:'Literata', serif;
  --font-cite:'Lora', serif;

  --max-w:720px;
  --max-w-wide:960px;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--blanc-casse);
  color:var(--noir-presence);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
figure{margin:0;}
a{color:inherit;}

h1,h2,h3{
  font-family:var(--font-title);
  font-weight:200;
  letter-spacing:0.01em;
  margin:0;
}

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding-left:1.5rem;
  padding-right:1.5rem;
}
.wrap-wide{
  max-width:var(--max-w-wide);
  margin:0 auto;
  padding-left:1.5rem;
  padding-right:1.5rem;
}

section{
  position:relative;
  padding-top:var(--section-pad);
  padding-bottom:var(--section-pad);
}

.bg-brun{ background:var(--brun-nuit); color:var(--blanc-casse); }
.bg-terracotta{ background:var(--terracotta); color:var(--blanc-casse); }
.bg-noir{ background:var(--noir-presence); color:var(--blanc-casse); }
.bg-clair{ background:var(--blanc-casse); color:var(--noir-presence); }
.bg-sable{ background:var(--sable); color:var(--noir-presence); }

.bg-brun .muted, .bg-terracotta .muted, .bg-noir .muted { color: rgba(240,237,232,0.62); }
.bg-clair .muted, .bg-sable .muted { color: var(--gris-brume); }

.chapitre{
  font-family:var(--font-title);
  font-weight:300;
  font-size:0.78rem;
  letter-spacing:0.32em;
  text-transform:uppercase;
  margin-bottom:1.5rem;
  opacity:0.55;
}

.titre-section{
  font-size:clamp(1.8rem, 4.2vw, 2.9rem);
  line-height:1.16;
  margin-bottom:1.8rem;
  max-width:18ch;
}

p{ margin:0 0 1.45em 0; }
p:last-child{ margin-bottom:0; }

.lead{
  font-size:clamp(1.02rem, 1.8vw, 1.2rem);
  line-height:1.8;
}

.texte-long p{ max-width:58ch; }
.texte-long em{ font-style:italic; color:var(--terracotta); }
.bg-brun .texte-long em, .bg-noir .texte-long em, .bg-terracotta .texte-long em{ color:var(--or-pale); }
.texte-long strong{ font-weight:600; color:inherit; }

.intertitre{
  font-family:var(--font-title);
  font-weight:400;
  font-size:0.7rem;
  letter-spacing:0.3em;
  text-transform:uppercase;
  color:var(--terracotta);
  margin: 2.4rem 0 0.8rem 0;
}
.intertitre:first-child{ margin-top:0; }

.citation{
  font-family:var(--font-cite);
  font-style:italic;
  font-weight:400;
  font-size:clamp(1rem, 1.6vw, 1.15rem);
  color:var(--or-pale);
  border-left:1px solid rgba(200,169,110,0.4);
  padding-left:1.4rem;
  margin-top:2.2rem;
  max-width:52ch;
}
.bg-clair .citation, .bg-sable .citation{ color:var(--terracotta); border-left-color:rgba(139,74,58,0.35); }

.signature-auteur{
  margin-top:2.4rem;
  font-family:var(--font-cite);
  font-style:italic;
  font-size:1.02rem;
  color:var(--brun-nuit);
}

/* ============================================================
   Police de marque — UtOgah (réservée au logotype "naho")
   ============================================================ */
@font-face{
  font-family:'UtOgah';
  src: url('UtOgah-Regular.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

.hero-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(0.4rem, 1.5vw, 0.7rem);
  margin-bottom:1.8rem;
}
.hero-logo-icon{ height:clamp(40px, 9vw, 58px); width:auto; }
.hero-logo-text{
  font-family:'UtOgah', var(--font-title), sans-serif;
  font-size:clamp(2.3rem, 9vw, 3.5rem);
  line-height:1;
  color:var(--noir-presence);
  text-transform:lowercase;
}

/* ============================================================
   Navigation
   ============================================================ */
nav.principale{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(240,237,232,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(26,26,26,0.08);
}
.nav-inner{
  max-width:var(--max-w-wide);
  margin:0 auto;
  padding:0.75rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.8rem;
}
.nav-brand{ display:flex; align-items:center; }
.nav-logo{ height:34px; width:auto; display:block; }

.nav-liens{
  display:flex;
  gap:1.4rem;
  flex-wrap:wrap;
  font-family:var(--font-title);
  font-size:0.78rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
}
.nav-liens a{
  text-decoration:none;
  color:var(--gris-brume);
  padding-bottom:3px;
  border-bottom:1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav-liens a:hover{ color:var(--noir-presence); }
.nav-liens a.actif{ color:var(--noir-presence); border-color:var(--or-pale); }

/* Bouton hamburger : masqué sur ordinateur */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:5px;
  width:34px;
  height:34px;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  z-index:65;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:1.5px;
  background:var(--noir-presence);
  transition: transform .35s var(--ease), opacity .25s ease, width .25s ease;
}
.nav-toggle.ouvert span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle.ouvert span:nth-child(2){ opacity:0; }
.nav-toggle.ouvert span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); width:22px; }

.nav-voile{
  position:fixed;
  inset:0;
  background:rgba(26,26,26,0.4);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s var(--ease);
  z-index:55;
}
.nav-voile.visible{ opacity:1; pointer-events:auto; }

@media (max-width:760px){
  .nav-toggle{ display:flex; }
  .nav-liens{
    position:fixed;
    top:0;
    right:0;
    height:100dvh;
    width:min(78vw, 320px);
    background:var(--blanc-casse);
    flex-direction:column;
    align-items:flex-start;
    gap:1.7rem;
    padding: 6rem 2rem 2rem 2rem;
    font-size:0.92rem;
    letter-spacing:0.08em;
    box-shadow:-12px 0 34px rgba(26,26,26,0.12);
    transform:translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y:auto;
  }
  .nav-liens.ouvert{ transform:translateX(0); }
  .nav-liens a{ padding-bottom:4px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align:center;
}
.hero-inner{
  max-width:640px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-tagline{
  font-size:clamp(1.4rem, 3.8vw, 2rem);
  line-height:1.3;
  font-weight:200;
  margin-bottom:1.5rem;
}
.hero-lead{
  font-size:clamp(1rem, 1.9vw, 1.12rem);
  color:var(--brun-nuit);
  max-width:48ch;
}

/* ============================================================
   Boutons
   ============================================================ */
.cta-row{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:1.8rem;
}
.btn{
  font-family:var(--font-title);
  font-weight:400;
  font-size:0.9rem;
  letter-spacing:0.04em;
  padding:0.8rem 1.6rem;
  border-radius:999px;
  text-decoration:none;
  border:1px solid var(--noir-presence);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  display:inline-block;
}
.bg-brun .btn, .bg-noir .btn, .bg-terracotta .btn{ border-color:var(--blanc-casse); }
.btn-plein{ background:var(--noir-presence); color:var(--blanc-casse); }
.bg-brun .btn-plein, .bg-noir .btn-plein, .bg-terracotta .btn-plein{ background:var(--blanc-casse); color:var(--noir-presence); }
.btn-plein:hover{ background:var(--or-pale); border-color:var(--or-pale); color:var(--noir-presence); transform:translateY(-1px); }
.btn-ligne{ background:transparent; color:var(--noir-presence); }
.bg-brun .btn-ligne, .bg-noir .btn-ligne, .bg-terracotta .btn-ligne{ color:var(--blanc-casse); }
.btn-ligne:hover{ background:var(--noir-presence); color:var(--blanc-casse); transform:translateY(-1px); }
.bg-brun .btn-ligne:hover, .bg-noir .btn-ligne:hover, .bg-terracotta .btn-ligne:hover{ background:var(--blanc-casse); color:var(--noir-presence); }

/* ============================================================
   Séparateur (icône)
   ============================================================ */
.separateur{ display:flex; justify-content:center; padding:2.2rem 0; }
.separateur img{
  width:44px; height:auto;
  opacity:0;
  transform:translateY(6px);
  transition: opacity 1.1s var(--ease) .1s, transform 1.1s var(--ease) .1s;
}
.separateur.is-visible img{ opacity:0.55; transform:translateY(0); }

/* ============================================================
   Cartes de navigation interne (accueil)
   ============================================================ */
.grille-cartes{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:rgba(26,26,26,0.1);
  margin-top:2.2rem;
  border:1px solid rgba(26,26,26,0.1);
}
.carte{
  background:var(--blanc-casse);
  padding:1.9rem 1.6rem;
  text-decoration:none;
  color:var(--noir-presence);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:150px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.carte:hover{ background:var(--noir-presence); color:var(--blanc-casse); }
.carte:hover .carte-fleche{ transform:translateX(4px); border-color:var(--or-pale); color:var(--or-pale); }
.carte-nom{ font-family:var(--font-title); font-size:1rem; letter-spacing:0.02em; }
.carte-desc{ font-size:0.86rem; margin-top:0.5rem; opacity:0.68; max-width:28ch; }
.carte-fleche{
  align-self:flex-end; margin-top:1.1rem;
  font-family:var(--font-title); font-size:0.75rem; letter-spacing:0.14em;
  border-bottom:1px solid rgba(26,26,26,0.35); padding-bottom:2px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
@media (max-width:760px){ .grille-cartes{ grid-template-columns:1fr; } }

/* ============================================================
   Territoires de réflexion (accueil) — non cliquables
   ============================================================ */
.grille-territoires{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:rgba(26,26,26,0.1);
  margin-top:2.2rem;
  border:1px solid rgba(26,26,26,0.1);
}
.territoire{
  background:var(--blanc-casse);
  padding:1.8rem 1.6rem;
}
.territoire-nom{
  font-family:var(--font-title);
  font-weight:400;
  font-size:1rem;
  letter-spacing:0.02em;
  color:var(--terracotta);
  margin-bottom:0.55rem;
}
.territoire-desc{ font-size:0.9rem; max-width:34ch; opacity:0.85; }
@media (max-width:760px){ .grille-territoires{ grid-template-columns:1fr; } }

/* ============================================================
   Formats / listes en blocs (textes & livres, cercles)
   ============================================================ */
.bloc-item{
  padding:1.8rem 0;
  border-top:1px solid rgba(26,26,26,0.12);
}
.bloc-item:last-child{ border-bottom:1px solid rgba(26,26,26,0.12); }
.bg-brun .bloc-item, .bg-noir .bloc-item{ border-color:rgba(240,237,232,0.16); }
.bloc-nom{
  font-family:var(--font-title); font-weight:400; font-size:1.1rem;
  margin-bottom:0.5rem; color:var(--terracotta);
}
.bg-brun .bloc-nom, .bg-noir .bloc-nom, .bg-terracotta .bloc-nom{ color:var(--or-pale); }
.bloc-desc{ max-width:56ch; }
.bloc-meta{
  display:flex; gap:1.2rem; margin-top:0.9rem; flex-wrap:wrap;
  font-family:var(--font-title); font-size:0.78rem; letter-spacing:0.06em;
}
.bloc-meta a{
  text-decoration:none; color:var(--noir-presence);
  border-bottom:1px solid rgba(26,26,26,0.35);
  padding-bottom:2px;
}
.bloc-meta a:hover{ border-color:var(--or-pale); color:var(--terracotta); }

/* ============================================================
   Photo bio (insérée dans le flux du texte)
   ============================================================ */
.bio-photo-inline{ margin: clamp(1.6rem, 4vw, 2.4rem) 0; }
.bio-photo{
  width: min(280px, 60vw);
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse at center, black 56%, transparent 87%);
  mask-image: radial-gradient(ellipse at center, black 56%, transparent 87%);
}

/* ============================================================
   Reveal au scroll
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(22px) scale(.985);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible{ opacity:1; transform:translateY(0) scale(1); }
.reveal-d1{ transition-delay:.08s; }
.reveal-d2{ transition-delay:.16s; }
.reveal-d3{ transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   Retour en haut
   ============================================================ */
.retour-haut{
  position:fixed; right:1.3rem; bottom:1.3rem; z-index:50;
  width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(26,26,26,0.2);
  background:rgba(240,237,232,0.88);
  backdrop-filter: blur(8px);
  display:flex; align-items:center; justify-content:center;
  color:var(--noir-presence);
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease), border-color .3s ease, color .3s ease;
}
.retour-haut.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.retour-haut:hover{ border-color:var(--or-pale); color:var(--or-pale); }
.retour-haut svg{ width:14px; height:14px; }

/* ============================================================
   Formulaire de contact
   ============================================================ */
.champ{ margin-bottom:1.3rem; }
.champ label{
  display:block; font-family:var(--font-title); font-size:0.78rem;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--gris-brume);
  margin-bottom:0.5rem;
}
.champ input, .champ textarea{
  width:100%; border:1px solid rgba(26,26,26,0.2); background:transparent;
  color:var(--noir-presence); font-family:var(--font-body); font-size:1rem;
  padding:0.7rem 0.85rem; border-radius:4px;
}
.champ input:focus, .champ textarea:focus{ outline:none; border-color:var(--or-pale); }
.champ textarea{ resize:vertical; min-height:120px; }

/* ============================================================
   Pied de page
   ============================================================ */
footer{
  background:var(--noir-presence);
  color:rgba(240,237,232,0.5);
  padding:2.2rem 1.5rem 2.8rem 1.5rem;
  text-align:center;
  font-size:0.8rem;
}
.footer-liens{
  display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap;
  margin-bottom:1.2rem; font-family:var(--font-title); letter-spacing:0.04em;
}
.footer-liens a{ text-decoration:none; color:rgba(240,237,232,0.72); transition:color .3s ease; }
.footer-liens a:hover{ color:var(--or-pale); }

a:focus-visible, .btn:focus-visible{ outline:2px solid var(--or-pale); outline-offset:3px; }

@media (max-width:640px){
  :root{ --section-pad: clamp(3rem, 12vw, 4.5rem); }
  .citation{ padding-left:1rem; }
  .lead{ line-height:1.85; }
  p{ margin-bottom:1.55em; }
  .texte-long p{ max-width:none; }
}

/* ============================================================
   Arc respirant — élément signature
   ============================================================ */
.arc-wrap{
  display:flex;
  justify-content:center;
  width:100%;
  margin: 2rem 0;
}
.arc-wrap svg{ width: min(360px, 65%); height:auto; overflow:visible; }
.arc-wrap path{
  fill:none;
  stroke:var(--or-pale);
  stroke-width:1.4;
  stroke-linecap:round;
}
.arc-respire path{
  transform-origin:center;
  animation: respirer 6.4s var(--ease) infinite;
}
@keyframes respirer{
  0%,100%{ opacity:.32; transform:scaleX(.92); }
  50%{ opacity:.85; transform:scaleX(1); }
}
@media (prefers-reduced-motion: reduce){
  .arc-respire path{ animation:none; opacity:.6; }
}

/* ============================================================
   Scroll cue (hero)
   ============================================================ */
.scroll-cue{
  margin-top:2.2rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.6rem;
  color:var(--gris-brume);
  font-family:var(--font-title);
  font-size:0.7rem;
  letter-spacing:0.3em;
  text-transform:uppercase;
}
.scroll-cue svg{ width:13px; animation: descendre 2.8s ease-in-out infinite; }
@keyframes descendre{
  0%,100%{ transform:translateY(0); opacity:.5; }
  50%{ transform:translateY(6px); opacity:1; }
}
@media (prefers-reduced-motion: reduce){ .scroll-cue svg{ animation:none; } }

/* ============================================================
   Pauses nature — scènes pleine largeur
   ============================================================ */
.pause{
  position:relative;
  min-height:52vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:var(--brun-nuit);
}
.pause .scene{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
  animation: pause-respire 12s ease-in-out infinite;
  transform-origin:center;
}
@keyframes pause-respire{
  0%,100%{ transform:scale(1.02); opacity:.92; }
  50%{ transform:scale(1.06); opacity:1; }
}
@media (prefers-reduced-motion: reduce){ .pause .scene{ animation:none; } }
.pause-voile{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 70% 55% at center, rgba(20,19,16,0.62) 0%, rgba(20,19,16,0.32) 60%, rgba(20,19,16,0.15) 100%),
    linear-gradient(180deg, rgba(26,26,26,0.3), rgba(26,26,26,0.62));
}
.pause-quote{
  position:relative;
  z-index:2;
  font-family:var(--font-cite);
  font-style:italic;
  font-weight:400;
  color:var(--blanc-casse);
  font-size:clamp(1.15rem, 2.8vw, 1.6rem);
  text-align:center;
  max-width:36ch;
  padding:0 1.5rem;
  line-height:1.6;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.85);
}
.pause-quote::before, .pause-quote::after{
  content:'';
  display:block;
  width:1px;
  height:30px;
  background:var(--or-pale);
  margin:0 auto 1.2rem auto;
  opacity:.7;
}
.pause-quote::after{ margin:1.2rem auto 0 auto; }

/* ============================================================
   Clôture de page (fermeture sombre, signature)
   ============================================================ */
.cloture{ text-align:center; }
.cloture-icon{ width:40px; margin:0 auto 1.8rem auto; }
.cloture .titre-section{ margin:0 auto 0.4rem auto; max-width:none; }
.cloture-sub{
  font-family:var(--font-title);
  font-weight:200;
  font-size:clamp(1.15rem, 2.6vw, 1.45rem);
  color:var(--or-pale);
  margin-bottom:1.8rem;
}
.cloture p{ max-width:50ch; margin-left:auto; margin-right:auto; }
.signature{
  margin-top:2.4rem;
  font-family:var(--font-title);
  font-weight:300;
  letter-spacing:0.55em;
  font-size:0.82rem;
  color:var(--or-pale);
  text-transform:lowercase;
}
