/* =====================================================================
   Anaïs Morin — Système de design « Élégance Opéra »
   Refonte 2026 · HTML/CSS/JS sans build
   Pour reskinner le site : modifie simplement les variables ci-dessous.
   ===================================================================== */

/* ----------  Police personnalisée : Flowers of Nineties (Bold Italic)  ---------- */
@font-face {
  font-family: "Flowers of Nineties";
  src: url("../flowers-of-nineties-font/flowersofnineties-bolditalic.woff2") format("woff2"),
       url("../flowers-of-nineties-font/flowersofnineties-bolditalic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flowers of Nineties";
  src: url("../flowers-of-nineties-font/flowersofnineties-bolditalic.woff2") format("woff2"),
       url("../flowers-of-nineties-font/flowersofnineties-bolditalic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ----------  Tokens  ---------- */
:root {
  /* Couleurs */
  --ink:        #16130f;   /* texte principal, presque noir chaud */
  --ink-soft:   #4a443d;   /* texte secondaire */
  --ink-mute:   #6a6058;   /* texte tertiaire / légendes (assombri pour le contraste) */
  --canvas:     #fbf6f5;   /* fond rosé très clair */
  --canvas-alt: #decfd0;   /* rose ballet pastel — style Repetto */
  --card:       #ffffff;
  --rose:       #c2a0a1;   /* accent — rose poudré */
  --rose-deep:  #9a6a6d;
  --gold:       #b69a6b;   /* accent secondaire — champagne */
  --line:       rgba(22, 19, 15, 0.12);
  --line-soft:  rgba(22, 19, 15, 0.07);
  --shadow:     0 24px 60px -28px rgba(22, 19, 15, 0.35);
  --shadow-sm:  0 12px 30px -18px rgba(22, 19, 15, 0.30);

  /* Typographie */
  --font-display: "Flowers of Nineties", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Mesures */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------  Reset léger  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--rose); color: #fff; }

/* ----------  Accessibilité : respecter « mouvement réduit »  ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ----------  Typographie  ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

/* ----------  Layout  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--alt { background: var(--canvas-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin: 1rem 0 0.6rem; }
.section-intro { color: var(--ink-soft); font-size: 1.075rem; max-width: 40rem; }

/* ----------  Boutons  ---------- */
.btn {
  --bg: var(--ink); --fg: var(--canvas); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--canvas); --bd: var(--ink); }
.btn i { font-size: 0.95em; }

/* ----------  Navigation  ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: 1.15rem var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: padding 0.45s var(--ease);
}
.site-header.scrolled .nav-inner { padding-block: 0.85rem; }
.brand { justify-self: start; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.85rem; justify-self: center; }
.nav-link {
  position: relative; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft);
  padding-block: 0.3rem; transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 0; height: 1px;
  background: var(--rose-deep); transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); margin-inline: auto; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------  Hero  ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(115% 90% at 82% 12%, rgba(222, 207, 208, 0.55), transparent 60%),
    radial-gradient(95% 85% at 10% 95%, rgba(222, 207, 208, 0.35), transparent 65%),
    linear-gradient(160deg, #fbf6f5 0%, #e8d9da 60%, #decfd0 100%);
}
.hero-bg::after {
  /* grain subtil */
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
/* Fond hero en couches : remplissage flou (aucune zone vide) + sujet net entier + voile */
.hero-bg__blur, .hero-bg__photo, .hero-bg__veil { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.hero-bg.hero-has-photo .hero-bg__blur,
.hero-bg.hero-has-photo .hero-bg__photo,
.hero-bg.hero-has-photo .hero-bg__veil { opacity: 1; }
.hero-bg__blur { inset: -6%; background-size: cover; background-position: center; background-repeat: no-repeat; filter: blur(30px) saturate(1.06); transform: scale(1.12); }
.hero-bg__photo { background-size: contain; background-position: center right; background-repeat: no-repeat; }
.hero-bg__veil { background: linear-gradient(95deg, rgba(249, 243, 242, 0.74) 0%, rgba(249, 243, 242, 0.45) 34%, rgba(249, 243, 242, 0.15) 64%, rgba(249, 243, 242, 0.02) 100%); }

.hero-monogram {
  position: absolute; right: -2%; bottom: -8%; z-index: 0;
  font-family: var(--font-display); font-size: clamp(18rem, 42vw, 40rem); line-height: 0.8;
  color: rgba(22, 19, 15, 0.04); font-weight: 600; user-select: none; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 8rem 5rem; }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-name { font-size: clamp(3.6rem, 1.5rem + 9vw, 8.5rem); letter-spacing: 0.005em; }
.hero-role { font-family: var(--font-body); font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1.2rem; }.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 1;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll i { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ----------  À propos  ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.lang-toggle { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang-btn { padding: 0.35rem 0.85rem; background: transparent; border: 0; cursor: pointer; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-mute); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.lang-btn.active { background: var(--ink); color: var(--canvas); }
.nav-lang { flex: 0 0 auto; justify-self: end; }
@media (max-width: 720px) { .nav-lang { margin-left: auto; margin-right: 0.5rem; } }
.bio[hidden] { display: none; }
.about-body .lead { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; color: var(--ink); margin-bottom: 1.4rem; }
.about-body p { color: var(--ink-soft); margin-bottom: 1.1rem; }
/* ----------  Timeline / Parcours  ---------- */
.timeline { position: relative; max-width: 50rem; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 7.5rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.2rem; padding-block: 1.6rem; }
.timeline-item .t-year { text-align: right; font-family: var(--font-display); font-size: 1.25rem; color: var(--rose-deep); padding-top: 0.1rem; }
.timeline-item .t-body { position: relative; padding-left: 1.8rem; }
.timeline-item .t-body::before { content: ""; position: absolute; left: -0.34rem; top: 0.55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--rose); }
.section--alt .timeline-item .t-body::before { background: var(--canvas-alt); }
.timeline-item h3 { font-size: 1.35rem; }
.timeline-item .t-place { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0.25rem 0 0.6rem; }
.timeline-item p { color: var(--ink-soft); }

/* ----------  Répertoire  ---------- */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.rep-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.8rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.rep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rep-card .rep-work { font-size: 1.5rem; }
.rep-card .rep-role { color: var(--rose-deep); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; margin-top: 0.2rem; }
.rep-card .rep-meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.9rem; }

/* ----------  Répertoire : saisons, cartes-affiches & modale  ---------- */
.season { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.season:last-child { margin-bottom: 0; }
.season-title { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); color: var(--rose-deep); margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.repertoire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 250px)); gap: 1.2rem; }

.prod-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); background: #decfd0; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-card:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.prod-card--static { cursor: default; }
.prod-card--static:hover { transform: none; box-shadow: var(--shadow-sm); }
.prod-card__label { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose-deep); }
.prod-card__title { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.15rem); line-height: 1.06; margin: 0.35rem 0 0.55rem; }
.prod-card__choreographer { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.45rem; line-height: 1.2; color: var(--rose-deep); }
.prod-card__role { margin-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.prod-card--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; aspect-ratio: 4 / 5; border: 1px dashed rgba(22,19,15,0.22); border-radius: var(--radius-lg); background: rgba(255,255,255,0.35); color: var(--ink-mute); cursor: default; box-shadow: none; }
.prod-card--empty i { font-size: 1.3rem; opacity: 0.5; }
.prod-card--empty span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }

.prod-modal { position: fixed; inset: 0; z-index: 220; display: none; place-items: center; padding: 4vh 1.25rem; }
.prod-modal.open { display: grid; }
.prod-modal__backdrop { position: absolute; inset: 0; background: rgba(16,13,10,0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.prod-modal__card { position: relative; z-index: 1; width: min(680px, 100%); max-height: 90vh; overflow-y: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); isolation: isolate; }
.prod-modal__media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(155deg, #6a4a4d, #2a1e1f); }
.prod-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-modal__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(16,13,10,0.94) 8%, rgba(16,13,10,0.6) 55%, rgba(16,13,10,0.5) 100%); }
.prod-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); background: rgba(0,0,0,0.3); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background 0.3s var(--ease); }
.prod-modal__close:hover { background: rgba(0,0,0,0.55); }
.prod-modal__content { position: relative; z-index: 2; color: #fff; padding: clamp(1.8rem, 5vw, 3.2rem); min-height: min(60vh, 480px); display: flex; flex-direction: column; justify-content: flex-end; }
.prod-modal__label { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.prod-modal__title { color: #fff; font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.05; margin: 0.3rem 0 0.1rem; }
.prod-modal__subtitle { font-family: var(--font-display); font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 0.7rem; }
.prod-modal__team { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 0.2rem; }
.prod-modal__team li { font-size: 0.88rem; color: rgba(255,255,255,0.82); }
.prod-modal__synopsis { margin-top: 1rem; font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.88); }
.prod-modal__role { margin-top: 1.1rem; }
.prod-modal__role span { display: block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.25rem; }
.prod-modal__role strong { font-size: 1rem; font-weight: 600; color: #fff; }

/* Carte de production sans image (fond dégradé rosé profond) */
.prod-card__noimg { background: linear-gradient(155deg, #b98a86 0%, #7d5658 55%, #43302f 100%); }

/* Répertoire « École de Danse » en liste */
.formation-list { max-width: 52rem; }
.formation-group { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.4rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.formation-group:first-child { border-top: 0; padding-top: 0; }
.formation-group--nohdr { grid-template-columns: 1fr; }
.formation-year { font-family: var(--font-display); font-size: 1.3rem; color: var(--rose-deep); }
.formation-event { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7rem; }
.formation-entry { padding: 0.4rem 0; }
.fe-work { font-weight: 600; color: var(--ink); }
.fe-author { color: var(--ink-soft); }
.fe-event { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-deep); }
.fe-roles { display: block; margin-top: 0.15rem; color: var(--ink-soft); font-style: italic; font-size: 0.92rem; }
@media (max-width: 560px) { .formation-group { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ===========  Mode édition « en contexte »  =========== */
body.edit-mode [data-i18n], body.edit-mode [data-ident] { outline: 1px dashed rgba(154, 106, 109, 0.45); outline-offset: 3px; border-radius: 3px; cursor: text; transition: outline-color 0.2s, background 0.2s; }
body.edit-mode [data-i18n]:hover, body.edit-mode [data-ident]:hover { outline-color: var(--rose-deep); background: rgba(185, 138, 134, 0.08); }
body.edit-mode [data-i18n]:focus, body.edit-mode [data-ident]:focus { outline: 2px solid var(--rose-deep); background: rgba(185, 138, 134, 0.14); }

body.edit-mode .prod-card { cursor: default; }
body.edit-mode .prod-card [data-field] { cursor: text; }
body.edit-mode .prod-card [data-field]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }
body.edit-mode [data-field]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
body:not(.edit-mode) .prod-card__label:empty,
body:not(.edit-mode) .prod-card__choreographer:empty,
body:not(.edit-mode) .prod-card__role:empty { display: none; }

.prod-card__del { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 6; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22, 19, 15, 0.65); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
body.edit-mode .prod-card:hover .prod-card__del { display: flex; }
.prod-card__del:hover { background: #a8443c; }

.prod-card--add { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; aspect-ratio: 4 / 5; border: 2px dashed var(--rose-deep); border-radius: var(--radius-lg); background: rgba(222, 207, 208, 0.45); color: var(--rose-deep); cursor: pointer; box-shadow: none; }
body.edit-mode .prod-card--add { display: flex; }
.prod-card--add .plus { font-size: 2.6rem; line-height: 1; font-weight: 300; }
.prod-card--add .lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.prod-card--add:hover { background: rgba(222, 207, 208, 0.72); transform: none; box-shadow: none; }

/* Barre flottante du mode édition */
.edit-toolbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.4rem; z-index: 300; display: none; gap: 0.45rem; align-items: center; background: rgba(22, 19, 15, 0.97); color: #fff; padding: 0.5rem 0.6rem 0.5rem 0.95rem; border-radius: 100px; box-shadow: 0 20px 55px -20px rgba(22, 19, 15, 0.65); font-size: 0.82rem; backdrop-filter: blur(8px); }
.edit-toolbar .et-status { display: inline-flex; align-items: center; gap: 0.5rem; }
.edit-toolbar .et-dot { width: 8px; height: 8px; border-radius: 50%; background: #8bbf7e; animation: etpulse 2.6s var(--ease) infinite; }
@keyframes etpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 191, 126, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(139, 191, 126, 0); } }
.edit-toolbar .et-label { letter-spacing: 0.03em; white-space: nowrap; min-width: 6.4rem; }
.edit-toolbar .et-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.18); margin: 0 0.1rem; }
.edit-toolbar button { border: 0; border-radius: 100px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.76rem; font-weight: 600; font-family: var(--font-body); transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.edit-toolbar .et-help { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.13); color: #fff; font-weight: 700; }
.edit-toolbar .et-help:hover { background: rgba(255, 255, 255, 0.24); }
.edit-toolbar .et-main { background: #fff; color: var(--ink); }
.edit-toolbar .et-main:hover { transform: translateY(-1px); }
.edit-toolbar .et-reset { background: transparent; color: #e7b7b1; border: 1px solid rgba(255, 255, 255, 0.22); }
.edit-toolbar .et-reset:hover { background: rgba(231, 183, 177, 0.14); }
.edit-toolbar .et-quit { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.38); }
.edit-toolbar .et-quit:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 600px) { .edit-toolbar { font-size: 0.74rem; flex-wrap: wrap; max-width: 94vw; justify-content: center; bottom: 0.8rem; } .edit-toolbar .et-label { min-width: 0; } }

/* Panneau d'aide « mode d'emploi » */
.edit-help { position: fixed; left: 50%; bottom: 5.4rem; transform: translateX(-50%) translateY(12px); width: min(92vw, 490px); z-index: 300; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 32px 75px -26px rgba(22, 19, 15, 0.55); padding: 1.5rem 1.6rem; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.edit-help.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.edit-help h4 { font-family: var(--font-display); font-size: 1.4rem; color: var(--rose-deep); margin-bottom: 0.95rem; }
.edit-help ul { display: grid; gap: 0.55rem; }
.edit-help li { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); padding-left: 1.15rem; position: relative; }
.edit-help li::before { content: "•"; position: absolute; left: 0; color: var(--rose-deep); font-weight: 700; }
.edit-help b { color: var(--ink); }
.edit-help .eh-close { margin-top: 1.2rem; width: 100%; padding: 0.7rem; border: 0; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; }
.edit-help .eh-close:hover { background: var(--rose-deep); }

/* Cadre discret signalant que l'on est en mode édition */
body.edit-mode::after { content: ""; position: fixed; inset: 0; border: 2px solid rgba(154, 106, 109, 0.45); pointer-events: none; z-index: 290; }

/* Galerie — édition */
.gal-del-btn { position: absolute; top: 0.4rem; right: 0.4rem; z-index: 4; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(22,19,15,0.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
body.edit-mode .gallery-item:hover .gal-del-btn { display: flex; }
.gal-del-btn:hover { background: #a8443c; }
.gallery-add { display: none; align-items: center; justify-content: center; aspect-ratio: 3 / 4; width: 100%; border: 2px dashed var(--rose-deep); border-radius: var(--radius); background: rgba(222,207,208,0.4); color: var(--rose-deep); cursor: pointer; break-inside: avoid; margin-bottom: 0.9rem; }
body.edit-mode .gallery-add { display: flex; }
.gallery-add .plus { font-size: 2.4rem; font-weight: 300; line-height: 1; }
.gallery-add:hover { background: rgba(222,207,208,0.65); }

/* Actualités — édition */
.actu-card { position: relative; }
.actu-del { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 6; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22,19,15,0.65); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
body.edit-mode .actu-card:hover .actu-del { display: flex; }
.actu-del:hover { background: #a8443c; }
.actu-img-btn { position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(22,19,15,0.6); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; }
body.edit-mode .actu-img-btn { display: flex; }
.actu-card.actu-add { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-height: 220px; border: 2px dashed var(--rose-deep); border-radius: var(--radius-lg); background: rgba(222,207,208,0.45); color: var(--rose-deep); cursor: pointer; box-shadow: none; }
body.edit-mode .actu-card.actu-add { display: flex; }
.actu-add .plus { font-size: 2.4rem; font-weight: 300; line-height: 1; }
.actu-add .lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
body.edit-mode .actu-card [data-afield] { cursor: text; }
body.edit-mode .actu-card [data-afield]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }
body.edit-mode [data-afield]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
.actus-empty { color: var(--ink-mute); font-style: italic; grid-column: 1 / -1; }
body.edit-mode .actus-empty { display: none; }

/* Carte répertoire — bouton fiche */
.prod-card__fiche { position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 6; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(22,19,15,0.55); color: #fff; font-size: 0.9rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; }
body.edit-mode .prod-card:hover .prod-card__fiche { display: flex; }
.prod-card__fiche:hover { background: var(--rose-deep); }

/* ----------  Glisser-déposer + barre de format + photo de fond hero (mode édition)  ---------- */
body.edit-mode .prod-card[draggable="true"] { cursor: grab; }
body.edit-mode .gallery-item { cursor: grab; }
.prod-card.dragging, .gallery-item.dragging { opacity: 0.4; }
.prod-card.drop-before { box-shadow: inset 4px 0 0 var(--rose-deep); }
.prod-card.drop-after { box-shadow: inset -4px 0 0 var(--rose-deep); }
.gallery-item.drop-before, .gallery-item.drop-after { outline: 3px solid var(--rose-deep); outline-offset: -3px; }

.fmt-bar { position: absolute; z-index: 1200; display: none; gap: 3px; padding: 4px; background: #161310; border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,0.30); }
.fmt-bar button { min-width: 30px; height: 28px; padding: 0 8px; border: 0; background: transparent; color: #fff; font-size: 0.82rem; border-radius: 6px; cursor: pointer; line-height: 1; font-family: inherit; }
.fmt-bar button:hover { background: rgba(255,255,255,0.16); }
.fmt-bar button.on { background: var(--rose-deep); color: #fff; }

.hero-edit { position: absolute; top: 86px; right: 22px; z-index: 6; display: none; gap: 8px; }
body.edit-mode .hero-edit { display: flex; }
.hero-edit button { border: 0; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.03em; padding: 8px 13px; border-radius: 999px; background: rgba(22,19,15,0.74); color: #fff; }
.hero-edit button:hover { background: var(--rose-deep); }

/* ----------  Répertoire en liste : édition en contexte  ---------- */
.fe-sep { color: var(--ink-soft); }
.fe-del, .fe-add, .fe-dup, .group-add, .season-add { display: none; }
body:not(.edit-mode) .fe-author:empty,
body:not(.edit-mode) .fe-roles:empty,
body:not(.edit-mode) .formation-event:empty { display: none; }
body:not(.edit-mode) .formation-entry:not(:has(.fe-author:not(:empty))) .fe-sep { display: none; }
body.edit-mode [data-lf]:empty::before,
body.edit-mode [data-lgfield]:empty::before,
body.edit-mode [data-sfield]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
body.edit-mode [data-lf]:hover,
body.edit-mode [data-lgfield]:hover,
body.edit-mode [data-sfield]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }
body.edit-mode .formation-entry { position: relative; padding-right: 3.9rem; cursor: grab; }
body.edit-mode .formation-entry:hover { background: rgba(222, 207, 208, 0.28); border-radius: 6px; }
body.edit-mode .fe-del { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 0.3rem; right: 0.2rem; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.5); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
body.edit-mode .fe-del:hover { background: #a8443c; }
body.edit-mode .fe-add, body.edit-mode .group-add, body.edit-mode .season-add { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.7rem; padding: 0.4rem 0.85rem; border: 1px dashed var(--rose-deep); border-radius: 999px; background: rgba(222, 207, 208, 0.4); color: var(--rose-deep); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
body.edit-mode .group-add { margin-top: 0.9rem; border-style: solid; }
body.edit-mode .season-add { margin-top: 1.6rem; font-size: 0.74rem; padding: 0.55rem 1.1rem; border-width: 2px; }
body.edit-mode .group-add:hover, body.edit-mode .season-add:hover { background: rgba(222, 207, 208, 0.7); }
body.edit-mode .fe-dup { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 0.3rem; right: 1.9rem; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.5); color: #fff; font-size: 0.8rem; line-height: 1; cursor: pointer; }
body.edit-mode .fe-dup:hover { background: var(--rose-deep); }
body.edit-mode .fe-add:hover { background: rgba(222, 207, 208, 0.7); }
body.edit-mode .fe-add .plus { font-size: 1.1rem; line-height: 1; }
.formation-entry.dragging { opacity: 0.4; }
.formation-entry.drop-before { box-shadow: inset 0 3px 0 var(--rose-deep); }
.formation-entry.drop-after { box-shadow: inset 0 -3px 0 var(--rose-deep); }

/* ----------  Parcours / timeline : édition en contexte  ---------- */
.ti-del, .ti-add { display: none; }
body.edit-mode .timeline-item { cursor: grab; padding-right: 2.2rem; }
body.edit-mode .timeline-item:hover { background: rgba(222, 207, 208, 0.18); border-radius: 8px; }
body.edit-mode [data-pf] { cursor: text; }
body.edit-mode [data-pf]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
body.edit-mode [data-pf]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }
body.edit-mode .ti-del { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 1.4rem; right: 0.2rem; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.5); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; z-index: 3; }
body.edit-mode .ti-del:hover { background: #a8443c; }
body.edit-mode .ti-add { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.5rem 1.05rem; border: 1px dashed var(--rose-deep); border-radius: 999px; background: rgba(222, 207, 208, 0.4); color: var(--rose-deep); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
body.edit-mode .ti-add:hover { background: rgba(222, 207, 208, 0.7); }
.timeline-item.dragging { opacity: 0.4; }
.timeline-item.drop-before { box-shadow: inset 0 3px 0 var(--rose-deep); }
.timeline-item.drop-after { box-shadow: inset 0 -3px 0 var(--rose-deep); }

/* ----------  Presse  ---------- */
.presse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.presse-card { position: relative; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.presse-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.presse-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.presse-outlet { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; color: var(--rose-deep); }
.presse-date { font-size: 0.78rem; color: var(--ink-mute); }
.presse-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.presse-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink); padding-top: 0.5rem; }
.presse-link i { transition: transform 0.3s var(--ease); }
.presse-card:hover .presse-link i { transform: translateX(4px); }
.presse-empty { color: var(--ink-mute); }
.presse-del, .presse-link-btn, .presse-add { display: none; }
body.edit-mode .presse-del { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.55); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
body.edit-mode .presse-del:hover { background: #a8443c; }
body.edit-mode .presse-link-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 40px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.5); color: #fff; font-size: 0.72rem; cursor: pointer; }
body.edit-mode .presse-link-btn:hover { background: var(--rose-deep); }
body.edit-mode .presse-add { display: inline-flex; align-items: center; gap: 0.4rem; grid-column: 1 / -1; justify-self: start; margin-top: 0.4rem; padding: 0.5rem 1.05rem; border: 1px dashed var(--rose-deep); border-radius: 999px; background: rgba(222, 207, 208, 0.4); color: var(--rose-deep); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
body.edit-mode .presse-add:hover { background: rgba(222, 207, 208, 0.7); }
body.edit-mode [data-prf]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
body.edit-mode [data-prf]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }

/* ----------  Aperçu Instagram (sous « Suivez Anaïs sur Instagram »)  ---------- */
.insta-preview { margin: 1.4rem auto 1.6rem; }
/* TEMPORAIRE : rendu Instagram masqué (on garde seulement le bouton « Suivre sur Instagram »).
   Pour le réafficher : supprimer la ligne ci-dessous. */
#insta-preview { display: none; }
.insta-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 30rem; }
.insta-mode-embed { display: block; max-width: min(100%, 920px); }
.insta-embed-wrap { width: 100%; }
.insta-embed-wrap iframe { width: 100%; min-height: 360px; border: 0; border-radius: 12px; display: block; }
.insta-mode-posts { display: block; max-width: min(100%, 960px); }
.insta-posts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.insta-post { position: relative; width: 328px; max-width: 100%; }
.insta-post .instagram-media { margin: 0 auto !important; min-width: 0 !important; }
.insta-item { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.insta-item:hover img { transform: scale(1.06); }
.insta-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; background: rgba(22, 19, 15, 0); opacity: 0; transition: opacity 0.35s var(--ease), background 0.35s var(--ease); }
.insta-item:hover .insta-ic { opacity: 1; background: rgba(22, 19, 15, 0.3); }
.insta-embed { width: 100%; min-height: 340px; border: 0; border-radius: 12px; display: block; background: rgba(222, 207, 208, 0.25); }
.insta-del, .insta-add, .insta-addpost, .insta-config { display: none; }
body.edit-mode .insta-item { cursor: grab; }
body.edit-mode .insta-del { display: flex; align-items: center; justify-content: center; position: absolute; top: 6px; right: 6px; z-index: 4; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.65); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
body.edit-mode .insta-del:hover { background: #a8443c; }
.insta-add { aspect-ratio: 1 / 1; border: 2px dashed var(--rose-deep); border-radius: 10px; background: rgba(222, 207, 208, 0.45); color: var(--rose-deep); cursor: pointer; align-items: center; justify-content: center; }
body.edit-mode .insta-add { display: flex; }
.insta-add .plus { font-size: 2rem; font-weight: 300; line-height: 1; }
body.edit-mode .insta-addpost, body.edit-mode .insta-config { display: flex; align-items: center; gap: 0.45rem; width: fit-content; grid-column: 1 / -1; justify-self: center; margin: 0.7rem auto 0; padding: 0.55rem 1.1rem; border: 1px dashed var(--rose-deep); border-radius: 999px; background: rgba(222, 207, 208, 0.4); color: var(--rose-deep); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
body.edit-mode .insta-addpost:hover, body.edit-mode .insta-config:hover { background: rgba(222, 207, 208, 0.7); }

/* ----------  Cartes de publications Instagram (aperçu manuel, sans widget/API)  ---------- */
.insta-mode-cards { display: block; max-width: min(100%, 920px); }
.ig-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ig-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.ig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ig-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.ig-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.ig-card:hover .ig-card__media img { transform: scale(1.05); }
.ig-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #decfd0, #c2a0a2); color: #fff; font-size: 2rem; }
.ig-card__ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: #fff; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(22, 19, 15, 0.34); opacity: 0; transition: opacity 0.35s var(--ease); }
.ig-card:hover .ig-card__ov { opacity: 1; }
.ig-card__body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.ig-card__caption { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-card__date { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.ig-del, .ig-img-btn, .ig-link-btn { display: none; }
body.edit-mode .ig-card { cursor: default; }
body.edit-mode .ig-card__ov { display: none; }
body.edit-mode .ig-card__caption { -webkit-line-clamp: unset; display: block; overflow: visible; }
body.edit-mode [data-igf] { cursor: text; }
body.edit-mode [data-igf]:empty::before { content: attr(data-ph); color: var(--ink-mute); opacity: 0.55; }
body.edit-mode [data-igf]:hover { outline: 1px dashed var(--rose-deep); outline-offset: 2px; border-radius: 3px; }
body.edit-mode .ig-del { display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 8px; z-index: 4; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.65); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
body.edit-mode .ig-del:hover { background: #a8443c; }
body.edit-mode .ig-img-btn, body.edit-mode .ig-link-btn { display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; z-index: 4; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 19, 15, 0.6); color: #fff; font-size: 0.72rem; cursor: pointer; }
body.edit-mode .ig-img-btn { left: 8px; }
body.edit-mode .ig-link-btn { left: 40px; }
body.edit-mode .ig-img-btn:hover, body.edit-mode .ig-link-btn:hover { background: var(--rose-deep); }
@media (max-width: 700px) { .ig-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .ig-cards { grid-template-columns: 1fr; } }
.insta-item.dragging { opacity: 0.4; }
.insta-item.drop-before, .insta-item.drop-after { outline: 3px solid var(--rose-deep); outline-offset: -3px; }

/* Fiche détaillée — barre d'édition dans la modale */
.pm-editbar { display: none; gap: 0.6rem; margin-top: 1.3rem; }
.pm-editbar button { border: 0; border-radius: 100px; padding: 0.6rem 1.1rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.pm-editbar .pm-img { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.pm-editbar .pm-save { background: #fff; color: var(--ink); }
body.edit-mode .prod-modal__synopsis[contenteditable="true"], body.edit-mode .prod-modal__team[contenteditable="true"], body.edit-mode .prod-modal__title[contenteditable="true"] { outline: 1px dashed rgba(255,255,255,0.5); outline-offset: 3px; border-radius: 3px; }

/* Lien footer */
.footer-base a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Accessibilité : focus clavier visible + lien d'évitement */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 400; background: var(--ink); color: var(--canvas); padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px; font-size: 0.85rem; font-weight: 600; transition: top 0.25s var(--ease); }
.skip-link:focus { top: 0; }

/* Connexion à l'édition en ligne */
.edit-login { position: fixed; inset: 0; z-index: 340; display: none; place-items: center; background: rgba(16,13,10,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 1.25rem; }
.edit-login.show { display: grid; }
.edit-login__card { background: var(--card); width: min(360px, 92vw); padding: 2rem; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.9rem; }
.edit-login__card h3 { font-size: 1.7rem; text-align: center; margin-bottom: 0.2rem; }
.edit-login__card label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.edit-login__card input { padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--canvas); }
.edit-login__err { color: #a8443c; font-size: 0.85rem; min-height: 1em; margin: 0; }
.edit-login__btns { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.3rem; }
.edit-login__btns button { border: 0; border-radius: 100px; padding: 0.6rem 1.2rem; font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: var(--font-body); }
.edit-login__btns .el-cancel { background: transparent; color: var(--ink-soft); }
.edit-login__btns .el-go { background: var(--ink); color: var(--canvas); }
.edit-toolbar .et-logout { background: transparent; color: #e7b7b1; border: 1px solid rgba(255,255,255,0.25); }

/* ----------  Distinction (Concours)  ---------- */
.award { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.award-media { aspect-ratio: 4 / 3; height: 100%; }
.award-media img { width: 100%; height: 100%; object-fit: cover; }
.award-body { padding: clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem) 0; }
.award-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.9rem; }
.award-body h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.award-body p { color: var(--ink-soft); margin-top: 1rem; }

/* ----------  Actualités  ---------- */
.actus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.actu-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.actu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.actu-media { aspect-ratio: 16 / 10; overflow: hidden; }
.actu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.actu-card:hover .actu-media img { transform: scale(1.05); }
.actu-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.actu-tags { display: flex; align-items: center; gap: 0.8rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7rem; }
.actu-cat { color: var(--rose-deep); font-weight: 600; }
.actu-body h3 { font-size: 1.5rem; }
.actu-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.6rem; }
.actu-more { margin-top: auto; padding-top: 1.1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; }
.actu-more i { transition: transform 0.35s var(--ease); }
.actu-card:hover .actu-more i { transform: translateX(4px); }

.social-cta { margin-top: 3rem; text-align: center; }
.social-cta p { color: var(--ink-soft); margin-bottom: 1.2rem; }

/* ----------  Galerie  ---------- */
.gallery-grid { columns: 240px; column-gap: 0.9rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--canvas-alt); break-inside: avoid; margin-bottom: 0.9rem; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 19, 15, 0.32), rgba(22, 19, 15, 0) 55%); opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.gallery-item:hover::after { opacity: 1; }
body.edit-mode .gallery-item::after { display: none; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.9rem;
  font-size: 0.8rem; color: #fff; letter-spacing: 0.04em;
  background: linear-gradient(to top, rgba(22,19,15,0.7), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ----------  Bouton « revenir en haut »  ---------- */
.to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--canvas); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--rose-deep); }
.to-top:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

/* ----------  Placeholder image élégant  ---------- */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #ece0e1, #ddcccd);
  color: rgba(22, 19, 15, 0.32);
}
.ph::before { content: attr(data-mono); font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; }
.ph small { position: absolute; bottom: 0.8rem; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ----------  Lightbox  ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 5vw; background: rgba(16, 13, 10, 0.92); backdrop-filter: blur(4px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; background: none; color: #fff; font-size: 1.3rem; cursor: pointer; transition: background 0.3s var(--ease); }
.lightbox-close:hover { background: rgba(255,255,255,0.12); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.25s var(--ease); }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lb-prev { left: clamp(0.6rem, 3vw, 2.5rem); }
.lb-next { right: clamp(0.6rem, 3vw, 2.5rem); }
@media (max-width: 560px) { .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; } }

/* ----------  Contact  ---------- */
.contact-wrap { max-width: 600px; margin-inline: auto; text-align: center; }
.contact-head { max-width: none; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.contact-head .section-intro { margin-inline: auto; }
.contact-foot { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem 1.2rem; color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.contact-meta a { color: var(--ink-soft); }
.contact-meta a:hover { color: var(--rose-deep); }.social-links { display: flex; gap: 0.8rem; }
.social-links a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease); }
.social-links a:hover { background: var(--ink); color: var(--canvas); transform: translateY(-3px); }

.contact-form { background: var(--card); padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: left; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--canvas);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(185, 138, 134, 0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236a6058' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 0.72rem; }
/* Boutons radio « Vous êtes » */
.field--radio { border: 0; padding: 0; margin: 0 0 1.2rem; }
.field--radio legend { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.6rem; padding: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.radio { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; }
.radio input[type="radio"] { width: auto; margin: 0; accent-color: var(--rose-deep); cursor: pointer; }
/* Champ anti-spam (invisible) */
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.4rem; }
.form-feedback { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-feedback.show { display: block; }
.form-feedback.ok { background: rgba(120, 150, 110, 0.14); color: #4a6440; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--ink); color: #d9d2c8; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #a99f92; max-width: 26ch; margin-top: 0.8rem; font-size: 0.95rem; }
.site-footer nav a, .footer-contact a, .footer-contact span { color: #c4bbae; display: block; padding-block: 0.3rem; transition: color 0.3s var(--ease); font-size: 0.92rem; }
.site-footer nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 0.5rem; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; color: #fff; transition: background 0.35s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: #9b9184; }

/* ----------  Animations au scroll  ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ----------  Responsive  ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .award { grid-template-columns: 1fr; }
  .award-media { aspect-ratio: 16 / 10; }
  .award-body { padding: 0 clamp(1.6rem, 5vw, 2.4rem) clamp(1.8rem, 6vw, 2.6rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 4rem 2.4rem; background: var(--canvas);
    box-shadow: -20px 0 60px -30px rgba(22,19,15,0.5);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.15rem; }
  .timeline::before { left: 0.3rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 1.8rem; }
  .timeline-item .t-year { text-align: left; }
  .timeline-item .t-body { padding-left: 0; }
  .timeline-item .t-body::before { left: -1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------  Préférences de mouvement réduit  ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
