/* ==========================================================
   FEUILLE DE STYLE – ISBIPO
   Couleurs et polices : modifiez les variables ci-dessous.
   ========================================================== */
:root {
  --bdx: #701a2b;        /* bordeaux principal */
  --bdx-deep: #45101c;   /* bordeaux foncé (pied de page) */
  --bdx-tint: #f7eef0;   /* fond rosé très clair */
  --yel: #f6b90d;        /* jaune ISBIPO */
  --yel-soft: #fff4cc;
  --ink: #241719;        /* texte */
  --muted: #69585c;      /* texte secondaire */
  --line: #e8dbde;
  --white: #ffffff;
  --wa: #1fa855;

  --f-title: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-text: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 72rem;
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bdx); text-underline-offset: 0.18em; }
a:hover { color: var(--bdx-deep); }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 {
  font-family: var(--f-title);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: 42rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bilingue : on n'affiche que la langue active */
html[lang="fr"] [data-l="en"],
html[lang="en"] [data-l="fr"] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--yel); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.6rem 1.35rem;
  font-family: var(--f-title); font-weight: 700; font-size: 1rem; font-stretch: 105%;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-yellow { background: var(--yel); color: var(--ink); }
.btn-yellow:hover { background: #ffcb35; color: var(--ink); }
.btn-bdx { background: var(--bdx); color: var(--white); }
.btn-bdx:hover { background: var(--bdx-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: auto; height: 50px; }
@media (min-width: 68rem) { .brand img { height: 58px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-title); font-weight: 800; font-stretch: 125%; font-size: 1.3rem; color: var(--bdx); }
.brand-sub { font-size: 0.82rem; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.lang-toggle, .menu-toggle {
  min-width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--bdx); font: 700 0.9rem var(--f-title); cursor: pointer;
}
.lang-toggle:hover, .menu-toggle:hover { border-color: var(--bdx); }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; background: var(--bdx); margin: 0 auto; position: relative; transition: transform .2s;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.nav-open .menu-bars { background: transparent; }
.nav-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: none; }
.nav-open .main-nav {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 4px solid var(--yel);
  padding: 0.5rem 1.25rem 1.25rem; max-height: calc(100vh - 4.5rem); overflow-y: auto;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a {
  display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.1rem;
}
.main-nav a[aria-current="page"] { color: var(--bdx); box-shadow: inset 4px 0 0 var(--yel); padding-left: 0.75rem; }
.nav-cta { margin-top: 1rem; width: 100%; }

@media (min-width: 68rem) {
  .menu-toggle { display: none; }
  .main-nav, .nav-open .main-nav {
    display: flex; align-items: center; gap: 1rem; position: static; padding: 0; border: 0; max-height: none; overflow: visible;
  }
  .main-nav ul { display: flex; gap: 0.1rem; }
  .main-nav li a { border: 0; padding: 0.5rem 0.55rem; font-size: 0.98rem; border-radius: var(--radius); }
  .main-nav li a:hover { background: var(--bdx-tint); }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yel); padding-left: 0.55rem; border-radius: 0; }
  .nav-cta { margin: 0; width: auto; }
  .header-tools { order: 3; }
}

/* ---------- Accueil : héros ---------- */
.hero { background: var(--bdx); color: var(--white); padding: 3rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
.hero-grid > *, .finder > *, .detail-grid > *, .split > *, .contact-grid > * { min-width: 0; }
.hero-slogan {
  font-family: var(--f-title); font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.8rem, 10vw, 5.6rem); line-height: 0.95; letter-spacing: -0.025em;
  color: var(--yel); margin: 0 0 1.5rem; text-wrap: balance;
}
.hero-intro { font-size: 1.2rem; max-width: 34rem; color: #fbeef1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-badge { margin-top: 2rem; font-size: 0.95rem; color: #f0d7dc; padding-left: 0.9rem; border-left: 3px solid var(--yel); }

.finder { background: var(--white); color: var(--ink); border-radius: var(--radius); border-top: 6px solid var(--yel); padding: 1.5rem; }
.finder h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.finder-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scrollbar-width: thin; }
.finder-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.5rem; text-align: left;
  padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 600 0.95rem var(--f-text); cursor: pointer;
}
.finder-tab[aria-selected="true"] { background: var(--bdx); border-color: var(--bdx); color: var(--white); }
.finder-count {
  font: 700 0.8rem var(--f-title); min-width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--yel-soft); color: var(--bdx);
}
.finder-tab[aria-selected="true"] .finder-count { background: var(--yel); color: var(--ink); }
.finder-resume { color: var(--muted); }
.finder-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.finder-panel li a {
  display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.finder-panel li a:hover { color: var(--bdx); text-decoration: underline; }
.finder-all { font-weight: 700; }

@media (min-width: 60rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .finder { display: grid; grid-template-columns: 14rem 1fr; gap: 0 1.5rem; padding: 1.75rem; }
  .finder h2 { grid-column: 1 / -1; }
  .finder-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .finder-tab { justify-content: space-between; width: 100%; }
}

/* ---------- Chiffres clés ---------- */
.stats-band { background: var(--yel); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; padding: 2rem 0; }
.stat { display: flex; flex-direction: column; }
.stat-value { font: 800 clamp(2rem, 5vw, 2.6rem)/1 var(--f-title); font-stretch: 120%; color: var(--bdx-deep); }
.stat-label { font-weight: 600; color: var(--ink); margin-top: 0.3rem; max-width: 15rem; }
@media (min-width: 52rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bdx-tint); }
.section-intro { max-width: 40rem; color: var(--muted); font-size: 1.12rem; margin-bottom: 2rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) {
  .section { padding: 5rem 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-reverse > :first-child { order: 2; }
}

/* Emplacements photos : remplacez par <img src="images/…" alt="…"> */
.photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, #f1e3e6 0 14px, #ead6da 14px 28px);
  display: grid; place-items: center; text-align: center; color: var(--bdx); font-weight: 600; padding: 1rem;
}
.photo::before { content: attr(data-label); max-width: 18rem; background: rgba(255,255,255,.85); padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.95rem; }
.photo:has(img)::before { display: none; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 16 / 9; }

/* Liste des points forts */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { border-left: 4px solid var(--yel); padding-left: 1.1rem; }
.points h3 { margin-bottom: 0.3rem; }
.points p { margin: 0; color: var(--muted); }

/* Actualités */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bdx); }
.news-item { display: grid; gap: 0.3rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.news-date { font: 700 0.95rem var(--f-title); color: var(--bdx); }
.news-item h3 { margin: 0 0 0.3rem; }
.news-item p { margin: 0; color: var(--muted); }
.news-tag { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; background: var(--yel-soft); color: var(--bdx-deep); padding: 0.1rem 0.55rem; border-radius: 3px; }
@media (min-width: 46rem) { .news-item { grid-template-columns: 9rem 1fr; } }

/* Témoignages */
.quotes { display: grid; gap: 2rem; }
.quote { margin: 0; position: relative; padding-top: 2.4rem; }
.quote::before { content: "“"; position: absolute; top: -0.6rem; left: -0.1rem; font: 800 4.5rem/1 var(--f-title); color: var(--yel); }
.quote blockquote { margin: 0 0 0.8rem; font-size: 1.12rem; }
.quote figcaption { font-weight: 700; color: var(--bdx); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 52rem) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--bdx-deep); color: var(--white); padding: 3rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 0.3rem; color: var(--yel); }
.cta-band p { margin: 0; color: #f0d7dc; }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--bdx); color: var(--white); padding: 2.75rem 0 2.5rem; border-bottom: 6px solid var(--yel); }
.page-head h1 { color: var(--white); margin-bottom: 0.4em; }
.page-head .lead, .page-head > .wrap > p { font-size: 1.15rem; max-width: 42rem; color: #fbeef1; }
.page-head a { color: var(--white); }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.head-actions .btn-yellow { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.95rem; margin-bottom: 1rem; color: #f0d7dc; }
.crumbs a { color: #fbeef1; }

/* Codes des domaines */
.code {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.4rem;
  background: var(--bdx); color: var(--yel); border-radius: 4px;
  font: 800 0.9rem var(--f-title); font-stretch: 120%;
}
.code-lg { min-width: 4rem; height: 4rem; font-size: 1.25rem; }

/* Formations */
.domain-jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.domain-jump a {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.domain-jump a:hover { border-color: var(--bdx); }
.domain-jump .code { min-width: 2.2rem; height: 2.2rem; font-size: 0.8rem; }
.domain-block { padding-top: 3rem; }
.domain-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.domain-head h2 { margin-bottom: 0.25rem; }
.domain-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bdx); }
.spec-row a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: center;
  padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.spec-row a:hover { background: var(--bdx-tint); }
.spec-row a:hover .spec-name { color: var(--bdx); text-decoration: underline; }
.spec-name { font-weight: 700; font-size: 1.1rem; }
.spec-row a { grid-template-columns: 1fr; }
.spec-options { font-size: 0.95rem; color: var(--muted); }
.spec-cycles { justify-self: start; margin-top: 0.3rem; font: 700 0.85rem var(--f-title); color: var(--bdx); background: var(--yel-soft); padding: 0.25rem 0.6rem; border-radius: 3px; white-space: nowrap; }
@media (min-width: 46rem) {
  .spec-row a { grid-template-columns: 1fr auto; }
  .spec-options { grid-column: 1; }
  .spec-cycles { grid-column: 2; grid-row: 1 / span 2; justify-self: end; margin: 0; }
}

.cycles-grid { display: grid; gap: 1.5rem; }
.cycle { border: 1px solid var(--line); border-top: 5px solid var(--bdx); border-radius: var(--radius); padding: 1.5rem; background: var(--white); }
.cycle h2 { font-size: 1.4rem; }
.cycle p:last-child { margin: 0; }
@media (min-width: 46rem) { .cycles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .cycles-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.cycle-level { font: 700 0.9rem var(--f-title); color: var(--bdx); margin: 0 0 0.2rem; }
.cycle h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }

/* Parcours BTS/HND -> Licence -> Master */
.pathway { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.pathway li { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--bdx); border-radius: var(--radius); }
.pathway li:nth-child(2) { border-left-color: #a8394d; }
.pathway li:nth-child(3) { border-left-color: var(--yel); }
.pathway strong { font-family: var(--f-title); font-stretch: 110%; font-size: 1.1rem; }
.pathway span { color: var(--muted); }
.pathway .lvl { margin-left: auto; font: 700 0.9rem var(--f-title); color: var(--bdx); white-space: nowrap; }
@media (min-width: 52rem) {
  .pathway { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .pathway li { flex-direction: column; align-items: flex-start; gap: 0.2rem; border-left: 0; border-top: 6px solid var(--bdx); border-radius: 0; }
  .pathway li:nth-child(2) { border-top-color: #a8394d; }
  .pathway li:nth-child(3) { border-top-color: var(--yel); }
  .pathway li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .pathway li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .pathway li + li { border-left: 0; }
  .pathway .lvl { margin: 0.4rem 0 0; }
}

/* Fiche spécialité */
.detail-grid { display: grid; gap: 2.5rem; }
.facts { display: grid; gap: 0; align-self: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bdx-tint); }
.fact { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.fact:last-child { border-bottom: 0; }
.fact-label { font-size: 0.9rem; color: var(--muted); }
.fact-value { font-weight: 700; }
.fact-cycles { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.fact-cycles span { font-weight: 400; color: var(--muted); }
.fact-cycles small { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.detail-body { max-width: 44rem; }
.detail-body h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.detail-body h2:first-child { margin-top: 0; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li { padding-left: 1.6rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; background: var(--yel); border: 2px solid var(--bdx); border-radius: 2px; }
.note { font-size: 0.95rem; color: var(--muted); }
.detail-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--yel-soft); border-radius: var(--radius); }
.detail-cta p { margin: 0; font-weight: 700; font-size: 1.1rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@media (min-width: 52rem) { .detail-grid { grid-template-columns: 18rem 1fr; gap: 4rem; } .facts { position: sticky; top: 6rem; } }

/* Admissions */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bdx); color: var(--yel); font: 800 1.05rem var(--f-title); }
.steps h3 { margin: 0.35rem 0 0.2rem; }
.steps p { margin: 0; color: var(--muted); }
.doc-list { columns: 1; padding-left: 1.2rem; }
.doc-list li { margin-bottom: 0.45rem; }
@media (min-width: 46rem) { .doc-list { columns: 2; column-gap: 3rem; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 32rem; background: var(--white); }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--bdx); color: var(--white); font-family: var(--f-title); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.amount { font-weight: 700; white-space: nowrap; }

/* Formulaires */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--yel); border-radius: var(--radius); padding: 1.5rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 46rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } .form-card { padding: 2rem; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #cdbcc0; border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 2.9rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yel); outline-offset: 0; border-color: var(--bdx); }
.hp { position: absolute; left: -9999px; }
.form-foot { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-foot small { color: var(--muted); }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.is-ok { background: #e6f5ec; color: #14532d; }
.form-status.is-error { background: #fde8e8; color: #7f1d1d; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-info dt { font-weight: 700; color: var(--bdx); }
.contact-info dd { margin: 0.15rem 0 0; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bdx-tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }

/* Galerie, équipe, partenaires */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery .photo { aspect-ratio: 1; font-size: 0.85rem; }
@media (min-width: 52rem) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery .photo:first-child { grid-column: span 2; grid-row: span 2; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2rem 1.5rem; }
.team .photo { aspect-ratio: 1; margin-bottom: 0.75rem; }
.team h3 { margin: 0; font-size: 1.1rem; }
.team p { margin: 0; color: var(--muted); }
.director { display: grid; gap: 2rem; align-items: start; }
.director blockquote { margin: 0; font-size: 1.15rem; }
.director .signature { font-weight: 700; color: var(--bdx); margin-top: 1rem; }
@media (min-width: 52rem) { .director { grid-template-columns: 18rem 1fr; gap: 3.5rem; } }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.logos li { aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center; border: 1px dashed #cdbcc0; border-radius: var(--radius); color: var(--muted); font-size: 0.9rem; padding: 0.5rem; background: var(--white); }
@media (min-width: 46rem) { .logos { grid-template-columns: repeat(4, 1fr); } }
.values { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 46rem) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .values { grid-template-columns: repeat(4, 1fr); } }
.values li { border-top: 4px solid var(--yel); padding-top: 0.9rem; }
.values h3 { margin-bottom: 0.3rem; }
.values p { margin: 0; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bdx-deep); color: #f0d7dc; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo { width: 180px; height: auto; margin-bottom: 1rem; }
.footer-name { font: 800 1.25rem var(--f-title); font-stretch: 115%; color: var(--white); margin-bottom: 0.2rem; }
.footer-slogan { color: var(--yel); font-weight: 700; }
.footer-title { font-family: var(--f-title); font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.socials { display: flex; gap: 0.5rem; }
.socials a, [data-config="reseaux"] a {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.socials a:hover { background: var(--yel); color: var(--ink); }
.socials svg, [data-config="reseaux"] svg { width: 1.25rem; height: 1.25rem; }
[data-config="reseaux"] { display: flex; gap: 0.5rem; }
[data-config="reseaux"] a { background: var(--bdx); color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.92rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(31,168,85,.35);
}
.wa-float:hover { color: var(--white); background: #178f47; }
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.wa-float:focus-visible { outline-color: var(--bdx); }

/* Une seule animation : l'apparition du slogan */
@media (prefers-reduced-motion: no-preference) {
  .hero-slogan { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

@media print {
  .site-header, .wa-float, .site-footer { display: none; }
}


/* Carrousel : plusieurs photos dans un même bloc */
.carrousel { position: relative; }
.photo-multi {
  display: flex; padding: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.photo-multi::-webkit-scrollbar { display: none; }
.photo-multi img {
  position: static; flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; scroll-snap-align: start;
}
.carrousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--bdx);
  font: 700 1.5rem/1 var(--f-title); cursor: pointer;
}
.carrousel-btn:hover { background: var(--yel); color: var(--ink); }
.carrousel-btn.prev { left: 0.5rem; }
.carrousel-btn.next { right: 0.5rem; }