/* =========================================================
   Réussir Chasné 2026 — style.css (base unique)
   Palette STRICTEMENT inspirée du logo (teal/cyan/orange/pink/purple)
   Objectifs : cohérence, accessibilité, responsive, zéro doublon
   ========================================================= */

/* =========================================================
   1) DESIGN TOKENS (variables globales)
   ========================================================= */
:root{
  /* --- COULEURS (logo) --- */
  --teal-600: #4cbab7;
  --cyan-500: #5bc5ce;
  --orange-500:#f4c354;
  --pink-500: #ec5573;
  --purple-600:#966480;
  --cream-200:#f2bfaf;

  /* Déclinaisons très claires (logo -> fond doux) */
  --teal-100: color-mix(in srgb, var(--teal-600) 14%, white);
  --cyan-100: color-mix(in srgb, var(--cyan-500) 14%, white);
  --orange-100: color-mix(in srgb, var(--orange-500) 16%, white);
  --pink-100: color-mix(in srgb, var(--pink-500) 12%, white);
  --purple-100: color-mix(in srgb, var(--purple-600) 12%, white);

  /* --- SURFACES / TEXTE --- */
  --bg: #ffffff;
  --panel: #ffffff;

  --text: #0b1b16;
  --muted: color-mix(in srgb, var(--text) 72%, white);
  --line: color-mix(in srgb, var(--text) 14%, white);

  /* --- ACCENTS --- */
  --accent: var(--teal-600);
  --accent2: var(--cyan-500);
  --accent3: var(--orange-500);
  --accent4: var(--pink-500);
  --accent5: var(--purple-600);

  /* --- UI TOKENS --- */
  --radius: 22px;
  --radius-sm: 18px;

  /* Ombres légères (perf-friendly) */
  --shadow: 0 18px 60px color-mix(in srgb, var(--text) 14%, transparent);
  --shadow2: 0 10px 26px color-mix(in srgb, var(--text) 12%, transparent);

  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue";

  /* Focus accessible */
  --focus: var(--cyan-500);

  /* Fond léger “logo” pour les cards (très subtil) */
  --card-bg: linear-gradient(
    135deg,
    color-mix(in srgb, var(--teal-600) 8%, white),
    color-mix(in srgb, var(--cyan-500) 7%, white),
    color-mix(in srgb, var(--orange-500) 5%, white)
  );

  /* Hauteurs carousel (plus petit + cohérent) */
  --carousel-h-desktop: 240px;
  --carousel-h-tablet: 220px;
  --carousel-h-mobile: 190px;
}

/* =========================================================
   2) RESET / BASE (accessibilité + perf)
   ========================================================= */
*{ box-sizing:border-box; }

html:focus-within{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html:focus-within{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% 0%, color-mix(in srgb, var(--teal-600) 18%, transparent), transparent 58%),
    radial-gradient(900px 520px at 85% 10%, color-mix(in srgb, var(--cyan-500) 18%, transparent), transparent 62%),
    radial-gradient(700px 420px at 50% 0%, color-mix(in srgb, var(--orange-500) 10%, transparent), transparent 60%),
    var(--bg);
  line-height:1.6;
}

img{ max-width:100%; height:auto; }

a{
  color: var(--purple-600);
  text-underline-offset: 3px;
}
a:hover{ text-decoration-thickness:2px; }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* Skip link (accessibilité) */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:18px;
  top:18px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:var(--text);
  color:#fff;
  border-radius:12px;
  z-index:9999;
}

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

/* =========================================================
   3) HEADER / NAV (toutes pages)
   ========================================================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: color-mix(in srgb, white 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
}

/* Logo ONLY */
.brand__text{ display:none !important; }

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:var(--text);
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}

.brand__img{
  height: clamp(92px, 10vw, 170px);
  width:auto;
  display:block;
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
}

/* Social */
.header__social{
  display:flex;
  align-items:center;
  gap:10px;
}

.social{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  background: color-mix(in srgb, white 86%, transparent);
  border:1px solid color-mix(in srgb, var(--text) 12%, white);
  color:var(--text);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 10%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.social:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--text) 14%, transparent);
  background: #fff;
}
.social span[aria-hidden="true"]{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange-500), var(--cyan-500));
}
.social__label{
  font-weight:700;
  font-size:14px;
}

/* Menu mobile */
.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
}

/* Nav desktop */
.nav{
  display:flex;
  gap:8px;
  align-items:center;
  padding:6px;
  border-radius:999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--teal-600) 18%, white),
    color-mix(in srgb, var(--cyan-500) 14%, white)
  );
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
}

.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.nav a:hover{
  color:var(--text);
  background: color-mix(in srgb, white 82%, transparent);
}

.nav a[aria-current="page"]{
  color:var(--text);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--orange-500) 18%, white),
    color-mix(in srgb, var(--pink-500) 14%, white)
  );
  border-color: color-mix(in srgb, var(--text) 12%, white);
}

/* =========================================================
   4) HERO (Accueil + autres pages)
   ========================================================= */
.hero{ padding:26px 0 18px; }

.hero--home .hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}

.hero__content{
  border-radius: var(--radius);
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
  background:
    radial-gradient(900px 520px at 0% 0%, color-mix(in srgb, var(--teal-600) 22%, transparent), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, color-mix(in srgb, var(--cyan-500) 22%, transparent), transparent 58%),
    color-mix(in srgb, white 84%, transparent);
  box-shadow: var(--shadow);
  padding:28px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  color: var(--text);
  background: color-mix(in srgb, white 82%, transparent);
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
}

h1{
  margin:12px 0 10px;
  font-size: clamp(34px, 3.6vw, 58px);
  letter-spacing:-.03em;
  line-height:1.05;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  max-width: 62ch;
}

/* Boutons */
.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--text) 14%, white);
  background:#fff;
  color: var(--text);
  text-decoration:none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 10%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--text) 14%, transparent);
}

.btn--primary{
  background: var(--purple-600);
  border-color: color-mix(in srgb, var(--purple-600) 78%, var(--text));
  color:#fff;
}
.btn--primary:hover{
  background: color-mix(in srgb, var(--purple-600) 86%, black);
}

.btn--outline{
  background: color-mix(in srgb, white 82%, transparent);
  border-color: color-mix(in srgb, var(--teal-600) 55%, white);
}
.btn--ghost{
  background: color-mix(in srgb, var(--teal-600) 10%, white);
  border-color: color-mix(in srgb, var(--cyan-500) 24%, white);
}

/* Priorités */
.priorities{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 8px;
}

.pillcard{
  border-radius: var(--radius-sm);
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
  background: color-mix(in srgb, white 86%, transparent);
  padding:14px;
}
.pillcard h2{
  margin:0 0 6px;
  font-size:16px;
}
.pillcard p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.pillcard:nth-child(1){ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-600) 18%, transparent); }
.pillcard:nth-child(2){ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange-500) 18%, transparent); }
.pillcard:nth-child(3){ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink-500) 16%, transparent); }

/* =========================================================
   5) COMPOSANTS COMMUNS (toutes pages)
   ========================================================= */
.section{ padding:18px 0 8px; }
.section--soft{ padding:18px 0 34px; }

.section__head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.02em;
}
.muted{ color:var(--muted); margin:8px 0 0; }

.grid{ display:grid; gap:14px; }

.gallery{
  grid-template-columns: repeat(3, 1fr);
  margin-top:14px;
}

/* =========================================================
   6) CARDS (photo-card)
   ========================================================= */
.gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
}

/* --- CARD --- */
.photo-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.photo-card__media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Hauteur stable pour éviter CLS */
.photo-card__media .carousel__track {
  aspect-ratio: 16 / 10;
}

.carousel__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel__slide.is-active {
  display: block;
}

.photo-card__body {
  padding: 1rem 1.1rem;
}

/* --- CAROUSEL BUTTONS --- */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}

.carousel__btn.prev { left: 10px; }
.carousel__btn.next { right: 10px; }

.photo-card__media:hover .carousel__btn,
.photo-card__media:focus-within .carousel__btn {
  opacity: 1;
}

.carousel__btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__btn { transition: none; }
}

/* Accessibilité : cibles tactiles suffisantes */
.carousel__dot{
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

/* Le point visuel reste petit, mais la zone cliquable est grande */
.carousel__dot::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
}

.carousel__dot.is-active::before{
  opacity: 1;
}



/* =========================================================
   7) INFO STRIP (Contact / sections CTA)
   ========================================================= */
.info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius: var(--radius);
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--orange-500) 14%, white),
    color-mix(in srgb, var(--teal-600) 14%, white),
    color-mix(in srgb, var(--pink-500) 10%, white)
  );
  box-shadow: var(--shadow);
  padding:18px;
}
.info__text h2{ margin:0; }
.info__cta{ display:flex; gap:10px; flex-wrap:wrap; }

/* =========================================================
   8) FOOTER
   ========================================================= */
.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
  background: color-mix(in srgb, var(--teal-600) 6%, white);
}

.small{
  font-size:12px;
}

/* ✅ Layout: gauche / centre / droite */
.footer__inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
}

/* gauche */
.footer__copy{
  margin:0;
  justify-self:start;
}

/* centre */
.footer__counter{
  margin:0;
  justify-self:center;
  text-align:center;
}

/* droite */
.footer__links{
  margin:0;
  justify-self:end;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* ✅ Pill style (comme ton bouton) */
.footer__counter-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  font-weight:600;
  line-height:1;

  background:#7a5a72;
  color:#fff;

  box-shadow:0 8px 18px rgba(0,0,0,.14);
}

/* ✅ Lien vers les stats publiques */
.footer__statslink{
  color:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer__statslink:hover{
  opacity:.9;
}

/* (si un <strong> est utilisé plus tard) */
.footer__counter-pill strong{
  color:inherit;
  font-weight:800;
}

/* ✅ Responsive: tout centré, empilé */
@media (max-width: 820px){
  .footer__inner{
    grid-template-columns: 1fr;
    justify-items:center;
    text-align:center;
    gap:10px;
  }

  .footer__copy,
  .footer__counter,
  .footer__links{
    justify-self:center;
  }

  .footer__links{
    justify-content:center;
  }
}

/* le pill devient un vrai bouton-lien */
.footer__counter-link{
  text-decoration:none;
  color:#fff;
}

/* feedback hover/focus */
.footer__counter-link:hover{
  opacity:.92;
  transform: translateY(-1px);
}

.footer__counter-link:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

.p-home .footer__links{
  grid-column: 3;
  justify-self: end;
}



/* =========================================================
   9) PAGE ACCUEIL — Profile card (si utilisée)
   ========================================================= */
.hero__side{ border-radius: var(--radius); }

.profile{
  height:100%;
  border-radius: var(--radius);
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
  background: color-mix(in srgb, white 86%, transparent);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-rows: auto 1fr;
}

.profile__media{
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--teal-600) 18%, white),
    color-mix(in srgb, var(--cyan-500) 16%, white),
    color-mix(in srgb, var(--orange-500) 10%, white)
  );
  padding:14px;
}

.profile__media img{
  width:100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  border:1px solid color-mix(in srgb, var(--text) 10%, white);
  display:block;
  background:#fff;
}

.profile__body{ padding:18px 18px 20px; }

.profile__kicker{
  margin:0;
  font-size:12px;
  color: var(--purple-600);
  font-weight:800;
}
.profile__name{
  margin:6px 0 4px;
  font-size:22px;
  letter-spacing:-.01em;
}
.profile__meta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13px;
}
.profile__text{
  margin:0 0 14px;
  color:var(--muted);
}
.profile__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================================================
   10) PAGE PRESSE (Coin presse)
   ========================================================= */
.press{ margin-top: 18px; }

.press__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.press__title{ margin:0; font-size:18px; }
.press__hint{ margin:0; font-size:13px; }

.press__list{
  max-height: 500px;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
  scroll-behavior: smooth;
}

.press__list::-webkit-scrollbar{ width: 10px; }
.press__list::-webkit-scrollbar-track{
  background: color-mix(in srgb, var(--text) 6%, white);
  border-radius: 999px;
}
.press__list::-webkit-scrollbar-thumb{
  background: color-mix(in srgb, var(--purple-600) 45%, white);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--text) 6%, white);
}

.press-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, white);
  background: color-mix(in srgb, white 92%, transparent);
  overflow:hidden;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 10%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}
.press-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 12%, transparent);
}

.press-item__media img{
  width:100%;
  height:100%;
  min-height: 110px;
  object-fit: cover;
  display:block;
  background:#fff;
}

.press-item__media--video{
  display:grid;
  place-items:center;
  background: color-mix(in srgb, var(--text) 3%, white);
}

.press-video-placeholder{
  text-align:center;
  padding: 12px;
}

.press-item__body{
  padding: 12px 12px 12px 0;
}

.press-item__meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 6px;
}

.press-item__source{
  font-weight: 800;
  color: var(--purple-600);
  font-size: 12px;
}

.press-item__date{
  font-size: 12px;
  color: var(--muted);
}

.press-item__title{
  margin:0;
  font-size: 15px;
  line-height: 1.25;
}

/* =========================================================
   11) RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 1100px){
  .hero--home .hero__inner{ grid-template-columns: 1fr; }
  .priorities{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   12) RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 820px){
  .header__social{ display:none; }
  .nav-toggle{ display:inline-flex; }

  .nav{
    display:none;
    position:absolute;
    right:18px;
    top:92px;
    width:min(340px, calc(100vw - 36px));
    flex-direction:column;
    padding:10px;
    border-radius:18px;
    background:#fff;
    box-shadow: var(--shadow);
  }
  .nav.open{ display:flex; }
  .nav a{ width:100%; justify-content:center; }

  .priorities{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }

  h1{ font-size: clamp(32px, 9vw, 44px); }
  .profile__media img{ height: 320px; }

  /* Presse mobile */
  .press__list{ max-height: 320px; }
  .press-item{ grid-template-columns: 1fr; }
  .press-item__body{ padding: 12px; }
  .press-item__body{ padding-top: 10px; }
  .press-item__media img{ height: 180px; min-height: 180px; }
}

.carousel__dot{
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}
.carousel__dot::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
}
.carousel__dot.is-active::before{ opacity: 1; }

/* =========================================================
   PROGRAMME : zoom card au premier plan (modal accessible)
   ========================================================= */
.card-modal[hidden]{ display:none !important; }

.card-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.card-modal__backdrop{
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--text) 55%, transparent);
  backdrop-filter: blur(8px);
}

.card-modal__panel{
  position: relative;
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text) 12%, white);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, white 92%, transparent);
  padding: 18px;
}

.card-modal__close{
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, white);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.card-modal__content .photo-card__body{
  padding: 6px 2px 2px;
}

.card-modal__content h3{ font-size: 20px; }
.card-modal__content p{ font-size: 15px; }

@media (prefers-reduced-motion: reduce){
  .card-modal__backdrop{ backdrop-filter: none; }
}

/* =========================================================
   13) CAROUSEL
   IMPORTANT : on OVERRIDE la règle globale :
   .photo-card__media img { height:220px; object-fit:cover; }
   ========================================================= */
.carousel{ position: relative; }

.carousel__viewport{
  position: relative;
  height: var(--carousel-h-desktop);
  border-radius: 18px;
  overflow: hidden;
  outline: none;
  background: color-mix(in srgb, var(--teal-600) 6%, white);
}

/* Tablet */
@media (max-width: 1100px){
  .carousel__viewport{ height: var(--carousel-h-tablet); }
}
/* Mobile */
@media (max-width: 820px){
  .carousel__viewport{ height: var(--carousel-h-mobile); }
}

.photo-card__media.carousel img.carousel__img{
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  /* Uniformise le “cadre” pour toutes les photos */
  padding: 12px;
  background: color-mix(in srgb, var(--teal-600) 6%, white);

  opacity: 0;
  transition: opacity .2s ease;
}

.photo-card__media.carousel img.carousel__img.is-active{
  opacity: 1;
}

/* Flèches */
.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, white);
  background: color-mix(in srgb, white 88%, transparent);
  color: var(--text);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--text) 14%, transparent);
  cursor: pointer;
  z-index: 2;
}
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }

/* Dots */
.carousel__dots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, white 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, white);
  z-index: 2;
}
.carousel__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, white);
  background: color-mix(in srgb, var(--text) 10%, white);
  cursor: pointer;
}
.carousel__dot.is-active{
  background: var(--purple-600);
  border-color: color-mix(in srgb, var(--purple-600) 60%, white);
}

/* =========================================================
   ÉQUIPE — Grille 3 colonnes + cartes A4 + clic zoom
   ========================================================= */

.gallery.team-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; /* plus compact */
}

/* Tablette */
@media (max-width: 1100px){
  .gallery.team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 820px){
  .gallery.team-grid{ grid-template-columns: 1fr; }
}

/* Carte image-only */
.team-card{ padding: 0; }

/* Bouton cliquable (reset propre) */
.team-card__btn{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* A4 strict (portrait) */
.team-card__img{
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297; /* A4 */
  object-fit: cover;
  display: block;
}

/* Petit effet hover (léger, perf-friendly) */
.team-card__btn:hover .team-card__img{
  filter: saturate(1.02) contrast(1.02);
}

/* Modal image */
.team-modal__content{
  display: grid;
  place-items: center;
}

.team-modal__img{
  width: min(820px, 92vw);
  max-height: 82vh;
  height: auto;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, white);
  background: #fff;
}

/* =========================================================
   ÉQUIPE — Modal : afficher le portrait en A4 (sans déformer)
   ========================================================= */

.team-modal .card-modal__panel{
  /* le panel ne doit pas “forcer” un scroll qui coupe l’image */
  overflow: hidden;       /* au lieu de auto */
  max-height: 92vh;       /* on garde un confort */
  padding: 18px;
}

.team-modal__content{
  display: grid;
  place-items: center;
  height: calc(92vh - 70px); /* réserve de la place pour le bouton X */
}

/* A4 strict dans le modal */
.team-modal__img{
  aspect-ratio: 210 / 297; /* A4 */
  height: 100%;            /* prend toute la hauteur dispo du contenu */
  width: auto;             /* largeur auto => garde le ratio */
  max-width: 92vw;         /* sécurité mobile */
  object-fit: contain;     /* ne coupe pas */
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, white);
  background: #fff;
}

/* Suppléants : même taille visuelle que les colistiers */
.gallery--suppleants .team-card{
  max-width: 360px;   /* ajuste si besoin */
  margin-inline: auto;
}

.profile__text {
  text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

  line-height: 1.65;
}

