/* ==========================================================================
   L'Œil de Valérie : feuille de style
   Mobile-first. Aucune dépendance. Polices auto-hébergées dans /fonts.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: "La Belle Aurore";
  src: url("../fonts/la-belle-aurore-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* ---------- Tokens ---------- */
:root {
  --creme:  #FDFBF6;  /* haut de page : blanc crème, très clair */
  --sable:  #F8F4EB;  /* milieu : ivoire à peine sablé */
  --ecume:  #FEFDFA;  /* bas de page : blanc cassé */
  --ciel:   #C3DCEE;  /* ciel de Méditerranée, section de l'Œil */
  --encre:  #1C2633;  /* texte : bleu-nuit plutôt que noir */
  --mer:    #1F3A5C;  /* accent bleu profond, CTA, section de l'Œil */
  --galet:  #615749;  /* texte secondaire (AA sur sable et écume) */
  --nacre:  #D8CDBD;  /* filets, bordures discrètes */
  --lin:    #E6DACA;  /* bordure des photos : beige clair */
  --passe:  #F6F1E8;  /* passe-partout derrière une photo affichée en entier */
  --radius-photo: 12px;
  --ombre-photo: 0 1px 2px rgba(74, 58, 36, .06), 0 14px 32px -16px rgba(74, 58, 36, .22);
  --ombre-photo-survol: 0 2px 6px rgba(74, 58, 36, .08), 0 24px 46px -18px rgba(74, 58, 36, .32);
  --zoom: 300ms cubic-bezier(.25,.6,.3,1);

  --plume: "La Belle Aurore", "Snell Roundhand", "Segoe Script", cursive;
  --sans:  "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: 1.25rem;
  --max: 84rem;
  --slow: 1.4s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--sable);
  background-image: linear-gradient(180deg, var(--creme) 0%, var(--sable) 48%, var(--ecume) 100%);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--plume);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--mer);
  outline-offset: 3px;
}


.skip-link {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--mer); color: var(--ecume);
  padding: .6rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.6rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--mer);
  transition: background-color .5s ease, color .5s ease;
}
.btn--primary { background: var(--mer); color: var(--ecume); }
.btn--primary:hover { background: var(--encre); border-color: var(--encre); }
.btn--line { background: transparent; color: var(--mer); }
.btn--line:hover { background: var(--mer); color: var(--ecume); }
.link-quiet {
  font-size: .95rem; text-underline-offset: .3em; text-decoration-thickness: 1px;
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.wordmark {
  font-family: var(--plume); font-size: 1.55rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
}
.wordmark__logo { width: 2.1rem; height: auto; }
.nav-toggle {
  font: 500 .9rem var(--sans); color: var(--encre);
  background: none; border: 1px solid var(--nacre);
  min-height: 2.75rem; padding: .4rem 1rem; cursor: pointer;
}
.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { padding: 1rem 0 .5rem; display: grid; gap: .25rem; }
.site-nav a {
  display: block; padding: .6rem 0; text-decoration: none; font-size: 1rem;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-nav__cta { color: var(--mer); font-weight: 500; }

@media (min-width: 900px) {
  .site-header { padding: 1.75rem 2.5rem; flex-wrap: nowrap; }
  .wordmark__logo { width: 2.5rem; }
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 2.25rem; padding: 0; }
  .site-nav a { padding: .25rem 0; font-size: .95rem; }
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: .75rem;
}
.hero__text { grid-column: 1 / -1; padding-bottom: 2.5rem; }
.hero__title {
  font-size: clamp(2.6rem, 10vw, 5rem);
  line-height: 1.1;
  max-width: 13ch;
}
.hero__lead {
  margin-top: 1.5rem; max-width: 34rem; color: var(--encre);
}
.hero__actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem;
}
.hero__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero__img--a { grid-column: 1 / 9; grid-row: 2; }
.hero__img--b { grid-column: 7 / 13; grid-row: 2; align-self: end; margin-bottom: -2.5rem; position: relative; }


@media (min-width: 900px) {
  .hero {
    padding: 2rem 2.5rem 8rem; column-gap: 1.5rem;
    min-height: calc(100vh - 6rem);
    align-items: end;
  }
  .hero__text { grid-column: 1 / 6; grid-row: 1; padding: 0 2rem 3rem 0; align-self: end; }
  .hero__lead { max-width: 30rem; }
  .hero__img--a { grid-column: 6 / 10; grid-row: 1; align-self: start; }
  .hero__img--b { grid-column: 10 / 13; grid-row: 1; align-self: end; margin-bottom: -4rem; }
}

/* Ouverture : un seul fondu orchestré, sur le texte.
   Les photos du hero restent visibles d'emblée (image LCP). */
.js .hero__text { opacity: 0; transition: opacity 1.2s ease; }
.js.is-loaded .hero__text { opacity: 1; }

/* ==========================================================================
   2. MANIFESTE
   ========================================================================== */
.manifeste {
  padding: 6rem var(--gutter);
}
.manifeste__inner { max-width: var(--max); margin: 0 auto; }
.manifeste p {
  font-family: var(--plume);
  font-size: clamp(1.7rem, 5.6vw, 3.1rem);
  line-height: 1.45;
  max-width: 30ch;
}
.manifeste p + p {
  margin-top: 2.5rem;
  color: var(--mer);
}
@media (min-width: 900px) {
  .manifeste { padding: 12rem 2.5rem; }
  .manifeste p { margin-left: 8%; }
  .manifeste p + p { margin-left: 30%; margin-top: 5rem; }
}

/* ==========================================================================
   3. COLLECTIONS
   ========================================================================== */
.collection {
  max-width: var(--max); margin: 0 auto;
  padding: 6rem var(--gutter);
}
.collection__head { margin-bottom: 3.5rem; max-width: 34rem; }
.collection__head h2 { font-size: clamp(2.6rem, 10vw, 5.5rem); }
.collection__head p { margin-top: 1rem; color: var(--galet); }

.pieces { display: grid; gap: 4rem; }

.piece__main { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.piece__thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.piece__thumbs button {
  width: 3.25rem; height: 3.25rem; padding: 0; cursor: pointer;
  border: 1px solid transparent; background: none;
  opacity: .62; transition: opacity .4s ease;
}
.piece__thumbs button { border-radius: 6px; overflow: hidden; border-color: var(--lin); }
.piece__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.piece__thumbs button:hover { opacity: 1; }
.piece__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--galet); }

.piece__text { margin-top: 1.1rem; }
.piece__text h3 { font-size: 1.85rem; }
.piece__desc { margin-top: .35rem; }
.piece__facts {
  margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  font-size: .9rem;
}
.piece__facts div { display: flex; gap: .5rem; }
.piece__facts dt { color: var(--galet); }
.piece__facts dd { margin: 0; }

/* Tablette : galerie sur deux colonnes */
@media (min-width: 600px) and (max-width: 899px) {
  .pieces { grid-template-columns: 1fr 1fr; gap: 4rem 1.5rem; }
  .pieces--chales > .piece:last-child { grid-column: 1 / -1; width: calc(50% - .75rem); justify-self: center; }
}
@media (min-width: 900px) {
  .collection { padding: 9rem 2.5rem; }
  .collection__head { margin-bottom: 5rem; }
  .pieces {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2rem; row-gap: 6rem;
    align-items: start;
  }
  /* Grille éditoriale asymétrique : motif de 4 pièces qui se répète */
  .pieces > .piece:nth-child(4n+1) { grid-column: 1 / 6; }
  .pieces > .piece:nth-child(4n+2) { grid-column: 7 / 11; margin-top: 8rem; }
  .pieces > .piece:nth-child(4n+3) { grid-column: 2 / 6; }
  .pieces > .piece:nth-child(4n+4) { grid-column: 8 / 13; margin-top: 8rem; }

  /* Châles : trois pièces en escalier */
  .pieces--chales > .piece:nth-child(1) { grid-column: 1 / 5; margin-top: 0; }
  .pieces--chales > .piece:nth-child(2) { grid-column: 5 / 9; margin-top: 6rem; }
  .pieces--chales > .piece:nth-child(3) { grid-column: 9 / 13; margin-top: 12rem; }
}
.collection--chales { border-top: 1px solid var(--nacre); }
.collection--accessoires { border-top: 1px solid var(--nacre); }

/* ==========================================================================
   4. L'ŒIL DE SAINTE-LUCIE
   ========================================================================== */
.oeil {
  background: var(--ciel);
  color: var(--encre);
  padding: 6rem var(--gutter);
}
.oeil__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 3rem;
}
.oeil__img { width: min(78vw, 26rem); }
.oeil__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.oeil__text h2 { font-size: clamp(2.3rem, 8vw, 4.2rem); max-width: 16ch; }
.nowrap { white-space: nowrap; }
.oeil__lead {
  margin-top: 1.5rem;
  font-family: var(--plume); color: var(--mer);
  font-size: clamp(1.5rem, 4.4vw, 1.95rem); line-height: 1.45;
  max-width: 32ch;
}
.oeil__legende {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 38, 51, .22);
  max-width: 36rem;
}
.oeil__legende h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.oeil__legende p + p { margin-top: 1rem; }

@media (min-width: 900px) {
  .oeil { padding: 11rem 2.5rem; }
  .oeil__inner { grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: center; }
  .oeil__img { grid-column: 1 / 6; width: 100%; max-width: 30rem; }
  .oeil__text { grid-column: 7 / 13; }
}

/* ==========================================================================
   5. SAVOIR-FAIRE
   ========================================================================== */
.savoir {
  max-width: var(--max); margin: 0 auto;
  padding: 6rem var(--gutter);
  display: grid; gap: 3rem;
}
.savoir__text h2 { font-size: clamp(2.3rem, 8vw, 4rem); }
.savoir__list { margin-top: 2rem; display: grid; gap: 1.1rem; max-width: 30rem; }
.savoir__list li {
  font-family: var(--plume); font-size: 1.5rem; line-height: 1.4;
  padding-top: 1.1rem; border-top: 1px solid var(--nacre);
}
.savoir__matieres { margin-top: 2rem; color: var(--galet); }
.savoir__images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.savoir__images figure:first-child { grid-row: span 2; align-self: center; }
.savoir__images img { width: 100%; height: auto; }

@media (min-width: 900px) {
  .savoir { padding: 9rem 2.5rem; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: center; }
  .savoir__text { grid-column: 1 / 5; }
  .savoir__images { grid-column: 6 / 13; gap: 1.5rem 2rem; }
}

/* ==========================================================================
   6. À PROPOS
   ========================================================================== */
.apropos {
  padding: 6rem var(--gutter);
  display: grid; gap: 3rem;
}
.apropos__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.apropos__text h2 { font-size: clamp(2.3rem, 8vw, 4rem); margin-bottom: 2rem; }
.apropos__text p { max-width: 36rem; font-size: 1.125rem; line-height: 1.7; }
.apropos__text p + p { margin-top: 1.25rem; }
.apropos__signature {
  font-family: var(--plume); font-size: 2.2rem !important;
  margin-top: 2rem !important; color: var(--mer);
}
@media (min-width: 900px) {
  .apropos {
    padding: 10rem 2.5rem;
    grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; align-items: center;
  }
  .apropos__img { grid-column: 2 / 6; }
  .apropos__text { grid-column: 7 / 12; }
}
@media (min-width: 1440px) {
  .apropos { padding-left: calc((100vw - var(--max)) / 2 + 2.5rem); padding-right: calc((100vw - var(--max)) / 2 + 2.5rem); }
}

/* ==========================================================================
   7. COMMANDE
   ========================================================================== */
.commande {
  max-width: 52rem; margin: 0 auto;
  padding: 7rem var(--gutter);
  text-align: center;
}
.commande h2 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.commande__lead { margin: 1.5rem auto 0; max-width: 34rem; }
.commande__actions {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.commande__email {
  margin: 1.75rem auto 0; max-width: 30rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5rem 1rem;
  font-size: .95rem;
}
.commande__email[hidden] { display: none; }
.commande__email p { flex-basis: 100%; }
.commande__adresse { font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.commande__copier {
  font: 500 .9rem var(--sans); color: var(--mer); background: none; cursor: pointer;
  border: 0; padding: .5rem 0; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
}
.commande__statut { color: var(--galet); font-size: .9rem; }
.commande__assurances {
  margin-top: 3.5rem; display: grid; gap: .6rem;
  color: var(--galet); font-size: .95rem;
}
@media (min-width: 900px) { .commande { padding: 10rem 2.5rem; } }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--nacre);
  max-width: var(--max); margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
  display: grid; gap: .75rem;
  font-size: .95rem;
}
.site-footer__mark { font-family: var(--plume); font-size: 1.8rem; }
.site-footer__copy { color: var(--galet); margin-top: 1rem; }
@media (min-width: 900px) { .site-footer { padding: 4rem 2.5rem 3rem; } }

/* ==========================================================================
   Photos des créations : cadre fin, ombre douce, léger zoom au survol
   (hero, fiches sacs et châles, savoir-faire)
   ========================================================================== */
.hero__img,
.piece__media,
.savoir__images figure,
.oeil__img {
  position: relative;
  border: 1px solid var(--lin);
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--passe);
  box-shadow: var(--ombre-photo);
  isolation: isolate;               /* garde les coins arrondis pendant le zoom (Safari) */
  transition: box-shadow var(--zoom);
}
.hero__img img,
.piece__media img,
.savoir__images img,
.oeil__img img {
  transition: transform var(--zoom);
  transform-origin: 50% 55%;
  backface-visibility: hidden;
}
/* Mobile et tablette : liseré crème autour du sac, qui chevauche la photo du châle */
@media (max-width: 899px) {
  .hero__img--b { box-shadow: 0 0 0 .4rem var(--creme), var(--ombre-photo); }
}
/* Survol seulement avec une vraie souris : rien sur écran tactile */
@media (hover: hover) and (pointer: fine) {
  .hero__img:hover,
  .piece__media:hover,
  .savoir__images figure:hover,
  .oeil__img:hover { box-shadow: var(--ombre-photo-survol); }
  .hero__img:hover img,
  .piece__media:hover img,
  .savoir__images figure:hover img,
  .oeil__img:hover img { transform: scale(1.04); }
}

/* ==========================================================================
   Fondus au défilement (images)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transition: opacity var(--slow); }
.js [data-reveal].is-visible { opacity: 1; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__text, .js [data-reveal] { opacity: 1; transition: none; }
  .hero__img { transform: none !important; }
  .hero__img img, .piece__media img, .savoir__images img, .oeil__img img { transition: none; transform: none !important; }
  .hero__img, .piece__media, .savoir__images figure, .oeil__img { transition: none; }
  .btn, .piece__thumbs button { transition: none; }
}

/* ---------- Page mentions légales ---------- */
.legal { max-width: 44rem; margin: 0 auto; padding: 3rem var(--gutter) 6rem; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.legal p + p { margin-top: .75rem; }
