/* ============================================================
   STYLE.CSS – Carnet de souvenirs v2
   Fond pastel chaud, style croquis, chaleur souvenirs d'enfance
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg-warm-1:     #ffeac6;   /* fond pastel pêche */
  --bg-warm-2:     #ffeded;   /* fond pastel rose pâle */
  --cream:         #f5efe0;   /* pages livre / blocs */
  --cream-2:       #f0e8d5;   /* légèrement plus foncé */
  --cover-purple:  #8b7aa0;
  --pastel-rose:   #e8b4d8;
  --pastel-blue:   #a8c8e8;
  --pastel-violet: #c5b8d8;
  --pastel-green:  #b8d8a8;
  --pastel-beige:  #f5e6c8;
  --text-dark:     #3d2e1e;
  --text-mid:      #6b5040;
  --text-light:    #fff8f0;
  --shadow:        0 4px 20px rgba(100,60,20,0.12);
  --shadow-card:   0 6px 28px rgba(80,40,10,0.13);
  --radius:        14px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  /* Dégradé chaud pêche → rose pâle */
  background: linear-gradient(160deg, var(--bg-warm-1) 0%, var(--bg-warm-2) 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: 'Segoe UI', sans-serif;
}

/* Police manuscrite */
.handwritten { font-family: 'Caveat', cursive; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  /* Semi-transparent pour laisser transparaître le fond pastel */
  background: rgba(255,234,198,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 36px; right: 36px;
  height: 1px;
  background: rgba(100,60,20,0.15);
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* ---------- Burger ---------- */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   MENU POST-IT
   ============================================================ */
#postit-menu {
  position: fixed;
  inset: 0;
  /* Fond sombre pour faire ressortir les post-its */
  background: rgba(30, 20, 10, 0.92);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#postit-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Conteneur des post-its – deux rangées bien séparées */
.postit-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;        /* pas de gap : les décalages sont gérés par transform */
}

/* Post-it commun */
.postit-item {
  width: 190px;
  height: 190px;
  border-radius: 3px;
  box-shadow: 5px 8px 24px rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  /* Texture légère */
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0%, transparent 60%);
}

.postit-item:hover {
  box-shadow: 8px 12px 32px rgba(0,0,0,0.7);
}

/* Petit coin plié */
.postit-item::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.08);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 0;
}

/* Post-it rose – Accueil : légèrement vers la gauche */
.postit-accueil {
  background-color: var(--pastel-rose);
  transform: rotate(-4deg) translateX(-20px);
}
.postit-accueil:hover {
  transform: rotate(-2deg) translateX(-20px) scale(1.06);
}

/* Post-it bleu – Page 2 : décalé vers la droite et plus bas */
.postit-page2 {
  background-color: var(--pastel-blue);
  transform: rotate(5deg) translateX(40px) translateY(-30px);
}
.postit-page2:hover {
  transform: rotate(3deg) translateX(40px) translateY(-30px) scale(1.06);
}

/* Bouton fermer */
.menu-close {
  position: fixed;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: rgba(255,248,240,0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 160;
  transition: color 0.2s;
}
.menu-close:hover { color: white; }

/* ============================================================
   PAGE D'ACCUEIL – Héro
   ============================================================ */
.home-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 8vw;
  /* Plein écran : prend toute la hauteur restante sous le header */
  height: calc(100vh - 68px);   /* 68px = hauteur du header */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  /* Centre verticalement dans la fenêtre */
  box-sizing: border-box;
}

.hero-text {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.4;
  color: var(--text-dark);
  flex: 1;
}

.hero-heart {
  font-size: 1.6rem;
  margin-top: 10px;
  display: block;
  opacity: 0.45;
  color: var(--cover-purple);
}

.hero-text .underline-pastel {
  display: block;
  width: 55%;
  height: 2.5px;
  background: var(--cover-purple);
  margin-top: 10px;
  border-radius: 2px;
  opacity: 0.5;
}

/* Bloc vidéo */
.video-block {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  /* Grand pour occuper l'espace hero */
  width: clamp(360px, 52vw, 680px);
  flex-shrink: 0;
  border: 1.5px solid rgba(139,122,160,0.18);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cream-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-placeholder iframe,
.video-placeholder video { width: 100%; height: 100%; border: none; border-radius: 10px; }

.play-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--cover-purple);
  display: flex; align-items: center; justify-content: center;
  color: var(--cover-purple);
  font-size: 1.3rem;
  cursor: pointer;
  background: rgba(139,122,160,0.08);
  transition: background 0.2s;
}
.play-icon:hover { background: rgba(139,122,160,0.18); }

.video-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 0;
  color: var(--text-mid);
  font-size: 0.75rem;
  opacity: 0.7;
}
.video-progress {
  flex: 1;
  height: 3px;
  background: rgba(139,122,160,0.3);
  border-radius: 2px;
  position: relative;
}
.video-progress::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--cover-purple);
  border-radius: 50%;
}

/* ============================================================
   LIVRE FERMÉ
   ============================================================ */
.book-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 100px;
  gap: 20px;
}

.book-invite {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--cover-purple);
  opacity: 0.6;
  text-align: center;
  animation: gentlePulse 2.8s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 0.85; transform: translateY(-4px); }
}

.book-closed {
  position: relative;
  width: 270px;
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
  text-decoration: none; /* si c'est un <a> */
  display: block;
}
.book-closed:hover { transform: translateY(-12px) rotate(1.8deg); }

.book-cover {
  background: var(--cover-purple);
  border-radius: 4px 18px 18px 4px;
  padding: 50px 32px;
  box-shadow:
    7px 7px 0 #6b5a80,
    12px 14px 36px rgba(60,30,80,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
/* Tranche gauche */
.book-cover::before {
  content: '';
  position: absolute;
  left: -11px; top: 6px;
  width: 13px;
  height: calc(100% - 12px);
  background: #6b5a80;
  border-radius: 3px 0 0 3px;
}
/* Reflet */
.book-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(130deg, rgba(255,255,255,0.1) 0%, transparent 55%);
}

.book-title {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.book-ornament {
  font-size: 0.85rem;
  color: rgba(245,239,224,0.55);
  letter-spacing: 4px;
  position: relative; z-index: 1;
}

/* ============================================================
   LIGHTBOX DU LIVRE OUVERT
   ============================================================ */
#book-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18,12,8,0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#book-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  background: none; border: none;
  color: rgba(255,248,240,0.75);
  font-size: 2rem;
  cursor: pointer;
  z-index: 310;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: white; }

/* ------ Livre ouvert ------ */
.open-book {
  position: relative;
  width: min(92vw, 920px);
  height: min(76vh, 570px);
  /* PAS de display:flex ici car les pages sont en position:absolute */
  border-radius: 6px 18px 18px 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.65);
  overflow: hidden;
  /* Fond crème de base visible derrière les pages */
  background: var(--cream);
}

.book-spine {
  position: absolute;
  left: 50%; top: -4px; bottom: -4px;
  width: 18px;
  transform: translateX(-50%);
  background: var(--cover-purple);
  z-index: 10;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* ------ Pages du livre ------ */
.book-page {
  flex: 1;
  background: var(--cream);
  padding: 40px 36px;
  overflow: hidden;
  position: absolute;     /* toutes les pages superposées */
  top: 0; bottom: 0;
  width: 50%;             /* moitié gauche ou droite */
  flex-direction: column;
  visibility: hidden;     /* caché mais prêt à être animé */
  display: flex;          /* toujours flex pour que l’animation fonctionne */
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
}

/* Page gauche : ancrée à gauche */
.book-page.page-left  { left: 0; }
/* Page droite : ancrée à droite */
.book-page.page-right { left: 50%; }

/* Page visible */
.book-page.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.page-left {
  border-radius: 12px 0 0 12px;
  border-right: 1px solid rgba(139,122,160,0.15);
  /* Lignes de papier */
  background:
    repeating-linear-gradient(
      transparent, transparent 28px,
      rgba(139,122,160,0.1) 28px, rgba(139,122,160,0.1) 29px
    ),
    var(--cream);
}
.page-right {
  border-radius: 0 12px 12px 0;
}

/* ------ FLIP animation (tour de page) ------ */
@keyframes flipOut {
  0%   { opacity: 1; transform: perspective(900px) rotateY(0deg)   scale(1);    visibility: visible; }
  100% { opacity: 0; transform: perspective(900px) rotateY(-80deg) scale(0.95); visibility: hidden;  }
}
@keyframes flipIn {
  0%   { opacity: 0; transform: perspective(900px) rotateY(80deg)  scale(0.95); visibility: visible; }
  100% { opacity: 1; transform: perspective(900px) rotateY(0deg)   scale(1);    visibility: visible; }
}

.book-page.flip-out {
  visibility: visible !important;
  animation: flipOut 0.25s ease forwards;
}
.book-page.flip-in {
  visibility: visible !important;
  animation: flipIn 0.25s ease forwards;
}

/* Titres & corps dans le livre */
.page-title {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  color: var(--cover-purple);
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.3;
}
.page-body {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 10px;
}

/* Timer */
#timer-display {
  font-family: 'Courier New', monospace;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: #b39ddb;
  text-shadow: 0 0 20px rgba(179,157,219,0.8), 0 0 6px rgba(179,157,219,0.4);
  letter-spacing: 6px;
  text-align: center;
  margin: auto 0;
  padding: 24px 0;
}
#timer-message {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #c0392b;
  text-align: center;
  padding: 12px;
  background: rgba(192,57,43,0.07);
  border-radius: 8px;
  display: none;
  margin-top: 12px;
}

/* Décoration feuilles */
.leaf-deco {
  position: absolute;
  bottom: 18px;
  font-size: 1.3rem;
  opacity: 0.3;
}
.leaf-left  { left: 18px; }
.leaf-right { right: 18px; }

/* Image placeholder dans le livre */
.page-img-placeholder {
  background: rgba(139,122,160,0.1);
  border: 1.5px dashed rgba(139,122,160,0.3);
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 14px;
  overflow: hidden;
}
.page-img-placeholder img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
}

/* ------ Flèches navigation livre ------ */
.book-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--pastel-violet);
  font-size: 2.6rem;
  cursor: pointer;
  padding: 8px 12px;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 320;
  line-height: 1;
}
.book-nav:hover { opacity: 1; transform: translateY(-50%) scale(1.2); }
.book-nav-left  { left: -58px; }
.book-nav-right { right: -58px; }
.book-nav:disabled { opacity: 0.2; cursor: default; }

/* ============================================================
   PAGE 2 – Mise en page aérée façon souvenirs d'enfance
   ============================================================ */
.page2-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 6vw 100px;
  display: flex;
  flex-direction: column;
  gap: 48px;   /* Espacement généreux entre les blocs */
}

/* Carte générique avec effet post-it / papier */
.card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border: 1.5px solid rgba(139,122,160,0.12);
}

/* Petite rotation aléatoire pour l'effet "bazar souvenir" */
.card-tilt-l { transform: rotate(-1.2deg); }
.card-tilt-r { transform: rotate(1.5deg); }
.card-tilt-s { transform: rotate(-0.7deg); }

/* Hover : redresse la carte */
.card:hover { transform: rotate(0deg) translateY(-4px); transition: transform 0.3s ease; }

/* Section dessin + texte */
.section-two-col {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.figuratif-block {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  width: 38%;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(139,122,160,0.12);
  transform: rotate(-1.5deg);
}
.figuratif-block:hover { transform: rotate(0deg) translateY(-4px); transition: transform 0.3s; }

.figuratif-svg { width: 100%; max-width: 170px; }
.figuratif-label {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-style: italic;
}

.text-block-cream {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  flex: 1;
  border: 1.5px solid rgba(139,122,160,0.12);
  transform: rotate(0.8deg);
}
.text-block-cream:hover { transform: rotate(0deg) translateY(-4px); transition: transform 0.3s; }

.text-block-cream h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--cover-purple);
  margin-bottom: 14px;
}
.text-block-cream p, .text-block-full p, .text-block-blue p {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-dark);
}

/* Bloc texte pleine largeur */
.text-block-full {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border: 1.5px solid rgba(139,122,160,0.12);
}

/* ============================================================
   GRILLE D'IMAGES – Style Figma / masonry
   ============================================================ */
.image-grid-section {
  position: relative;
}

/* Grille 3 colonnes masonry CSS */
.image-grid {
  columns: 3;
  column-gap: 14px;
}

/* Sur mobile */
@media (max-width: 600px) {
  .image-grid { columns: 2; }
}

.grid-cell {
  background: var(--cream-2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  break-inside: avoid;    /* Ne pas couper une cellule entre colonnes */
  margin-bottom: 14px;
  border: 1.5px solid rgba(139,122,160,0.1);
  box-shadow: 0 4px 14px rgba(80,40,10,0.1);
  transition: transform 0.2s ease;
  cursor: default;
}
.grid-cell:hover { transform: scale(1.03); }

/* Tailles variées : alternance hauteurs */
.grid-cell:nth-child(1) { height: 220px; }
.grid-cell:nth-child(2) { height: 140px; }
.grid-cell:nth-child(3) { height: 180px; }
.grid-cell:nth-child(4) { height: 160px; }
.grid-cell:nth-child(5) { height: 200px; }
.grid-cell:nth-child(6) { height: 130px; }
.grid-cell:nth-child(7) { height: 170px; }
.grid-cell:nth-child(8) { height: 150px; }

.grid-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.grid-cell .emoji-placeholder {
  font-size: 2.8rem;
  opacity: 0.75;
}

/* Annotation manuscrite */
.image-grid-annotation {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: var(--text-mid);
  opacity: 0.7;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   BLOC VIDÉO PAGE 2
   ============================================================ */
.video-block-p2 {
  background: #ffd6e0;   /* rose doux */
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1.5px solid rgba(232,180,216,0.35);
  transform: rotate(-0.5deg);
}
.video-block-p2:hover { transform: rotate(0deg) translateY(-4px); transition: transform 0.3s; }

.video-block-p2 .video-label {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--cover-purple);
}

.play-btn-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--cover-purple);
  display: flex; align-items: center; justify-content: center;
  color: var(--cover-purple);
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(139,122,160,0.08);
  transition: background 0.2s, transform 0.2s;
}
.play-btn-circle:hover { background: var(--cover-purple); color: white; transform: scale(1.1); }

/* ============================================================
   BLOC TEXTE BLEU BAS DE PAGE
   ============================================================ */
.text-block-blue {
  background: #d6eaff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border: 1.5px solid rgba(168,200,232,0.35);
  transform: rotate(0.6deg);
}
.text-block-blue:hover { transform: rotate(0deg) translateY(-4px); transition: transform 0.3s; }

/* ============================================================
   MUR DE POST-ITS COMMUNAUTÉ
   ============================================================ */
.community-section {
  margin-top: 16px;
}

.community-section h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.community-section .community-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  opacity: 0.75;
}

/* Formulaire d'ajout de post-it */
.postit-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 36px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(139,122,160,0.12);
}

.postit-form input,
.postit-form textarea {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  border: none;
  border-bottom: 2px solid rgba(139,122,160,0.3);
  background: transparent;
  color: var(--text-dark);
  outline: none;
  padding: 6px 4px;
  transition: border-color 0.2s;
  resize: none;
}
.postit-form input:focus,
.postit-form textarea:focus {
  border-bottom-color: var(--cover-purple);
}

.postit-form input {
  width: 160px;
  flex-shrink: 0;
}

.postit-form textarea {
  flex: 1;
  min-width: 200px;
  height: 60px;
  line-height: 1.5;
}

/* Sélecteur de couleur du post-it */
.color-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-dot:hover      { transform: scale(1.15); }
.color-dot.selected   { border-color: var(--text-dark); transform: scale(1.15); }

/* Bouton envoyer */
.btn-postit-send {
  background: var(--cover-purple);
  color: var(--cream);
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.btn-postit-send:hover { background: var(--pastel-violet); transform: scale(1.04); }

/* Mur de post-its */
.postit-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 120px;
}

/* Post-it individuel sur le mur */
.wall-postit {
  width: 170px;
  min-height: 170px;
  padding: 18px 16px 14px;
  border-radius: 3px;
  box-shadow: 4px 6px 18px rgba(80,40,10,0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  /* Légère rotation aléatoire appliquée via JS */
  transition: transform 0.2s ease, box-shadow 0.2s;
  cursor: default;
  /* Texture post-it */
  background-image: radial-gradient(circle at 20% 15%, rgba(255,255,255,0.45) 0%, transparent 55%);
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wall-postit:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 6px 10px 26px rgba(80,40,10,0.26);
}

/* Petit coin plié */
.wall-postit::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.07);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 0;
}

.wall-postit .postit-pseudo {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(61,46,30,0.6);
  letter-spacing: 0.3px;
}

.wall-postit .postit-text {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-dark);
  flex: 1;
  word-break: break-word;
}

.wall-postit .postit-date {
  font-family: 'Caveat', cursive;
  font-size: 0.78rem;
  color: rgba(61,46,30,0.4);
  text-align: right;
}

/* Bouton supprimer (visible au hover) */
.wall-postit .postit-delete {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: rgba(61,46,30,0.3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}
.wall-postit:hover .postit-delete { opacity: 1; }
.wall-postit .postit-delete:hover  { color: #c0392b; }

/* Message vide */
.wall-empty {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--text-mid);
  opacity: 0.5;
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

/* Animation d'apparition d'un nouveau post-it */
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.7) rotate(-5deg); }
  100% { opacity: 1; }
}

/* ============================================================
   PAGE DÉCONNEXION
   ============================================================ */
.deconnexion-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 40px;
}
.deconnexion-page h1 {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--cover-purple);
}
.deconnexion-page p {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--text-dark);
  opacity: 0.8;
}
.btn-retour {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 30px;
  background: var(--cover-purple);
  color: var(--cream);
  border-radius: 30px;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-retour:hover { background: var(--pastel-violet); transform: scale(1.05); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .home-hero { flex-direction: column; padding: 36px 6vw 20px; }
  .video-block { width: 100%; }
  .section-two-col { flex-direction: column; }
  .figuratif-block { width: 100%; }
  .book-nav-left  { left: -38px; }
  .book-nav-right { right: -38px; }
  .open-book { height: min(80vh, 500px); }
  .page-left, .page-right { padding: 24px 18px; }
}

/* ============================================================
   FOOTER – 3 colonnes : Agora Agency | Nav | FCPE
   ============================================================ */
.site-footer {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid rgba(139,122,160,0.18);
  padding: 48px 8vw 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px 32px;
  align-items: start;
}

/* ── Colonne gauche : Agora Agency ── */
.footer-col-agency {}

.footer-agency-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--cover-purple);
  display: block;
  margin-bottom: 10px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 4px;
}
.footer-contact-line:hover { opacity: 1; }
.footer-contact-line .icon { font-size: 0.9rem; opacity: 0.5; }

/* ── Colonne centre : Navigation ── */
.footer-col-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.footer-logo-text {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--cover-purple);
  text-decoration: none;
  opacity: 0.7;
  margin-bottom: 6px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 1; }

.footer-sep {
  color: rgba(139,122,160,0.35);
}

.footer-copy {
  font-family: 'Caveat', cursive;
  font-size: 0.85rem;
  color: var(--text-mid);
  opacity: 0.4;
  text-align: center;
  margin-top: 4px;
}

/* ── Colonne droite : FCPE ── */
.footer-col-fcpe {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-fcpe-logo {
  width: 56px;
  height: 56px;
  background: var(--cover-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: white;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 6px;
  flex-shrink: 0;
  /* Remplacer par <img src="images/logo-fcpe.png"> si disponible */
}
.footer-fcpe-logo:hover { opacity: 0.8; }

.footer-fcpe-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--cover-purple);
  text-align: right;
}

.footer-fcpe-desc {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.55;
  text-align: right;
  max-width: 220px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-col-nav {
    grid-column: 1 / -1;
    order: -1;
    align-items: flex-start;
  }
  .footer-col-fcpe { align-items: flex-start; }
}

@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-fcpe { align-items: flex-start; }
  .footer-fcpe-desc, .footer-fcpe-name { text-align: left; }
}
