/* fredericmandin.com — feuille de style */
:root {
  --bg: #141616;
  --bg2: #1A1D1D;
  --line: #2A2D2D;
  --line2: #2E3131;
  --border: #4A4E4E;
  --text: #F2F0EB;
  --muted: #B4B5B0;
  --soft: #D9D8D3;
  --cream: #F4F2ED;
  --ink: #161818;
  --ink2: #2E3030;
  --gray: #4C4C4C;
  --stone: #CFCCC4;
  --accent: #FFC107;
  --accent-hover: #FFD54F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: var(--bg); padding: 12px 18px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 400px) { .wrap, .wrap-narrow { padding: 0 16px; } }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hl { color: var(--accent); }
.hl-line { box-shadow: inset 0 -0.16em 0 var(--accent); }

section { padding: 96px 0; scroll-margin-top: 80px; }
@media (max-width: 640px) { section { padding: 72px 0; } }
.light { background: var(--cream); color: var(--ink); }

.eyebrow {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  color: var(--muted); border-top: 1px solid var(--text); padding-top: 16px;
}
.light .eyebrow { color: var(--gray); border-top-color: var(--ink); }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); }
.light .label { color: var(--gray); }

.h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(34px, 4.6vw, 60px); }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--soft); }
.light .lead { color: var(--ink2); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-56 { margin-top: 56px; }
.align-end { align-items: end; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--cream); }
.btn-outline-dark { background: transparent; color: var(--bg); border: 2px solid var(--bg); }
.btn-outline-dark:hover { background: var(--bg); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.icon-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; text-decoration: none; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 22, 22, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; display: block; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 800; }
.brand-text span { font-size: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.header-tel { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.header-tel:hover { color: var(--accent); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* Menu plein écran */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-inner { max-width: 1240px; margin: 0 auto; padding: 14px 20px 20px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.menu-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px 64px; margin-top: 10px; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 2px 0;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-size: clamp(21px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.02em;
}
.menu-nav a:hover { color: var(--accent); }
.menu-nav a span { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; width: 18px; }
.menu-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 700px) { .menu-inner { padding-top: 18px; } .menu-body { margin-top: 40px; } .menu-side { gap: 24px; } }
@media (max-height: 700px) and (max-width: 699px) {
  .menu-nav a { min-height: 42px; font-size: 19px; }
  .menu-side { gap: 10px; }
}
.remote {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px;
  padding: 8px 10px 8px 16px; min-height: 56px; text-decoration: none; color: var(--text);
}
.remote:hover { border-color: var(--accent); color: var(--text); }
.remote strong { display: block; font-size: 16px; font-weight: 800; }
.remote small { display: block; font-size: 13px; color: var(--muted); }
.remote-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 420px) { .menu-side .btn-sm { padding: 0 13px; font-size: 14px; } }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.hero h1 { margin: 32px 0 0; font-size: clamp(44px, 7.4vw, 112px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; max-width: 1100px; }
.hero-intro { margin: 0; font-size: 20px; line-height: 1.6; color: var(--soft); max-width: 620px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; margin-top: 80px; border-top: 1px solid var(--line); padding-top: 32px; }
.figure { display: flex; flex-direction: column; gap: 6px; }
.figure strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.figure span { font-size: 15px; color: var(--muted); }

/* Liste de services */
.services { margin-top: 64px; }
.service { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--stone); }
.service:last-child { border-bottom: 1px solid var(--stone); }
.service-head { display: flex; flex-direction: column; gap: 8px; }
.service-head span { font-size: 13px; font-weight: 700; color: var(--gray); letter-spacing: 0.08em; }
.service h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.service p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink2); }

/* Cartes publics */
.card { border: 1px solid var(--line2); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--bg2); }
.card h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.card li::marker { color: var(--accent); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line2); font-size: 15px; font-weight: 700; color: var(--accent); }

/* Situations */
.situation { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.situation p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }

/* Formations */
.training { border: 1px solid var(--line2); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 400px) { .training, .card { padding: 26px 22px; } }
.badge { align-self: flex-start; background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.training h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.training p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.link-arrow { margin-top: 8px; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.network { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; border: 1px solid var(--line2); border-radius: 20px; padding: 20px 24px; }
.network-logo { background: #fff; border-radius: 14px; padding: 14px 18px; flex-shrink: 0; }
.network-logo img { width: 200px; height: auto; }
.network p { margin: 0; flex: 1 1 260px; font-size: 16px; line-height: 1.6; color: var(--soft); }

/* Avis */
.reviews-box { background: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.reviews-box p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.stars { display: flex; gap: 4px; color: var(--accent); }

/* À propos */
.about-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .about-grid .portrait { max-width: 300px; } }
.portrait { aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: #222525; border: 1px solid var(--line2); }
.portrait picture { display: block; width: 100%; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.reviews-widget { min-height: 120px; }
.kicker { font-size: 15px; font-weight: 700; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { border: 1px solid #3A3E3E; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }

/* Zone */
.towns { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; list-style: none; margin: 0; padding: 0; }
.towns li { background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.towns li.home { background: var(--ink); color: var(--cream); font-weight: 700; }
.towns li.more { background: transparent; border: 1px solid #A7A49B; color: var(--gray); }

/* FAQ */
.faq details { border-top: 1px solid var(--line2); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; font-size: 21px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--accent); font-size: 30px; line-height: 1; transition: transform .25s; flex-shrink: 0; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--soft); max-width: 820px; }

/* Contact */
.contact { background: var(--accent); color: var(--bg); }
.contact .eyebrow { color: var(--bg); border-top-color: var(--bg); font-weight: 800; }
.contact h2 { margin: 40px 0 0; font-size: clamp(46px, 7vw, 104px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.contact p { margin: 0; font-size: 20px; line-height: 1.6; max-width: 600px; }
.contact .hours { margin-top: 40px; font-size: 16px; font-weight: 600; }

/* Pied de page */
.site-footer { padding: 56px 0 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-col strong.name { color: var(--text); font-size: 17px; }
.footer-col .label { margin-bottom: 6px; }
.footer-col a { color: var(--text); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--accent); }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.legal-logo { background: #fff; border-radius: 12px; padding: 12px 14px; flex-shrink: 0; }
.legal-logo img { width: 170px; height: auto; }
.legal-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 300px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 900px; }
.legal-text p { margin: 0; }
.legal-text a { color: var(--text); }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; }
.footer-bottom a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { color: var(--text); }

/* Pied de page centré */
.footer-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { flex-direction: column; gap: 14px; }
.footer-brand .brand-mark { width: 72px; height: 72px; }
.footer-brand strong { font-size: 20px; font-weight: 800; }
.footer-pitch { margin: 16px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 32px; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); }
.footer-links-sm { margin-top: 4px; }
.footer-links-sm a { font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-socials { justify-content: center; margin-top: 24px; }
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); width: 100%; max-width: 820px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-legal p { margin: 0; }
.footer-legal a:not(.legal-logo) { color: var(--text); }
.footer-legal .legal-logo { margin-bottom: 6px; }
.footer-center .footer-bottom { width: 100%; }
.nw { white-space: nowrap; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; gap: 2px; } .footer-bottom .sep { display: none; } }

/* Retour en haut */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); }

/* Popin formulaire */
.dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 24px; padding: 24px; background: var(--cream); color: var(--ink); font-family: inherit; }
.dialog::backdrop { background: rgba(10, 12, 12, 0.72); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.dialog .icon-btn { border-color: #A7A49B; color: var(--ink); width: 44px; height: 44px; }
.dialog .icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form textarea { border: 1px solid #A7A49B; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 500; background: #fff; color: var(--ink); width: 100%; }
.form input { height: 48px; padding-top: 0; padding-bottom: 0; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.form textarea { resize: vertical; min-height: 110px; }
.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gray); }
.form-note a { color: var(--ink); }
.form .btn-dark { min-height: 52px; font-size: 16px; font-weight: 800; }
.form .btn-dark[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { color: #1E6B3A; }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile:empty { display: none; }

/* Apparitions au défilement (actives seulement si JavaScript fonctionne) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.seen { opacity: 1; transform: none; }
.js .d1 { transition-delay: .1s; }
.js .d2 { transition-delay: .2s; }
.js .stagger > .reveal:nth-child(3n+2) { transition-delay: .12s; }
.js .stagger > .reveal:nth-child(3n) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .to-top, .faq-plus { transition: none; }
}

/* Page mentions légales */
.page { padding: 72px 0 96px; }
.page h1 { margin: 0 0 32px; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.page h2 { margin: 48px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.page h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 800; }
.page p, .page li { font-size: 17px; line-height: 1.7; color: var(--soft); }
.page ul { padding-left: 22px; }
.page .updated { color: var(--muted); font-size: 15px; }
