/* Socle piste C : lien d'Ã©vitement, en-tÃªte, pied de page, onglet ThÃ¨me.
   Maquettes : refonte/maquettes/C-Header.dc.html et C-Footer.dc.html. */

/* Base des pages refaites (sans site.css) */
.c-main { display: block; min-height: 60vh; }
.c-main *, .c-main *::before, .c-main *::after { box-sizing: border-box; }
.c-main a { color: var(--fg); }
.c-main a:hover { color: var(--acc); }
.c-main img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html:has(.c-main) { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ArrivÃ©e d'une page : transition de vue entre documents si possible, sinon simple fondu */
@supports not (view-transition-name: a) {
  .c-main { animation: c-fade .35s var(--ease-c) both; }
}
@keyframes c-fade { from { opacity: 0; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

.c-wrap { max-width: 1440px; margin: 0 auto; padding-inline: 64px; box-sizing: border-box; }
@media (max-width: 1023px) { .c-wrap { padding-inline: 16px; } }

.c-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }

/* Boutons */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; box-sizing: border-box;
  border-radius: 6px; border: 1px solid var(--bd); background: transparent; color: var(--fg);
  font: 500 15px/1.2 var(--f-sans); text-decoration: none; cursor: pointer;
}
.c-btn:hover { border-color: var(--fg); }
.c-btn--gold { background: #E8B04A; border-color: #E8B04A; color: #0F1013; font-weight: 600; }
.c-btn--gold:hover { background: #F0C064; border-color: #F0C064; }

/* Lien d'Ã©vitement */
.c-skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 6px; background: #E8B04A; color: #0F1013;
  font: 600 15px var(--f-sans); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-c);
}
.c-skip:focus { transform: none; }

/* ---------- En-tÃªte ---------- */
.c-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-family: var(--f-sans); color: var(--fg);
}
.c-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.c-brand { display: flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; }
/* Logo de Kevin (noir sur fond transparent) utilisÃ© comme masque : il prend la couleur du texte, donc suit le thÃ¨me */
.c-brand-logo {
  display: block; height: 46px; aspect-ratio: 1800 / 542; background: currentColor;
  -webkit-mask: url(/assets/img/logo-kevin-dolhin.webp) center / contain no-repeat;
          mask: url(/assets/img/logo-kevin-dolhin.webp) center / contain no-repeat;
}
.c-brand:hover { color: var(--acc); }
.c-nav { display: flex; align-items: center; gap: 26px; }
.c-nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.c-nav-links a { display: block; padding: 8px 0; border-bottom: 2px solid transparent; color: var(--fg); text-decoration: none; }
.c-nav-links a:hover { border-bottom-color: var(--line2); }
.c-nav-links a[aria-current="page"] { color: var(--acc); border-bottom-color: var(--acc); }
.c-dispo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); white-space: nowrap; }
.c-dispo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.c-dispo-long { display: none; }
.c-header-cta--m, .c-menu-btn { display: none; }

@media (max-width: 1023px) {
  .c-header-in { padding-block: 12px; gap: 8px; }
  .c-brand-logo { height: 38px; }
  .c-header-cta--d { display: none; }
  .c-header-cta--m { display: inline-flex; font-size: 14px; padding: 12px 16px; }
  .c-header-tools { display: flex; align-items: center; gap: 8px; }
  .c-menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--bd); border-radius: 6px; background: transparent; color: var(--fg); cursor: pointer;
  }
  /* Sans JS, le menu reste affichÃ© sous l'en-tÃªte */
  .c-nav { display: block; border-top: 1px solid var(--line); padding: 8px 16px 20px; }
  .js .c-nav:not(.is-open) { display: none; }
  .c-header-in { flex-wrap: wrap; }
  .c-nav { flex-basis: 100%; margin-inline: -16px; }
  .c-nav-links { display: block; }
  .c-nav-links li { border-bottom: 1px solid var(--line); }
  .c-nav-links a { padding: 14px 0; border-bottom: 0; font-family: var(--f-serif); font-size: 28px; line-height: 1.2; }
  .c-nav-links a[aria-current="page"] { border-bottom: 0; }
  .c-dispo { margin-top: 14px; }
  .c-dispo-short { display: none; }
  .c-dispo-long { display: inline; }
}
@media (min-width: 1024px) {
  .c-header-tools { display: contents; }
}

/* ---------- Onglet ThÃ¨me (bord droit, desktop et mobile) ---------- */
.c-theme { position: fixed; right: 0; top: 42%; z-index: 30; display: flex; align-items: flex-start; font-family: var(--f-sans); color: var(--fg); }
.c-theme-tab {
  width: 44px; padding: 14px 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1px solid var(--bd); border-right: 0; border-radius: 8px 0 0 8px;
  background: var(--bg2); color: var(--fg); cursor: pointer; opacity: .85;
  transition: opacity .2s var(--ease-c);
}
.c-theme-tab:hover, .c-theme-tab[aria-expanded="true"] { opacity: 1; }
.c-theme-word { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mut); }
.c-theme-ico { display: none; }
.c-theme[data-current="auto"] .c-theme-ico--auto,
.c-theme[data-current="light"] .c-theme-ico--light,
.c-theme[data-current="dark"] .c-theme-ico--dark { display: block; }
.c-theme-panel {
  margin-right: 8px; width: 168px; box-sizing: border-box; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 10px; box-shadow: 0 14px 30px var(--sh);
}
.c-theme-panel[hidden] { display: none; }
.c-theme-panel p { margin: 0 0 4px 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--mut); }
.c-theme-panel button {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 6px; background: transparent; color: var(--fg);
  font: 500 14px var(--f-sans); text-align: left; cursor: pointer;
}
.c-theme-panel button:hover { background: var(--line); }
.c-theme-panel button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
/* Sans JS, le choix du thÃ¨me est impossible : l'onglet ne s'affiche pas (le site suit l'appareil) */
html:not(.js) .c-theme { display: none; }

/* ---------- Fil d'Ariane ---------- */
.c-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mut); }
.c-crumb a { color: var(--mut); }
.c-crumb li + li::before { content: "/"; margin-right: 8px; }
.c-crumb [aria-current] { color: var(--fg); }

/* ---------- Texte riche (contenus de la base) ---------- */
.c-prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: var(--fg2); overflow-wrap: anywhere; }
.c-prose > * { margin: 0; }
.c-prose > * + * { margin-top: 1.1em; }
.c-prose h2, .c-prose h3 { font-family: var(--f-serif); font-weight: 400; color: var(--fg); line-height: 1.1; }
.c-prose h2 { font-size: 34px; margin-top: 1.6em; }
.c-prose h3 { font-size: 26px; margin-top: 1.4em; }
.c-prose strong { color: var(--fg); font-weight: 600; }
.c-prose a { color: var(--acc); text-underline-offset: 3px; }
.c-prose ul, .c-prose ol { padding-left: 1.3em; }
.c-prose blockquote { padding-left: 18px; border-left: 2px solid var(--acc); font: italic 26px/1.3 var(--f-serif); color: var(--fg); }
.c-prose img, .c-prose video { border-radius: 8px; }
.c-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.c-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--mut); }

/* ---------- Bandeau cookies (glisse depuis le bas, ne bloque pas la page) ---------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 40; box-sizing: border-box;
  width: min(380px, calc(100vw - 48px)); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); color: #0F1013; border: 4px solid #E8B04A; border-radius: 12px; box-shadow: 0 20px 40px var(--sh);
  font: 14px/1.45 var(--f-sans); transform: rotate(-1deg);
  animation: c-up .5s var(--ease-c) both;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent .consent-k { font-size: 11px; color: #6E4F0F; }
.consent a { color: #0F1013; text-decoration: underline; font-size: 13px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* boutons sombres posÃ©s sur une carte : #0F1013 / #ECE9E3 en dur (exception prÃ©vue) */
.consent .btn { flex: 1; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1.5px solid #0F1013; background: #0F1013; color: #ECE9E3; font: 600 14px var(--f-sans); cursor: pointer; }
.consent .consent-refuse { background: transparent; color: #0F1013; }
@keyframes c-up { from { transform: translateY(calc(100% + 32px)) rotate(-1deg); opacity: 0; } }
@media (max-width: 1023px) { .consent { left: 16px; bottom: 16px; width: calc(100vw - 32px); transform: none; } }

/* ---------- Pied de page ---------- */
.c-footer { background: var(--bg3); border-top: 1px solid var(--line); color: var(--fg); font: 16px/1.55 var(--f-sans); }
.c-footer-in { display: flex; flex-direction: column; gap: 48px; padding-block: 72px 32px; }
.c-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.c-footer-pitch { flex: 1 1 520px; min-width: 0; }
.c-footer-kicker { margin: 0 0 10px; color: var(--acc2); }
.c-footer-title { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 64px; line-height: 1; }
.c-footer-sub { margin: 12px 0 0; color: var(--mut); }
.c-footer-actions { flex: 1 1 360px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.c-footer-actions .c-btn--gold { padding: 16px 24px; font-size: 16px; }
.c-footer-mail { display: flex; flex-wrap: wrap; gap: 8px; }
.c-footer-mail a { flex: 1 1 200px; }
.c-footer-actions .c-btn:not(.c-btn--gold) { min-height: 48px; }
.c-footer-status { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--mut); }
.c-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.c-footer-cols p { margin: 0 0 12px; color: var(--mut); }
.c-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.c-footer-cols a, .c-footer-cols button {
  display: inline-block; padding: 10px 0; min-height: 44px; box-sizing: border-box;
  color: var(--fg); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left;
}
.c-footer-cols a:hover, .c-footer-cols button:hover { color: var(--acc); }
.c-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mut); }
@media (max-width: 1023px) {
  .c-footer-in { padding-block: 48px 32px; }
  .c-footer-title { font-size: 44px; }
}
