/* ═══════════════════════════════════════════════════════════════
   Fortemusica.com : feuille de style unique du site (refonte nov. 2026)
   Remplace style.css et style-multicolore.css.
   La page Captain Forté a sa propre feuille : captain-forte.css.
   ─── Sommaire ───
   1. Socle   2. En-tête   3. Boutons   4. Bandeau vidéo   5. Sections
   6. Accueil   7. Pages de contenu   8. Contact   9. Équipe   10. Pied de page
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Socle ─── */
:root {
    --ink: #1c1d21;            /* encre : textes, en-tête, pied de page */
    --ink-2: #353537;          /* gris du logo */
    --mute: #62646c;
    --paper: #f5f2ec;          /* papier : fonds doux */
    --line: #e4dfd5;
    --white: #fff;
    --accent: #cf4d1c;         /* orangé : liens, repères */
    --accent-dark: #a83a10;
    --radius: 18px;
    --shadow: 0 10px 34px rgba(28, 29, 33, .09);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.fm-lock { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img, video { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.fm-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.fm-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 700; }
.fm-skip:focus { top: 12px; }

/* ─── 2. En-tête ─── */
.fm-header { position: sticky; top: 0; z-index: 1000; background: var(--ink); color: var(--white); transition: box-shadow .2s; }
.fm-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.fm-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.fm-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.fm-brand:hover { color: var(--white); }
.fm-brand img { width: 40px; height: 40px; object-fit: contain; }
.fm-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fm-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.fm-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.fm-nav a.is-active { color: var(--white); background: rgba(255, 255, 255, .14); }
.fm-nav__tag { padding: 2px 7px; border-radius: 6px; background: #ff8a1f; color: #2a1200; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fm-nav__ext svg { opacity: .7; }
.fm-nav__lang { margin-left: 8px; }
.fm-nav__lang a { gap: 0; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); background: none; }
.fm-nav__lang span { padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.fm-nav__lang span.is-on { background: var(--white); color: var(--ink); }
.fm-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; }
.fm-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.fm-header.is-open .fm-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fm-header.is-open .fm-burger span:nth-child(2) { opacity: 0; }
.fm-header.is-open .fm-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
    .fm-burger { display: block; }
    .fm-nav { position: fixed; inset: var(--header-h) 0 0 0; padding: 18px 20px 30px; background: var(--ink); overflow: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
    .fm-header.is-open .fm-nav { transform: none; visibility: visible; }
    .fm-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
    .fm-nav a { padding: 15px 16px; border-radius: 14px; font-size: 19px; }
    .fm-nav__lang { margin: 14px 0 0; align-self: flex-start; }
    .fm-nav__lang a { padding: 4px; }
    .fm-nav__lang span { padding: 8px 16px; font-size: 15px; }
}

/* ─── 3. Boutons ─── */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 999px; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.fm-btn:hover { transform: translateY(-2px); }
.fm-btn--sm { padding: 10px 18px; font-size: 14.5px; }
.fm-btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px rgba(28, 29, 33, .2); }
.fm-btn--dark:hover { background: #000; color: var(--white); }
.fm-btn--line { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .55); }
.fm-btn--line:hover { background: var(--ink); color: var(--white); }
.fm-btn--light { background: var(--white); color: var(--ink); }
.fm-btn--light:hover { color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.fm-btn--play { background: linear-gradient(180deg, #ff8a1f, #f05a0a); color: var(--white); box-shadow: 0 5px 0 #c2410c, 0 12px 22px rgba(4, 14, 60, .4); }
.fm-btn--play:hover { color: var(--white); }

/* ─── 4. Bandeau vidéo (accueil) et têtes de page ─── */
.fm-hero__media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.fm-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* voile clair posé sur la vidéo, comme avant la refonte : le logo et le texte restent sombres */
.fm-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .62) 60%, rgba(255, 255, 255, .9) 100%); }
.fm-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 48px 0 84px; text-align: center; }
.fm-hero__in { display: flex; flex-direction: column; align-items: center; }
.fm-hero__logo { width: min(300px, 58vw); height: auto; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .1)); }
.fm-hero__title { margin-top: 6px; font-size: clamp(34px, 5.4vw, 62px); }
.fm-hero__title em { font-style: italic; font-weight: 500; color: var(--accent-dark); }
.fm-hero__lead { max-width: 46em; margin: 20px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: #2b2c31; }
.fm-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.fm-pagehead { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.fm-pagehead h1 { font-size: clamp(34px, 5vw, 58px); }
.fm-pagehead--plain { background: var(--paper); border-bottom: 1px solid var(--line); }

/* ─── 5. Sections ─── */
.fm-section { padding: clamp(56px, 8vw, 104px) 0; }
.fm-section--paper { background: var(--paper); }
.fm-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.fm-h2 { max-width: 20em; font-size: clamp(28px, 3.6vw, 44px); }
.fm-lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: #2b2c31; }
.fm-lead--center { max-width: 44em; margin: 0 auto 48px; text-align: center; }
.fm-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fm-card h2 { margin-bottom: 8px; font-size: 21px; }
.fm-card p { font-size: 15.5px; color: var(--mute); }
.fm-cta { background: var(--ink); color: var(--white); }
.fm-cta__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.fm-cta .fm-h2 { max-width: 16em; }

/* ─── 6. Accueil ─── */
.fm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.fm-prod { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; }
.fm-prod h3 { font-size: clamp(26px, 2.6vw, 34px); }
.fm-prod__tag { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fm-prod .fm-btn { align-self: flex-start; margin-top: auto; }
.fm-prod--fs { background: var(--paper); border: 1px solid var(--line); }
/* visuel de la carte Free-scores : le logo posé sur une portée */
.fm-prod--fs .fm-prod__visual { display: grid; place-items: center; background: radial-gradient(closest-side, rgba(255, 252, 245, .55), rgba(255, 252, 245, 0) 100%) center / 60% 90% no-repeat, url(../IMAGES/fond-partition.webp) 60% 40% / cover no-repeat, #efe6d4; }
@media (max-width: 700px) { .fm-prod--fs .fm-prod__visual { background-image: radial-gradient(closest-side, rgba(255, 252, 245, .55), rgba(255, 252, 245, 0) 100%), url(../IMAGES/fond-partition-m.webp); } }
.fm-prod--fs .fm-prod__visual img { width: 132px; height: 132px; object-fit: contain; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 14px 26px rgba(40, 28, 10, .38)); }
.fm-prod--fs .fm-prod__body { padding-top: 26px; }
.fm-prod--fs .fm-prod__tag { color: #006699; }
.fm-prod--fs p { margin: 0; color: #3a3b41; }
.fm-prod--fs .fm-btn { margin-top: 12px; }
/* carte du jeu : le bleu nuit et l'orange de Captain Forté */
.fm-prod--game { background: radial-gradient(520px 300px at 12% 0%, rgba(96, 165, 255, .35), rgba(96, 165, 255, 0) 70%), linear-gradient(165deg, #081a5c 0%, #0e3aa8 55%, #2f7be4 100%); color: var(--white); box-shadow: 0 16px 40px rgba(14, 58, 168, .28); }
.fm-prod__visual { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1f66; }
.fm-prod__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; transition: transform .6s; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.fm-prod:hover .fm-prod__visual img { transform: scale(1.04); }
.fm-prod__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 6px 34px 34px; }
.fm-prod--game .fm-prod__tag { color: #ffc21a; }
.fm-prod--game h3 { font-family: 'Nunito', var(--sans); font-style: italic; font-weight: 900; letter-spacing: -.5px; }
.fm-prod--game p { margin: 0; color: #e3edff; }
.fm-prod--game .fm-btn { margin-top: 12px; }
.fm-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--ink); }
.fm-value { padding: 30px 30px 6px 0; }
.fm-value + .fm-value { padding-left: 30px; border-left: 1px solid var(--line); }
.fm-value svg { color: var(--accent-dark); }
.fm-value h3 { margin: 14px 0 8px; font-size: 24px; }
.fm-value p { color: #45464d; font-size: 16px; }
@media (max-width: 860px) {
    .fm-duo, .fm-values { grid-template-columns: 1fr; }
    .fm-prod__body { padding-inline: 24px; }
    .fm-value, .fm-value + .fm-value { padding: 24px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
    .fm-value:first-child { border-top: 0; }
}

/* ─── 7. Pages de contenu ─── */
.fm-article, .fm-contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.fm-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.fm-prose h2 { margin-bottom: 18px; font-size: clamp(28px, 3.2vw, 40px); }
.fm-prose h3 { margin: 38px 0 10px; font-size: 24px; }
.fm-prose p { color: #33343a; }
.fm-checks { margin: 0; padding: 0; list-style: none; }
.fm-checks li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); }
.fm-checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.fm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 26px 0 0; border-top: 1px solid var(--ink); }
.fm-stats > div { padding: 24px 20px 0 0; }
.fm-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.fm-stats dt { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.fm-stats dd { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--mute); }
@media (max-width: 960px) {
    .fm-article, .fm-contact { grid-template-columns: 1fr; }
    .fm-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .fm-stats { grid-template-columns: 1fr 1fr; border-top: 0; }
    .fm-stats > div, .fm-stats > div + div { padding: 20px 14px 20px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ─── 8. Contact ─── */
.fm-contact__form h2 { margin-bottom: 22px; font-size: clamp(26px, 3vw, 36px); }
.fm-form { display: grid; gap: 18px; }
.fm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fm-field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; }
.fm-field input, .fm-field select, .fm-field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #cfc9bd; border-radius: 12px; background: var(--white); color: var(--ink); font: 500 16px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; }
.fm-field textarea { resize: vertical; min-height: 150px; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(207, 77, 28, .18); }
.fm-form .fm-btn { justify-self: start; }
.fm-form__note { margin: 0; font-size: 14px; color: var(--mute); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.fm-alert--ok { background: #e6f4ea; color: #17532b; border: 1px solid #b7dcc1; }
.fm-alert--err { background: #fdecea; color: #8a1f14; border: 1px solid #f3bdb6; }
@media (max-width: 640px) { .fm-form__row { grid-template-columns: 1fr; } }

/* ─── 9. Équipe ─── */
.fm-team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fm-member { padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.fm-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.fm-member h2 { margin-top: 18px; font-size: 30px; }
.fm-member__role { margin: 2px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.fm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.fm-tags li { padding: 6px 13px; border: 1px solid #d6d0c4; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .fm-team { grid-template-columns: 1fr; } .fm-member { padding: 24px; } }

/* ─── 10. Pied de page ─── */
.fm-footer { padding: 60px 0 26px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 15px; }
.fm-cta + .fm-footer, main:has(> .fm-cta:last-child) + .fm-footer { border-top: 1px solid rgba(255, 255, 255, .12); }
.fm-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; }
.fm-footer__brand p { max-width: 24em; margin: 14px 0 0; }
.fm-footer h2 { margin-bottom: 12px; font: 800 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.fm-footer ul { margin: 0; padding: 0; list-style: none; }
.fm-footer li { margin-bottom: 8px; }
.fm-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fm-footer a:hover { color: var(--white); text-decoration: underline; }
.fm-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.fm-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .fm-footer__grid { grid-template-columns: 1fr 1fr; } .fm-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fm-footer__grid { grid-template-columns: 1fr; } }

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