/* Atelier Maré — registre : Luce Vignancour
   Une famille sans-serif, zéro accent, blanc froid, angles droits, photos carrées. */

@font-face { font-family: "Karla"; src: url("fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }

:root {
  --blanc: #FFFFFF;
  --noir: #111111;
  --texte: #3A3A3A;
  --gris: #8A8A8A;
  --filet: #E6E6E6;
  --police: "Karla", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(20px, 6vw, 120px);
  --largeur: 1560px;
  --gouttiere: clamp(20px, 3.4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--noir); hyphens: none; text-wrap: balance; }

.enveloppe-large { width: 100%; padding-inline: clamp(20px, 4vw, 82px); }
.suite { padding-top: 0; }
.enveloppe { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-left: clamp(20px, 3.2vw, 64px);
  color: var(--blanc);
}
.logo {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding-top: 34px;
  font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.01em;
}
.logo small { font-weight: 500; font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; }
.nav {
  display: flex; align-items: center; margin-left: auto; padding-top: 44px; padding-right: 40px;
  list-style: none; margin-block: 0;
}
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: "|"; margin-inline: 22px; opacity: .7; font-size: 13px; }
.nav a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  transition: opacity .2s;
}
.nav a:hover { opacity: .6; }
.burger {
  width: 120px; height: 120px; flex: none;
  background: var(--noir); color: var(--blanc);
  display: grid; place-items: center; cursor: pointer; border: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 40px; height: 3px; background: currentColor; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -12px; }
.burger span::after { top: 12px; }

/* Menu plein écran */
.voile-menu {
  position: fixed; inset: 0; z-index: 30;
  background: var(--noir); color: var(--blanc);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--marge);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.voile-menu.est-ouvert { opacity: 1; visibility: visible; }
.voile-menu ul { list-style: none; margin: 0; padding: 0; }
.voile-menu a { display: block; font-size: clamp(38px, 6vw, 84px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.voile-menu a:hover { opacity: .55; }
.voile-menu .fermer {
  position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: var(--blanc); color: var(--noir); border: 0; cursor: pointer;
  font: 500 12px var(--police); letter-spacing: .3em; text-transform: uppercase;
}
.voile-menu .coord { margin-top: 48px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }

/* ---------- Héros ---------- */
.heros {
  position: relative; height: 100vh; min-height: 640px; max-height: 1100px;
  overflow: hidden; background: #2a2622; color: var(--blanc);
}
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.diapo.est-actif { opacity: 1; }
.diapo img { width: 100%; height: 100%; object-fit: cover; }
.heros::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 100%),
              linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%);
}
.heros-texte {
  position: absolute; z-index: 2; left: clamp(20px, 16vw, 320px); bottom: clamp(80px, 17vh, 200px);
  right: var(--marge);
}
.heros-titre {
  color: var(--blanc);
  font-size: clamp(54px, 8.2vw, 132px); font-weight: 800; line-height: .95; letter-spacing: -0.025em;
}
.heros-sous {
  display: flex; align-items: center; gap: 20px; margin-top: 28px;
  font-size: clamp(12px, 1.05vw, 15px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}
.heros-sous::before { content: ""; width: 40px; height: 2px; background: currentColor; flex: none; }
.fleches { display: flex; margin-top: 28px; margin-left: -108px; }
.fleche {
  width: 106px; height: 106px; border: 2px solid var(--blanc); background: transparent; color: var(--blanc);
  display: grid; place-items: center; cursor: pointer; font-size: 0;
}
.fleche + .fleche { border-left: 0; }
.fleche::before {
  content: ""; width: 16px; height: 16px; border: solid currentColor; border-width: 0 0 3px 3px;
  transform: translateX(3px) rotate(45deg);
}
.fleche-suiv::before { transform: translateX(-3px) rotate(-135deg); }
.fleche:hover { background: rgba(255,255,255,.12); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 160px); }
.surtitre {
  display: flex; align-items: center; gap: 18px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--noir);
}
.surtitre::before { content: ""; width: 40px; height: 2px; background: currentColor; }
.titre-section { margin-top: 22px; font-size: clamp(34px, 3.6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

/* Intro : une phrase, grande, à gauche */
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gouttiere); align-items: start; }
.intro-texte { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.4; color: var(--noir); font-weight: 400; }
.intro-texte + .intro-texte { margin-top: 24px; font-size: 17px; line-height: 1.7; color: var(--texte); max-width: 640px; }

/* Le process : 3 colonnes carrées (comme les stages de la référence) */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); margin-top: clamp(48px, 5vw, 80px); }
.carte .photo { aspect-ratio: 1; overflow: hidden; background: #ece9e4; }
.carte .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.carte:hover .photo img { transform: scale(1.04); }
.carte-titre { margin-top: 30px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.carte-num { margin-top: 26px; font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gris); }
.carte-num + .carte-titre { margin-top: 10px; }
.carte-texte { margin-top: 14px; max-width: 420px; }
.carte-prix { margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: .12em; color: var(--noir); }

/* Galerie : 4 colonnes carrées, étiquette blanche au survol */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 80px); margin-top: clamp(48px, 5vw, 80px); }
.piece { position: relative; aspect-ratio: 1; overflow: hidden; margin: 0; background: #ece9e4; }
.piece img { width: 100%; height: 100%; object-fit: cover; }
.piece figcaption {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  background: var(--blanc); color: var(--noir);
  padding: 10px 16px 12px; font-size: clamp(18px, 1.7vw, 28px); font-weight: 600; line-height: 1.2;
  opacity: 0; transition: opacity .3s;
}
.piece:hover figcaption { opacity: 1; }

.enveloppe-large > .enveloppe { padding-inline: max(0px, calc(var(--marge) - clamp(20px, 4vw, 82px))); }

/* Bouton : carré à contour, comme les flèches de la référence */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 0 36px;
  border: 2px solid var(--noir); color: var(--noir); background: transparent;
  font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.bouton:hover { background: var(--noir); color: var(--blanc); }
.ligne-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

/* L'atelier : grande photo + récit */
.recit { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gouttiere); align-items: center; }
.recit .photo { aspect-ratio: 4 / 5; overflow: hidden; background: #ece9e4; }
.recit .photo img { width: 100%; height: 100%; object-fit: cover; }
.recit-texte p { margin-top: 22px; max-width: 520px; }
.recit-texte .bouton { margin-top: 44px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding-block: 72px 40px; font-size: 15px; }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gouttiere); }
.pied .logo { padding-top: 0; color: var(--noir); }
.pied h3 { font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.pied ul { list-style: none; margin: 18px 0 0; padding: 0; line-height: 2.1; }
.pied a:hover { color: var(--noir); }
.pied-texte { margin-top: 22px; max-width: 360px; color: var(--gris); }
.pied-bas { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--filet); display: flex; justify-content: space-between; color: var(--gris); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .intro, .recit { grid-template-columns: 1fr; }
  .grille-3 { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-haut > :first-child { grid-column: 1 / -1; }
  .ligne-titre { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .burger, .voile-menu .fermer { width: 76px; height: 76px; }
  .burger span, .burger span::before, .burger span::after { width: 30px; }
  .burger span::before { top: -9px; } .burger span::after { top: 9px; }
  .logo { padding-top: 22px; font-size: 22px; }
  .heros-texte { left: 20px; bottom: 56px; }
  .fleches { margin-left: 0; }
  .fleche { width: 64px; height: 64px; }
  .heros-sous { letter-spacing: .22em; }
  .pied-bas { flex-direction: column; gap: 8px; }
}

/* ================= Pages internes ================= */

/* Bandeau : même grammaire que le héros, plus bas */
.bandeau { position: relative; height: 68vh; min-height: 480px; max-height: 760px; overflow: hidden; background: #2a2622; color: var(--blanc); }
.bandeau-photo { position: absolute; inset: 0; margin: 0; }
.bandeau-photo img { width: 100%; height: 100%; object-fit: cover; }
.bandeau::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 60%, rgba(0,0,0,0) 100%),
              linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 50%);
}
.bandeau-texte { position: absolute; z-index: 2; left: clamp(20px, 16vw, 320px); right: var(--marge); bottom: clamp(56px, 11vh, 120px); }
.bandeau-titre { color: var(--blanc); font-size: clamp(46px, 6.4vw, 104px); font-weight: 800; line-height: .98; letter-spacing: -0.025em; }

/* Texte long sur deux colonnes */
.colonnes { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gouttiere); align-items: start; }
.colonnes .corps p + p { margin-top: 22px; }
.corps { max-width: 760px; }
.corps .intro-texte { margin-bottom: 32px; }

/* Étapes du process : rangées photo | texte, toutes dans le même sens */
.etapes { margin-top: clamp(48px, 5vw, 80px); display: grid; gap: clamp(56px, 7vw, 120px); }
.etape { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gouttiere); align-items: center; }
.etape .photo { aspect-ratio: 1; overflow: hidden; background: #ece9e4; }
.etape .photo img { width: 100%; height: 100%; object-fit: cover; }
.etape-texte { max-width: 520px; }
.etape-texte .carte-titre { margin-top: 10px; font-size: clamp(28px, 2.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.etape-texte p:not(.carte-num) { margin-top: 18px; }
.etape-duree { margin-top: 28px !important; padding-top: 18px; border-top: 1px solid var(--filet); font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gris); }

/* Photo pleine largeur entre deux sections */
.pleine { margin: 0; height: clamp(360px, 62vh, 720px); overflow: hidden; background: #ece9e4; }
.pleine img { width: 100%; height: 100%; object-fit: cover; }

/* Filtres (boutique, galerie) : paragraphes basculés par le script */
.filtres { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 40px; }
.filtre {
  margin: 0; padding: 0 22px; line-height: 1; cursor: pointer; color: var(--gris);
  font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}
.filtre:first-child { padding-left: 0; }
.filtre + .filtre { border-left: 1px solid var(--filet); }
.filtre:hover, .filtre.est-actif { color: var(--noir); }
.filtre.est-actif { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.est-masque { display: none !important; }

/* Fiche produit */
.produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(48px, 5vw, 88px) var(--gouttiere); margin-top: clamp(40px, 4vw, 64px); }
.produit-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 26px; }
.produit-ligne .carte-titre { margin-top: 0; }
.produit-ligne .carte-prix { margin-top: 0; white-space: nowrap; }
.produit-matiere { margin-top: 6px; color: var(--gris); font-size: 15px; }
.produit-lien { display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--noir); border-bottom: 2px solid var(--noir); padding-bottom: 4px; }
.produit-lien:hover { opacity: .6; }
.etat-unique { color: var(--noir); }

/* Encadré d'information (commande, livraison) */
.infos-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); border-top: 1px solid var(--filet); padding-top: 48px; }
.infos-3 h3 { font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.infos-3 p { margin-top: 14px; max-width: 380px; }

/* Galerie complète : un peu plus serrée, quatre colonnes */
.galerie-pleine { grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 48px); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 140px); align-items: start; }
.contact-infos .titre-section { margin-bottom: 28px; }
.coordonnees { margin-top: 44px; border-top: 1px solid var(--filet); }
.coordonnee { padding: 22px 0; border-bottom: 1px solid var(--filet); }
.coordonnee h3 { font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gris); }
.coordonnee p { margin-top: 6px; font-size: 20px; color: var(--noir); }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gouttiere); }
.champ { display: block; }
.champ-large { grid-column: 1 / -1; }
.champ span { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--noir); }
.champ input, .champ select, .champ textarea {
  display: block; width: 100%; margin-top: 10px; padding: 14px 0;
  border: 0; border-bottom: 2px solid var(--noir); border-radius: 0; background: transparent;
  font: 400 17px/1.5 var(--police); color: var(--noir); appearance: none;
}
.champ textarea { resize: vertical; min-height: 160px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--gris); }
.formulaire .bouton { cursor: pointer; font-family: var(--police); }
.mention { grid-column: 1 / -1; font-size: 14px; color: var(--gris); }

@media (max-width: 900px) {
  .colonnes, .etape, .contact { grid-template-columns: 1fr; }
  .produits { grid-template-columns: repeat(2, 1fr); }
  .infos-3 { grid-template-columns: 1fr; }
  .galerie-pleine { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .produits, .formulaire { grid-template-columns: 1fr; }
  .bandeau-texte { left: 20px; }
  .filtre { padding: 0 14px; letter-spacing: .2em; }
}
.nav li.actif a { border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.champ select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") right 4px center / 14px 9px no-repeat; padding-right: 32px; cursor: pointer; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Page simple (merci, 404) */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 200px 120px; }
.page-simple .titre-section { font-size: clamp(46px, 6.4vw, 104px); margin-top: 26px; }
.page-simple p:not(.surtitre) { margin-top: 26px; max-width: 560px; font-size: 20px; }
.page-simple .bouton { margin-top: 44px; align-self: flex-start; }
.entete-sombre { color: var(--noir); }
