/* =========================================================
   Clémentine Lénelle — Styles (simple, cohérent, maintenable)
   - Couleurs: see :root
   - Typo: Playfair Display SC (titres), Raleway (textes)
   ========================================================= */

:root{
  --red: #EC423D;
  --brown: #490D0B;
  --teal: #B7DAD9;
  --yellow: #FFF33A;

  --ink: var(--brown);
  --container: 1120px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  /* Spacing scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 48px;

  --font-title: "Clementigre", serif;
  --font-body: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@font-face{
  font-family: "Clementigre";
  src:
    url("../typo/Clementigre.woff2") format("woff2"),
    url("../typo/Clementigre.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

/* Scroll snap uniquement sur la page d'accueil */
html{
  scroll-behavior: smooth;
}

body.home-page{
  scroll-snap-type: y mandatory;
}

/* =========================================================
   BODY : fond papier + typographie
   ========================================================= */
body{
  margin: 0;
  background-color: #f1ece1;
  background-image: url("../img/arriere-plan.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   Base
   ========================================================= */
img{ max-width: 100%; height: auto; display: block; border: 0; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Skip link (accessibilité clavier) */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.2);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ======================
   Typographies
   ====================== */
.h1,.h2{
  font-family: var(--font-title);
  font-style: italic;
  letter-spacing: .02em;
  margin: 0 0 10px 0;
}

.h1{
  font-weight: 700;
  font-size: clamp(80px, 10.4vw, 160px);
  line-height: 0.80;
  color: var(--teal);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.h2{
  font-weight: 700;
  font-size: 80px;
  line-height: 0.7;
  color: var(--red);
}

.lead{
  font-weight: 300;
  font-size: 20px;
  color: rgba(73,13,11,.75);
  margin: 0 0 16px 0;
}

/* Galerie souvenirs illustrés (3 images en ligne + plus) */
.illustre-gallery{
  margin: 10px 0 26px 0;
}

.illustre-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.illustre-item{
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  cursor: zoom-in;
}

.illustre-item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.illustre-more{
  margin-top: 12px;
}

.illustre-more summary{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  list-style: none;
}

.illustre-grid--extra{
  margin-top: 12px;
}

/* Bloc images en évidence (2 colonnes) */
.illustre-featured{
  margin: 28px auto 10px;
}

.illustre-featured-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
}

.illustre-featured-item{
  margin: 0;
}

.illustre-featured-item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.illustre-featured-item figcaption{
  margin-top: 8px;
  font-size: 14px;
  color: rgba(73,13,11,.75);
}

/* Parcours visuel en 3 étapes (souvenirs illustrés) */
.steps-visual{
  display: grid;
  /* ✅ image à gauche / étapes à droite */
  grid-template-columns: 1fr 2fr;
  gap: 26px;
  margin: 28px 0 18px;
  align-items: center;
}

.steps-visual-left{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(73,13,11,.10);
  border-radius: 20px;
  padding: 20px 22px;
}

.steps-visual-left .h2{
  margin-bottom: 12px;
}

.steps-visual-list{
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  position: relative;
}

.steps-visual-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  position: relative;
}

.steps-visual-item:last-child{
  margin-bottom: 0;
}

.steps-visual-marker{
  display: grid;
  gap: 6px;
  justify-items: center;
}

.steps-visual-number{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(236,66,61,.12);
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
}

.steps-visual-text{
  margin: 0;
  color: rgba(73,13,11,.78);
}

.steps-visual-right{
  display: flex;
  justify-content: center;
}

.steps-illustration{
  width: clamp(180px, 18vw, 250px);
  height: auto;
  animation: stepsFloat 6s ease-in-out infinite;
}

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

/* =========================================================
   "Concrètement, comment ça marche ?" — variante demandée
   Image à gauche (1/3) + étapes à droite (2/3)

   Markup conseillé :
   <div class="steps-block">
     <div class="steps-figure"><img class="steps-illustration" ...></div>
     <div class="steps-card">
       <h2 class="h2">...</h2>
       <ol class="steps-list">
         <li class="steps-item">...</li>
       </ol>
     </div>
   </div>
   ========================================================= */
.steps-block{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 26px;
  align-items: center;
  margin: 28px 0 18px;
}

.steps-figure{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* La même image : légère inclinaison pour “regarder” les étapes */
.steps-figure .steps-illustration{
  transform-origin: 40% 60%;
  transform: rotate(1deg);
}

.steps-card{
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(73,13,11,.10);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.steps-card .h2{ margin: 0 0 12px 0; }

.steps-list{
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none; /* on gère les numéros en pastilles */
  position: relative;
}

/* petit "chemin" vertical entre 1 -> 2 -> 3 */
.steps-list::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(73,13,11,.22),
    rgba(73,13,11,.22) 7px,
    transparent 7px,
    transparent 14px
  );
  border-radius: 999px;
}

.steps-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 0 16px 0;
  position: relative;
}
.steps-item:last-child{ margin-bottom: 0; }

.steps-marker{
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
  z-index: 1; /* au-dessus du chemin */
}

.steps-number{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(236,66,61,.12);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

.steps-icon{
  font-size: 14px;
  color: rgba(73,13,11,.55);
}

.steps-line{
  margin: 0;
  color: rgba(73,13,11,.80);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px){
  .steps-block{ grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .steps-figure{ justify-content: flex-start; }
  .steps-figure .steps-illustration{ animation: none; }
}

.text{
  margin: 0 0 var(--space-sm) 0;
  color: rgba(73,13,11,.88);
}

.section{ padding: var(--space-lg) 0 var(--space-2xl) 0; }

/* ======================
   Header (sticky)
   ====================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(73,13,11,.16);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

/* Logo */
.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo{
  height: 44px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}
@media (max-width: 860px){
  .brand-logo{
    height: 38px;
    max-width: 150px;
    transform: scale(2);
    transform-origin: left center;
  }
}

/* Navigation desktop */
.site-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap; /* garde une seule ligne sur desktop */
}

/* Onglets */
.nav-link{
  font-size: 16px;
  color: var(--red);
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  white-space: normal; /* autorise le texte à passer sur 2 lignes */
  text-align: center;
  line-height: 1.35;
}

/* Hover: léger fond blanc */
.nav-link:hover{
  text-decoration: none;
  background: rgba(255,255,255,.55);
}

/* ✅ Actif: souligné (plus de fond jaune) */
.nav-link.is-active,
.nav-link[aria-current="page"]{
  background: transparent;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Liens “désactivés” */
.nav-link[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
}

/* Pas de wrap horizontal avant la version mobile : la barre reste sur 1 ligne */

/* ======================
   Mobile menu
   ====================== */
.nav-toggle{
  display: none;
  border: 1px solid rgba(73,13,11,.35);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  width: 44px; height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-toggle-bars{
  display: block;
  width: 18px; height: 2px;
  background: var(--brown);
  margin: 0 auto;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px; height:2px;
  background: var(--brown);
}
.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top:6px; }

@media (max-width: 860px){
  .nav-toggle{ display: inline-block; }

  .site-nav{
    position: absolute;
    right: 20px;
    top: 72px;
    width: min(340px, calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;

    border: 1px solid rgba(73,13,11,.30);
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
    display: none;
  }
  /* Ouverture du menu mobile (classe ajoutée par JS) */
  .site-nav.is-open{ display: flex; }
}

/* ======================
   Boutons
   ====================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--red);
  background: transparent;

  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover{
  background: rgba(236,66,61,.10);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn:active{ transform: translateY(0); }

.btn-small{
  padding: 11px 14px;
  font-size: 13px;
}

.btn[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ======================
   Accueil
   ====================== */
.cta{ margin-top: 14px; }

/* ======================
   Pages internes
   ====================== */
.page-header{ margin-bottom: var(--space-lg); }
.content{ max-width: 760px; }


.illustre-content{
  position: relative;
  padding-right: clamp(180px, 22vw, 280px);
  max-width: none;
}
.illustre-content .text{
  margin-bottom: var(--space-xs);
  line-height: 1.45;
}

.sonores-content{
  max-width: 980px;
  margin: 0 auto;
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: var(--space-md) 0 var(--space-lg) 0;
}

.note{
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(73,13,11,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
}

/* ======================
   Footer
   ====================== */
.site-footer{
  padding: 26px 0 40px 0;
  border-top: 1px solid rgba(73,13,11,.16);
  background: rgba(255,255,255,.75);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-text{
  margin: 0;
  font-size: 13px;
  color: rgba(73,13,11,.68);
}
.footer-links{
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: rgba(73,13,11,.68);
}
/* =========================================================
   Accueil “layout SnapSound”
   - Hero centré + grand visuel
   - Section features : gauche texte / droite 3 items
   ========================================================= */

.hero-snap{
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 0 var(--space-2xl);
  min-height: 100vh;
}

/* Illustrations latérales (page d'accueil) */
.hero-illustration{
  position: absolute;
  bottom: clamp(40px, 10vh, 140px);
  width: clamp(160px, 18vw, 240px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hero-illustration--left{
  left: clamp(80px, 9vw, 160px);
  bottom: clamp(110px, 12vh, 230px);
}

.hero-illustration--right{
  right: clamp(30px, 6vw, 90px);
  bottom: clamp(10px, 2vh, 30px);
}

/* Illustration liée au bloc graphisme */
.section-illustration{
  position: absolute;
  right: clamp(10px, 2vw, 30px);
  top: 0;
  width: clamp(160px, 18vw, 240px);
  height: auto;
  pointer-events: none;
}

@media (max-width: 720px){
  .section-illustration{
    display: none;
  }
}

@media (prefers-reduced-motion: reduce){
  .steps-illustration{
    animation: none;
  }
}

/* Conteneur du hero (texte + boutons) */
.hero-snap-inner{
  position: relative;
  z-index: 1;
  height: 100%;
  text-align: left;
}

/* Carte de texte centrée dans le hero */
.hero-overlay{
  margin: 0 auto;
  padding: 12px var(--space-lg) var(--space-md);
  max-width: min(560px, 92%);
  text-align: center;
}

.hero-title{
  margin: 0 0 12px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(80px, 10.4vw, 160px);
  line-height: 1.05;
  color: var(--teal);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.hero-subtitle{
  margin: 0 0 18px 0;
  max-width: 70ch;
  font-size: 18px;
  color: rgba(73,13,11,.70);
}

.hero-cta{
  display: inline-flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--space-xs) 0 var(--space-lg) 0;
}

/* Bouton hero un poil plus “présent” */
.hero-btn{
  border-radius: 999px;
  padding: 13px 18px;
}

.hero-btn-ghost{
  background: rgba(255,255,255,.55);
  border-color: rgba(236,66,61,.55);
}

/* Section services (grille 2 colonnes / 3 lignes) */
.snap-features{
  padding-top: 36px;
}

body.home-page .hero-snap,
body.home-page .snap-features{
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.services-layout-inner{
  display: grid;
  width: 80vw;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: var(--space-lg) var(--space-xl);
}


.service-block{
  max-width: none;
  padding: 0;
}

.service-illustres{ grid-column: 1; grid-row: 1; }
.service-sonores{ grid-column: 2; grid-row: 2; }
.service-graphisme{ grid-column: 1; grid-row: 3; }

.service-podcast-embed{
  width: 100%;
}

.service-podcast-embed .text{
  display: block;
  margin-top: 3px;
}


.carry-illustration,
.mouton-illustration,
.jump-illustration{
  justify-self: center;
  align-self: center;
  width: clamp(100px, 20vw, 175px);
  height: auto;
  border-radius: 18px;
}
.carry-illustration{
  grid-column: 2;
  grid-row: 1;
}
.mouton-illustration{
  grid-column: 1;
  grid-row: 2;
}
.jump-illustration{
  grid-column: 2;
  grid-row: 3;
}

@media (max-width: 980px){
  .mouton-illustration{ display: none; }
}

.snap-h2{
  margin: 0 0 10px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.1;
  color: rgba(73,13,11,.88);
}

.snap-left-text{
  margin: 0 0 18px 0;
  color: rgba(73,13,11,.75);
}

.snap-mini-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-snap{
    min-height: clamp(100px, 70vh, 720px);
    background-position: center top;
  }

  .hero-snap-inner{
    text-align: left;
  }

  .hero-overlay{
    margin: 0 auto;
    padding: 11px 22px 20px;
  }

  .services-layout-inner{
    width: min(90vw, 100%);
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 32px;
  }

  .service-sonores,
  .service-illustres,
  .service-graphisme,
  .carry-illustration,
  .mouton-illustration,
  .jump-illustration{
    grid-column: auto;
    grid-row: auto;
  }

  body.home-page .hero-snap{ padding: 21px 0 16px; }

  .snap-h2{
    font-size: 64px;
  }
}

@media (max-width: 720px){
  .hero-illustration{
    display: none;
  }
  .steps-visual{
    grid-template-columns: 1fr;
  }
  .steps-visual-left{
    padding: 18px;
  }
  .steps-visual-right{
    justify-content: flex-start;
  }
  .steps-illustration{
    animation: none;
  }
  .service-block{
    max-width: 100%;
  }
  .jump-illustration{
    display: none;
  }
  .section-illustration{
    display: none;
  }
  .illustre-grid{
    grid-template-columns: 1fr;
  }
  .illustre-intro{
    grid-template-columns: 1fr;
  }
  .illustre-content{
    padding-right: 0;
  }
  .illustre-featured-grid{
    grid-template-columns: 1fr;
  }
}
.social-icon { width: 20px; height: 20px; display: block; }
