/* ================================
   STYLE CSS â€“ Socle commun
   ================================ */

/* =============================
   1. Base globale
   ============================= */
*{margin:0;padding:0;box-sizing:border-box}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 {
  color: var(--color-primary);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  cursor: pointer;
}

/* =============================
   2. Boutons
   ============================= */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-wh);
  transition: all var(--transition-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-alt);
}

.btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-bg-alt);
}

.btn-disabled {
  background-color: var(--color-border);
  color: var(--color-text-light);
  cursor: not-allowed;
}

.fizzy-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.fizzy-btn {
  position: relative;
  z-index: 3;
  transition: transform .18s cubic-bezier(.2,.8,.25,1), box-shadow .18s;
  padding: 15px 40px;
  white-space: nowrap;
  display: inline-block;
  font-size: 20px;
}

.fizzy-btn:active {
  transform: translateY(-3px) scale(0.97);
}

.fizzy-wrapper .bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transform: translate(-50%, -50%) scale(0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

@keyframes burst {
  0% {
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 1;
  }
  60% {
    opacity: 0.85;
  }
  80% { 
    opacity: 0.6; 
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
    opacity: 0;
  }
}

.fizzy-wrapper .bubble:nth-child(2)  { --dx: -180px; --dy:   0px;  animation-duration: 1100ms; animation-delay: 0ms;   }
.fizzy-wrapper .bubble:nth-child(3)  { --dx: -125px; --dy: -110px;  animation-duration: 1200ms; animation-delay: 60ms;  }
.fizzy-wrapper .bubble:nth-child(4)  { --dx: 0px;    --dy: -100px; animation-duration: 950ms; animation-delay: 30ms; }
.fizzy-wrapper .bubble:nth-child(5)  { --dx: 125px;  --dy: -110px;  animation-duration: 1200ms; animation-delay: 80ms;  }
.fizzy-wrapper .bubble:nth-child(6)  { --dx: 90px;   --dy: 0px;    animation-duration: 900ms; animation-delay: 40ms; }

.fizzy-wrapper .bubble:nth-child(7)  { --dx: 140px;  --dy:  120px;  animation-duration: 1250ms; animation-delay: 120ms; } 
.fizzy-wrapper .bubble:nth-child(8)  { --dx: 10px;   --dy: 95px;   animation-duration: 1000ms; animation-delay: 90ms; }
.fizzy-wrapper .bubble:nth-child(9)  { --dx: -125px; --dy:  125px;  animation-duration: 1300ms; animation-delay: 140ms; }
.fizzy-wrapper .bubble:nth-child(10) { --dx: -210px; --dy:  -20px;  animation-duration: 1300ms; animation-delay: 50ms;  }
.fizzy-wrapper .bubble:nth-child(11) { --dx: 210px;  --dy:  -20px;  animation-duration: 1400ms; animation-delay: 160ms; }
.fizzy-wrapper .bubble:nth-child(12) { --dx: -20px;  --dy: -120px; animation-duration: 1150ms; animation-delay: 70ms; }

.fizzy-wrapper .bubble {
  animation-name: none;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.22,.9,.26,1);
  will-change: transform, opacity;
}

.fizzy-wrapper .bubble.small { width: 8px; height: 8px; }
.fizzy-wrapper .bubble.big   { width: 12px; height: 12px; }

.bubble.c-rose-1 { background:#e9aebb; }
.bubble.c-rose-2 { background:#f3c9d3; }
.bubble.c-rose-3 { background:#f8e4ea; }
.bubble.c-cream  { background:#fffdf8; }
.bubble.c-beige  { background:#f5ebdd; }
.bubble.c-sauge-1{ background:#d8e2dc; }
.bubble.c-sauge-2{ background:#e8f0ec; }
.bubble.c-sauge-3{ background:#c7d8cd; }
.bubble.c-marron { background:#bfa593; }
.bubble.c-rose-4 { background:#f2d7dd; }
.bubble.c-cream-2{ background:#fffaf2; }

.fizzy-wrapper:hover .bubble,
.fizzy-wrapper:focus-within .bubble {
  animation-name: burst;
}

.fizzy-wrapper .bubble:nth-child(odd)  { width: 8px;  height: 8px;  }
.fizzy-wrapper .bubble:nth-child(even) { width: 12px; height: 12px; }

.fizzy-wrapper .bubble:nth-child(2)  { background: #e9aebb; }
.fizzy-wrapper .bubble:nth-child(3)  { background: #f3c9d3; }
.fizzy-wrapper .bubble:nth-child(4)  { background: #f8e4ea; }
.fizzy-wrapper .bubble:nth-child(5)  { background: #fffdf8; }
.fizzy-wrapper .bubble:nth-child(6)  { background: #f5ebdd; }
.fizzy-wrapper .bubble:nth-child(7)  { background: #d8e2dc; }
.fizzy-wrapper .bubble:nth-child(8)  { background: #e8f0ec; }
.fizzy-wrapper .bubble:nth-child(9)  { background: #c7d8cd; }
.fizzy-wrapper .bubble:nth-child(10) { background: #bfa593; }
.fizzy-wrapper .bubble:nth-child(11) { background: #bfa593; } 
.fizzy-wrapper .bubble:nth-child(12) { background: #f2d7dd; }
.fizzy-wrapper .bubble:nth-child(13) { background: #fffaf2; }

/* =============================
   3. Formulaires
   ============================= */
input, textarea, select, button {
  font-family: var(--font-base);
  font-size: var(--text-base);
}

input, textarea, select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

/* =============================
   4. Grille responsive simple
   ============================= */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--space-md) / -2);
}

.col {
  padding: calc(var(--space-md) / 2);
  flex: 1 0 0%;
}

.col-6 {
  flex: 0 0 50%;
}

.col-12 {
  flex: 0 0 100%;
}

/* =============================
   Header & Navigation
   ============================= */

/* NAV */
header {
  width: 100%;
  background-color: var(--color-bg);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-base);
  box-sizing: border-box;

  text-align: right;
  height: auto;
  min-height: 80px;

  white-space: nowrap;
  position: relative;
  padding-left: calc(var(--space-lg) + 70px);
  border-bottom: solid 2px #e9aebb;
  overflow: hidden;
}

header img {
  height: calc(100% + 5px);
  display: block;
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

nav {
  bottom: 50%;
  position: relative;
  transform: translate(0,40%);
}

nav ul {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

nav ul li {
  display: inline-block;
  margin-left: var(--space-lg);
}

nav ul li a {
  position: relative;
  display: inline-block;
  z-index: 1;
  color: var(--color-text);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  transition: color var(--transition-base);
}

nav ul li a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.95);
  width: 140%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.69), rgba(255, 255, 255, 0.61) 53%, #0000 55%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  z-index: -1;
  pointer-events: none;
  border-radius: 10px;
}

nav ul li a:hover::before,
nav ul li a:focus::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

/* HERO */
.hero {
  background-color: var(--color-bg);
  position: relative;
  width:100%;
}

.hero .hero_img{
  width:100vw;
  height: calc(100vh - 65px);  
  object-fit: cover;
}

.hero .hero-content{
  position: relative;
  height: calc(100vh - 65px);
  width:100%;
  background: url(../../assets/img/hero.png);
  background-size: cover;
  background-position: left center;
  top:0;
  z-index: 1;
  margin: auto;
}

.hero-content-box{
  position: absolute;
  left: 50%;
  top: 25%
}

.hero .hero-content .hero-content-box h1{ 
  text-align: left;
  color: var(--color-text);
  font-size: 60px;
  margin-bottom: 50px;
}

.hero .hero-content .hero-content-box h2{ 
  text-transform:uppercase;
  font-family: (var(--font-base));
  font-weight: 450;
  margin-bottom: 100px;
}


.hero__title {
  font-family: var(--font-heading);
  font-size: 60px;
  display: inline-block;
}

.hero__title .line {
  display: block;
  color: transparent;
  background: linear-gradient(to right, var(--color-text) 0%, var(--color-text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

.hero__title.reveal .line:nth-child(1) {
  animation: handwriting 3s steps(70) forwards;
}

.hero__title.reveal .line:nth-child(2) {
  animation: handwriting 3s steps(70) forwards;
  animation-delay: 3.2s;
}

@keyframes handwriting {
  from { width: 0; }
  to { width: 100%; }
}

/* MOOD */
.mood-section{
  background: linear-gradient(180deg, rgb(245, 235, 221), rgba(238, 206, 222, 0.6));
  padding: 36px 20px;
  border-radius: 18px;
  box-shadow: 0px 10px 15px rgba(0,0,0,0.06);
  position: relative;
  overflow: visible;
  max-width: 1150px;
  margin: 50px auto;
}

.mood-title{
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.2px;
}

.mood-wrap{
  position: relative;
  padding: 30px 22px 22px;
}

.yarn_box {
  position: relative;
  left: 38%;
  top: 80%;
  width: calc(50vw);
  background: transparent;
  animation: handwriting 3s steps(70) forwards;  height: 150px;
}

.yarn-line{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.98;
}

.yarn-shadow { filter: blur(6px); opacity: 0.6; }
.yarn-core { filter: drop-shadow(0 4px 6px rgba(184,77,97,0.12)); transition: stroke 300ms; }
.yarn-stitch { mix-blend-mode: screen; }

/*
.yarn-core, .yarn-stitch {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawYarn 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes drawYarn {
  to { stroke-dashoffset: 0; }
}
  */
/*
#yarnKnots circle {
  fill: var(--yarn);
  stroke: rgba(255,255,255,0.28);
  stroke-width: 2;
  transform-origin: center center;
  filter: drop-shadow(0 6px 10px rgba(184,77,97,0.14));
  opacity: 0;
  animation: popIn 360ms ease forwards;
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
*/
.mood-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.mood-card{
  position: relative; 
  overflow: visible;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28));
  background-blend-mode: overlay;
  background-size: 250px;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--card-shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms, filter 280ms;
  will-change: transform;
  outline: none;
  min-height: 136px;
  position: relative;
}

.mood-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.02));
  mix-blend-mode: multiply;
}

.mood-card:focus{
  box-shadow: 0 10px 30px rgba(184,77,97,0.14), 0 0 0 6px rgba(184,77,97,0.08);
  transform: translateY(-6px);
}
.mood-card:hover{
  transform: translateY(-10px);
  filter: saturate(1.03);
}

.mood-emoji{
  display: grid;
  width: 56px;
  height: 56px;
  font-size: 34px;
  place-items: center;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  background: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-self: start;
  transition: transform 420ms;
}

.mood-card:nth-child(1) .mood-emoji{
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5)), url('../img/watercolor_texture_pink.png');
}
.mood-card:nth-child(2) .mood-emoji{
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5)), url('../img/watercolor_texture_green.jpg');
}
.mood-card:nth-child(3) .mood-emoji{
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5)), url('../img/watercolor_texture_blue.jpg');
}
.mood-card:nth-child(4) .mood-emoji{
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5)), url('../img/watercolor_texture_orange.jpg');
}

.mood-emoji { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%{transform:translateY(0)}50%{transform:translateY(-6px)}100%{transform:translateY(0)} }

.mood-title-small{ font-weight: 800; color: #3b2b37; font-size: 15px; }
.mood-desc{ font-size: 13px; color: var(--muted); margin: 0; line-height:1.3; }

.mood-card:nth-child(1){
  background-image:
   linear-gradient(135deg, rgba(255,230,240,0.8), rgba(255,245,246,0.6));
}
.mood-card:nth-child(2){
  background-image:
   linear-gradient(135deg, rgba(230,255,250,0.85), rgba(245,255,253,0.6));
}
.mood-card:nth-child(3){
  background-image:
   linear-gradient(135deg, rgba(245,240,255,0.9), rgba(255,250,255,0.6));
}
.mood-card:nth-child(4){
  background-image:
   linear-gradient(135deg, rgba(255,245,235,0.9), rgba(255,250,245,0.6));
}

/* Coups de Coeur */

.coups-coeur{
  background: var(--color-bg-alt);
  position: relative;
  padding: 80px 0 140px;
  font-family: var(--font-base, system-ui, sans-serif);
  overflow: visible;
}
.coups-coeur__deco{ position:absolute; inset:0; opacity:.95; pointer-events:none; z-index:0; }
.coups-coeur__deco img{ width:100%; height:100%; object-fit:cover; object-position: top; display:block; }
.a_propos__deco {position: absolute;
  opacity: .95;
  pointer-events: none;
  z-index: -1;
  width: 100%;
  height: 100%;}
.a_propos__deco img {object-position: top;
  display: block;
  width: 100vw;
  height: 100%;
  object-fit: cover;}
.cc-title, .ap-title{
  font-family: var(--font-heading);
  color: #6b4b3a;
  font-size: 60px;
  letter-spacing: 0.4px;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.15),
    1px 1px 0 rgba(255,255,255,0.25);
  position: relative;
  z-index:1;
}

.cc-wrap{ position: relative; z-index:1; display:flex; height: 350px; align-items:center; gap:12px; margin-top: 80px;}
.cc-nav{
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,0.06);
  background: var(--color-bg-alt);
  display:inline-grid;
  place-items:center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: var(--cc-thread);
}
.cc-nav:focus{ outline:3px solid rgba(139,111,90,0.2); }

.cc-list{
   display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  place-items: center;
  gap: var(--gap);
  scroll-behavior: smooth;
  width: 100%;
}
.cc-list::-webkit-scrollbar{ height:10px; }
.cc-list::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.06); border-radius:999px; }

.cc-card{
  width: 240px;
  min-width: 240px;
  background: linear-gradient(180deg, #f7f3ef, #eae2dc);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: -4px 30px 18px rgb(151, 122, 101);
  text-align: center;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  --thread-width: 70%;
  transform: perspective(750px) translate3d(0px, 0px, -250px) rotateX(35deg) rotateZ(-22deg) scale(0.9, 0.9);
  transition: transform 3s cubic-bezier(.2,.9,.2,1), box-shadow 260ms;
}

.cc-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: var(--thread-width);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cc-thread) 25%, var(--cc-thread) 75%, transparent);
  border-radius: 4px;
  transform: translateX(-50%) scaleX(1); 
  transform-origin: center;
  transition: transform 350ms cubic-bezier(.2,.9,.2,1), opacity 250ms;
  opacity: .9;
  z-index: 1;
}

.cc-card:hover::after,
.cc-card:focus::after {
  transform: translateX(-50%) scaleX(1.15);
  opacity: 1;
}

.cc-card:hover, .cc-card:focus{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 40px rgba(17,17,17,0.10);
}

.cc-card__visual{ position: relative; width:100%; display:flex; justify-content:center; align-items:center; gap:8px; }
.cc-card__img{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  margin: 6px auto 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1);
  transform-origin: 50% 60%;
  will-change: transform;
}
.cc-card:hover .cc-card__img, .cc-card:focus .cc-card__img{
  transform: translateY(-6px) rotate(-2deg) scale(1.02);
}

.cc-fav{
  position:absolute;
  top:6px;
  right:10px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  border:none;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:14px;
  color:#c44;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.cc-fav:active{ transform: scale(.96); }

.cc-card__title{ font-size:18px; margin:6px 0 4px; color:#5a4132; font-family: var(--font-base);}
.cc-card__price{ font-weight:700; margin:0 0 10px; color:#7a5a4a; }

.cc-card__meta{ display:flex; gap:8px; align-items:center; justify-content:center; margin-top:6px; }
.cc-badge{
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:#6b4b3a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03) inset;
}

.cc-card__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:56px;
  height:36px;
  border-radius:999px;
  background: var(--cc-accent);
  border:none;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 160ms;
}
.cc-card__btn:active{ transform: translateY(1px); }

.cc-card__bio{
  margin-top:12px;
  font-size:13px;
  color:#5a4b43;
  max-height:0;
  opacity:0;
  transform: translateY(6px);
  transition: opacity 280ms, transform 280ms, max-height 300ms;
  overflow: hidden;
  padding:0 6px;
}
.cc-card:hover .cc-card__bio, .cc-card:focus .cc-card__bio{
  max-height: 120px;
  opacity:1;
  transform: translateY(0);
}

/* ===== A PROPOS ===== */

.a-propos .container {padding-top: 100px;}
.ap-inner {
  margin: 50px auto 150px auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: start;
}

.ap-left .ap-welcome { font-size: 1.25rem; margin-bottom: 0.8rem; color: #553d36; font-weight:500; }
.ap-left .ap-list { margin-top: 1rem; }
.ap-cta-row { margin-top: 1.2rem; display:flex; align-items:center; gap:0.6rem; }

.ap-right { display:flex; justify-content:center; align-items:center; height: 100%; }
.ap-photo-wrap { position:relative; width:100%; max-width:420px; }

.ap-photo-wrap { position: relative; width:100%; max-width:420px; display: flex; align-items: center;}
.ap-photo {
  width: 200px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18,18,20,0.06);
  display: block;
  height: 200px;
  object-fit: cover;
}

.ap-carnet-preview {
  width: 300px;
  height: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,252,248,0.96));
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(18,18,20,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.ap-carnet-preview:focus,
.ap-carnet-preview:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18,18,20,0.12); }

.ap-cta-row { margin-top: 1.2rem; display:flex; gap:12px; align-items:center; }

/* CARNET MODAL */
.carnet-snippet{display: flex;
  flex-direction: column;
  gap: 15px;}

.carnet-modal[aria-hidden="false"] {
  display:flex !important;
  position: fixed !important;
  inset: 0 !important;
  align-items: center;
  justify-content: center;
  z-index: 1000000 !important;
}

.carnet-cover { width:100%; height:70px; border-radius:8px; background:linear-gradient(135deg,var(--color-primary), #fff); padding:8px; display:flex; flex-direction:column; justify-content:center; color:var(--color-bg-alt); font-weight:700;}
.carnet-tag { font-size:12px; opacity:0.9; }
.carnet-title { font-weight:700; font-size:14px; }
.carnet-snippet .dot-row { display:flex; gap:6px; margin-bottom:6px; }
.carnet-snippet .dot { width:12px; height:12px; border-radius:999px; display:inline-block; box-shadow: 0 3px 8px rgba(0,0,0,0.06); }

.carnet-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:2; }
.carnet-modal[aria-hidden="false"] { display:flex; }
.carnet-backdrop { position:absolute; inset:0; background:rgba(8,6,7,0.45); backdrop-filter: blur(3px); }

.carnet-modal .carnet-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(8,6,7,0.45) !important;
  backdrop-filter: blur(3px);
}
.carnet-modal .carnet-shell { position: relative; z-index: 1000000; }
.carnet-shell {
  width:min(980px, 94%);
  max-height:86vh;
  background: linear-gradient(180deg, #fff, #fffdf8);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12,10,12,0.35);
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
}

.carnet-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid rgba(0,0,0,0.04); }
.carnet-header h3 { margin:0; font-size:1.05rem; font-weight:700; }
.carnet-close { background:transparent; border:none; font-size:26px; line-height:1; color:#6b4b3a; }

.carnet-body { display:flex; align-items:center; gap:12px; padding:18px; flex:1 1 auto; min-height:320px; }
.carnet-nav { width:44px; height:44px; border-radius:999px; border:1px solid rgba(0,0,0,0.06); background:#fff; box-shadow:var(--shadow-sm); font-size:24px; line-height:1; }
.carnet-stage { flex:1 1 0%; overflow:hidden; border-radius:12px; outline:none; }
.carnet-pages { display:flex; transition: transform 420ms cubic-bezier(.2,.9,.2,1); will-change: transform; height:100%; }

.carnet-page { min-width:100%; padding:22px; box-sizing:border-box; display:flex; flex-direction:column; gap:12px; color:var(--color-text); }
.carnet-page .page-title { margin:0; font-size:1.05rem; font-weight:700; color:#6b4b3a; }
.palette-row { display:flex; gap:10px; align-items:center; margin-top:8px; }
.swatch { width:52px; height:52px; border-radius:12px; overflow:hidden; box-shadow:0 6px 14px rgba(0,0,0,0.06); display:flex; align-items:flex-end; justify-content:center; padding:6px; font-size:11px; color:rgba(255,255,255,0.95); font-weight:700; }


.carnet-stage {
  perspective: 1400px;
  -webkit-perspective: 1400px;
}


.carnet-page {
  transform-origin: left center; /* pivot côté anneaux */
  backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(.22,.9,.28,1);
}

/* Aller à la page suivante */
.carnet-page.turning-next {
  transform: rotateY(-180deg);
  z-index: 500; /* passe derrière */
}

/* Revenir à la page précédente */
.carnet-page.turning-prev {
  transform: rotateY(0deg);
  z-index: 1100; /* revient devant */
}


.tools-grid { display:flex; gap:10px; align-items:center; }
.tools-grid figure { margin:0; text-align:center; width:110px; font-size:13px; }
.tools-grid img { width:100%; height:84px; object-fit:cover; border-radius:10px; box-shadow:var(--shadow-sm); }
.texture-row { display:flex; gap:10px; align-items:center; }
.texture-swatch img { width:120px; height:80px; object-fit:cover; border-radius:10px; box-shadow:var(--shadow-sm); }

.sketch-row img { width:42%; border-radius:8px; box-shadow:var(--shadow-sm); }
.place-photo img { width:100%; height:180px; object-fit:cover; border-radius:10px; }

.carnet-footer { display:flex; align-items:center; justify-content:space-between; }
.carnet-progress { 
  font-weight: 700;
  color: #aaa;
  position: absolute;
  bottom: -69px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 14px;
  box-shadow: 0 0 18px #bbb;
  right: calc(50% - 20px);
  border: 2px solid #eee;
}
.carnet-controls{
  z-index: 2;
  position: absolute;
  top: 47%;
  left: -80px;
  width: 530px;
}
.carnet-next{
  position: absolute;
  right: 0px;
}

.carnet-stage:focus { box-shadow:0 0 0 4px rgba(184,77,97,0.06); border-radius:10px; }

.ap-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-photo:focus {
  outline: 3px solid rgba(255, 215, 0, 0.18);
  outline-offset: 4px;
}

.carnet-inline { max-width: 980px; width:100%; margin: 30px auto 0; }
.carnet-shell { overflow: visible; } 

.carnet-stage {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  display: block;
  border-radius: 12px;
  overflow: visible;
}

.carnet-pages {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.carnet-page {
  position: absolute;
  inset: 0;
  min-width: 100%;
  height: 100%;
  padding: 25px 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg,#fff,#fffef8);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(12,10,12,0.08);
  transform-origin: left center;
  will-change: transform, opacity;
  transition: transform 520ms cubic-bezier(.15,.9,.2,1), opacity 420ms ease;
}

.carnet-page[data-stack-offset="1"] { transform: translateX(6px) translateY(4px) scale(.996); z-index: 900; }
.carnet-page[data-stack-offset="2"] { transform: translateX(12px) translateY(8px) scale(.992); z-index: 800; }
.carnet-page[data-stack-offset="3"] { transform: translateX(18px) translateY(12px) scale(.988); z-index: 700; }

.carnet-page[data-top="true"] { z-index: 1100; transform: translateX(0) translateY(0) scale(1); }

.carnet-page.turning {
  transform: rotateY(-170deg) translateZ(-20px);
  opacity: 0.98;
  box-shadow: 0 32px 60px rgba(8,6,4,0.25);
  transition: transform 520ms cubic-bezier(.22,.9,.28,1), opacity 420ms ease;
}

.carnet-page.to-back {
  transform: translateX(24px) translateY(16px) scale(.985) rotateY(0deg);
  opacity: 1;
  z-index: 100;
}

.carnet-page[aria-hidden="true"] { pointer-events: none; }

.carnet-shell::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20%;
  bottom: 20%;
  width: 12px;
  background: rgb(83, 68, 49);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
  pointer-events: none;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background-color: var(--color-secondary);
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter__title {
    font-family: var(--font-heading);
    font-size: 60px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.newsletter__subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #6B4B3E;
    font-weight: 500;
}

.newsletter__divider {
    width: 120px;
    height: 2px;
    background-color: #d6c6b8;
    margin: 1.2rem auto 2rem;
    opacity: 0.6;
}

.newsletter__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #5e534a;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.newsletter__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.newsletter__input-wrapper {
    display: flex;
    align-items: center;
    background-color: #F8DADA;
    border-radius: 30px;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
}

.newsletter__icon {
    font-size: 1.1rem;
    color: #6B4B3E;
}

.newsletter__input-wrapper input {
    border: none;
    outline: none;
    background: #fff;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    width: 260px;
    font-size: 0.9rem;
    color: #6B4B3E;
}

.newsletter__btn {
  background-color: #E7AABB;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  transition: 0.25s ease;
}

.newsletter__btn:hover {
  background-color: #d891a5;
}


/* ===== FOOTER ===== */
footer {
  text-align: center;
}













/* ===== STITCHED LOOK: petits traits autour des cards ===== */

.mood-card .stitch {
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--yarn);
  box-shadow: 0 2px 6px rgba(180,64,80,0.08);
  transform-origin: center;
  opacity: 0.96;
  will-change: transform, opacity;
  transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .22s;
}

.mood-card .stitch.show {
  transform: scale(1);
  opacity: 1;
}
.mood-card .stitch.init {
  transform: scale(0.6) translateY(-2px);
  opacity: 0;
}

.mood-section.stitched {
  position: relative;
  padding: 34px 22px 22px;
}

#yarnKnots circle.yarn-knot--stitch {
  fill: var(--yarn);
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.5;
  filter: none;
  opacity: 0.95;
  transform-origin: center;
}


.yarn {
  max-width: 900px;
  display: block;
  pointer-events: none;
  z-index: 2;
  left: 150px;
  height: 125%;
  top: 0;
  text-align: right;
  position: relative;
}
#yarn-path {
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #e3a9b6;
  transition: stroke-dashoffset 2.4s cubic-bezier(.18,.74,.3,1);
  transform-origin: center;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.06));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.yarn--draw {
  animation: drawYarn 2.8s ease forwards;
}

@keyframes drawYarn {
  to {
    stroke-dashoffset: 0;
  }
}




.sparkles{
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 30;
}

.sparkle{
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,244,220,0.95) 0%, rgba(255,220,150,0.85) 30%, rgba(212,145,105,0.9) 60%);
  filter: blur(1px);
  opacity: 0;
  transform-origin: center;
  animation: sparkle-float 6s ease-in-out forwards;
  box-shadow: 0 0 14px rgba(255,200,150,0.85);
}

@keyframes sparkle-float {
  0% { opacity: 0; transform: translateY(0) scale(0.6); filter: blur(2px); }
  10% { opacity: 1; filter: blur(0.8px); }
  50% { transform: translateY(-18px) scale(1.2); opacity: 0.95; }
  100% { transform: translateY(-40px) scale(0.8); opacity: 0; filter: blur(2px); }
}














.yarn-ball {
  position: relative;
  bottom: 300px;
  left: 45%;
  display: block;
  width: 200px;
  height: 200px;
  z-index: 3;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
  animation: yarn-drop 1.8s cubic-bezier(.28,.84,.42,1) forwards;
}

@keyframes yarn-drop {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  70% {
    transform: translateX(-50%) translateY(calc(100vh - 140px)); /* chute */
  }
  85% {
    transform: translateX(-50%) translateY(calc(100vh - 160px)); /* rebond */
  }
  100% {
    transform: translateX(-50%) translateY(calc(100vh - 140px)); /* posé */
  }
}


@keyframes yarn-spin  {
  0% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  70% { transform: translateX(-50%) translateY(calc(100vh - 140px)) rotate(60deg); }
  100% { transform: translateX(-50%) translateY(calc(100vh - 140px)) rotate(180deg); }
}