/* ==========================================================================
   ICPM — Feuille de style principale
   1. Variables  2. Base  3. Composants  4. Navbar  5. Hero  6. Sections
   7. Pages  8. Formulaires  9. Footer  10. Utilitaires / animations
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --blue: #103c7b;
  --blue-900: #0a254e;
  --blue-700: #14498f;
  --blue-100: #dbe6f6;
  --blue-50: #eef3fb;
  --yellow: #fac605;
  --yellow-600: #e2b100;
  --yellow-100: #fff4c7;
  --ink: #17223b;
  --muted: #5b6579;
  --line: #e3e8f1;
  --bg: #f6f8fc;
  --white: #fff;
  --green: #17a673;
  --red: #d64545;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 60, 123, .07);
  --shadow: 0 12px 32px rgba(16, 60, 123, .12);
  --shadow-lg: 0 24px 60px rgba(10, 37, 78, .22);
  --nav-h: 76px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--blue); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--blue); padding: 8px 14px; border-radius: 8px; z-index: 2000; font-weight: 600; }
.skip-link:focus { left: 12px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 92px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }

/* Titres de section */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(255, 255, 255, .12); color: var(--yellow); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); position: relative; padding-bottom: 18px; margin-bottom: 14px; }
.section-head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; margin-left: -32px; background: var(--yellow); border-radius: 4px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, .8); }
.align-left { text-align: left; margin-left: 0; }
.align-left h2::after { left: 0; margin-left: 0; }

/* 3. Composants ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--blue-900); box-shadow: 0 8px 22px rgba(250, 198, 5, .38); }
.btn-primary:hover { background: #ffd53a; color: var(--blue-900); box-shadow: 0 12px 28px rgba(250, 198, 5, .5); }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-900); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--blue-50); color: var(--blue-700); }
.badge-yellow { background: var(--yellow-100); color: #7a5b00; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e6f7f0; color: #0b6b49; border: 1px solid #b6e6d3; }
.alert-error { background: #fdeaea; color: #a32727; border: 1px solid #f3c1c1; }

/* Icônes dans un cercle */
.icon-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; transition: transform .3s; }
.card:hover .icon-circle { transform: scale(1.1) rotate(-6deg); }

/* 4. Navbar --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo .logo-white { display: none; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 11px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); border-radius: 8px; position: relative; }
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s; }
.nav-link--challenge { background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.nav-link--challenge i { color: var(--yellow-600); }
.nav-link:hover, .nav-link.is-active { color: var(--blue); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; color: var(--blue); font-size: 1.7rem; }

.lang { position: relative; }
.lang-btn { display: inline-flex; gap: 6px; align-items: center; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 6px; display: none; z-index: 10; }
.lang.is-open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.lang-menu a:hover, .lang-menu a.is-current { background: var(--blue-50); color: var(--blue); }

/* Navbar transparente sur l'accueil */
.nav--overlay:not(.is-scrolled) { background: transparent; border-color: transparent; }
.nav--overlay:not(.is-scrolled) .logo-dark { display: none; }
.nav--overlay:not(.is-scrolled) .logo-white { display: block; }
.nav--overlay:not(.is-scrolled) .nav-link, .nav--overlay:not(.is-scrolled) .nav-toggle { color: #fff; }
.nav--overlay:not(.is-scrolled) .lang-btn { color: #fff; border-color: rgba(255, 255, 255, .5); }
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(10, 37, 78, .1); }
main { padding-top: var(--nav-h); overflow-x: clip; }
main.has-hero { padding-top: 0; }

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--blue-900) var(--hero-img) center/cover no-repeat;
  padding: calc(var(--nav-h) + 40px) 0 140px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10, 37, 78, .94) 0%, rgba(16, 60, 123, .8) 48%, rgba(10, 37, 78, .5) 100%); }
.hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 198, 5, .28), transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); font-size: .85rem; font-weight: 500; margin-bottom: 26px; }
.hero-chip i { color: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.05; margin-bottom: 22px; }
.hero h1 span { color: var(--yellow); }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 620px; margin-bottom: 14px; font-weight: 500; }
.hero-desc { color: rgba(255, 255, 255, .75); max-width: 600px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.hero-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.hero-card p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.countdown div { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 4px; }
.countdown b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--yellow); line-height: 1; margin-bottom: 4px; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.hero-scroll { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 1.4rem; animation: bounce 2s infinite; z-index: 1; }

/* Bandeau d'infos chevauchant le hero */
.info-strip { position: relative; z-index: 3; margin-top: -92px; }
.info-card { padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.info-card h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--blue); font-weight: 600; font-size: 1.02rem; line-height: 1.45; }

/* Bouton « bientôt » (billetterie non ouverte) */
.btn-soon { background: rgba(250, 198, 5, .16); color: var(--yellow); border: 1.5px dashed rgba(250, 198, 5, .65); box-shadow: none; cursor: default; }
.btn-soon:hover { transform: none; background: rgba(250, 198, 5, .16); color: var(--yellow); box-shadow: none; }
.nav.is-scrolled .btn-soon, .nav:not(.nav--overlay) .btn-soon { background: var(--yellow-100); color: #7a5b00; border-color: #e3c24a; }
.cta-band .btn-soon { background: rgba(10, 37, 78, .08); color: var(--blue-900); border-color: rgba(10, 37, 78, .45); }
.info-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.info-card--challenge { border: 2px solid var(--yellow); }

/* Popup ICPM Challenge (reprend la mise en page du formulaire) */
dialog.modal.challenge-modal { width: min(700px, calc(100% - 20px)); background: #f7f4e4; padding: 14px; border-radius: 16px; max-height: calc(100vh - 20px); overflow: auto; }
.challenge-banner { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 12px; }
.challenge-close { position: sticky; top: 8px; display: block; margin: 6px 6px -44px auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: #202124; cursor: pointer; z-index: 5; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.challenge-close:hover { background: #fff; transform: scale(1.06); }
.challenge-card { background: #fff; border-radius: 12px; border-top: 10px solid #d6c778; padding: 28px 30px 30px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); color: #202124; }
.challenge-card h2 { font-size: clamp(1.45rem, 3.8vw, 2.05rem); line-height: 1.2; text-transform: uppercase; color: #202124; font-weight: 700; margin: 0 0 20px; }
.challenge-card p { margin: 0 0 16px; color: #202124; }
.challenge-card h2:focus { outline: none; }
[data-captcha-q] { white-space: nowrap; }
.challenge-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid #dadce0; }
.challenge-form.is-done .challenge-fields { display: none; }
.challenge-form.is-done { margin-top: 8px; padding-top: 0; border: 0; }
@media (max-width: 680px) { .challenge-card { padding: 22px 18px 24px; } }

/* En-tête des pages internes */
.page-header { position: relative; padding: 76px 0 70px; color: #fff; text-align: center; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-900) 100%); }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(250, 198, 5, .22), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .08), transparent 40%); }
.page-header .container { position: relative; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.page-header p { color: rgba(255, 255, 255, .85); max-width: 680px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); flex-wrap: wrap; }
.breadcrumb a { color: var(--yellow); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .6; }

/* 6. Sections ------------------------------------------------------------- */
/* À propos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-img::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--yellow); border-radius: var(--radius); z-index: -1; }
.about-img .float-badge { position: absolute; left: -20px; bottom: 30px; background: var(--yellow); color: var(--blue-900); padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; line-height: 1.2; }
.about-img .float-badge b { display: block; font-size: 1.8rem; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink); }
.checklist i { color: var(--green); font-size: 1.2rem; margin-top: 2px; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Chiffres clés */
.stats { text-align: center; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 1.02rem; color: rgba(255, 255, 255, .85); }

/* Intervenants */
.speaker-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.speaker-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--blue-50); cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.speaker-card:hover .speaker-photo img { transform: scale(1.06); }
.speaker-photo .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 37, 78, .85), transparent 55%); opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; justify-content: center; padding: 18px; color: #fff; font-weight: 600; font-size: .9rem; gap: 8px; }
.speaker-card:hover .overlay, .speaker-photo:focus-visible .overlay { opacity: 1; }
.speaker-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.speaker-body h3 { font-size: 1.08rem; margin: 0; }
.speaker-role { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.5; }
.speaker-body .badge { align-self: flex-start; }
.socials { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: all .2s; }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.search-box { position: relative; max-width: 420px; margin: 0 auto 22px; }
.search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding: 13px 20px 13px 46px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: var(--blue-100); }

/* Programme : temps forts + timeline */
.highlight { padding: 32px 28px; text-align: center; }
.highlight .icon-circle { margin: 0 auto 18px; }
.highlight h3 { font-size: 1.1rem; }
.time { color: var(--muted); font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; font-weight: 500; }
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(to bottom, var(--yellow), var(--blue-100)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 50px; margin-bottom: 26px; position: relative; }
.tl-item.is-hidden { display: none; }
.tl-time { text-align: right; padding-top: 22px; font-weight: 700; color: var(--blue); font-size: .95rem; line-height: 1.3; }
.tl-time small { display: block; color: var(--muted); font-weight: 500; }
.tl-item::before { content: ''; position: absolute; left: 110px; top: 26px; width: 19px; height: 19px; background: var(--yellow); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(250, 198, 5, .25); z-index: 1; }
.tl-card { padding: 24px 28px; position: relative; overflow: hidden; }
.tl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--type, var(--blue)); }
.tl-card h3 { font-size: 1.12rem; margin: 8px 0; }
.tl-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.type-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 14px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: #fff; background: var(--type, var(--blue)); }
.t-Keynote { --type: #e5484d; } .t-Panel { --type: #1fa7a0; } .t-Challenge { --type: #7c5cdb; }
.t-Pause { --type: #e2b100; } .t-Ceremonie { --type: var(--blue); }
.t-Pause .type-badge { color: var(--blue-900); }
.download-card { max-width: 900px; margin: 60px auto 0; padding: 48px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-900)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.download-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(250, 198, 5, .18); }
.download-card h2 { color: var(--yellow); font-size: 1.6rem; }
.download-card p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto 26px; position: relative; }

/* Partenaires */
.benefit { padding: 30px 24px; text-align: center; }
.benefit .icon-circle { margin: 0 auto 16px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; height: 120px; display: grid; place-items: center; padding: 18px; transition: all .3s; }
.logo-tile img { max-height: 76px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s; }
.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--yellow); }
.logo-tile:hover img { filter: none; opacity: 1; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo-tile { width: 190px; flex-shrink: 0; }
.marquee .logo-tile img { filter: none; opacity: 1; }
.testimonial { padding: 32px 28px; position: relative; display: flex; flex-direction: column; height: 100%; }
.testimonial .quote { font-size: 3.4rem; color: var(--yellow); line-height: .6; margin-bottom: 10px; }
.testimonial h3 { font-size: 1.05rem; }
.testimonial p { color: var(--muted); font-style: italic; flex: 1; }
.author { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.author img, .author .ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); font-size: 1.6rem; }
.author small { display: block; color: var(--muted); }
.org-card { padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.org-card img { width: 140px; }

/* Tarifs */
.price-card { padding: 44px 34px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.price-card.is-featured { background: linear-gradient(160deg, var(--blue), var(--blue-900)); color: #fff; transform: scale(1.04); border: 0; box-shadow: var(--shadow-lg); }
.price-card.is-featured h3, .price-card.is-featured .amount { color: #fff; }
.price-card.is-featured .amount small { color: rgba(255, 255, 255, .7); }
.price-card .ribbon { position: absolute; top: 18px; right: -34px; background: var(--yellow); color: var(--blue-900); padding: 5px 42px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(40deg); }
.price-card h3 { font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; }
.amount { font-size: 3.2rem; font-weight: 800; color: var(--blue); line-height: 1; margin: 14px 0 26px; }
.amount small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.features { text-align: left; margin: 0 auto 32px; flex: 1; display: grid; gap: 12px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.features i { color: var(--green); margin-top: 3px; }
.price-card.is-featured .features i { color: var(--yellow); }

/* Blog */
.blog-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--blue-700)); display: grid; place-items: center; color: var(--yellow); font-size: 3.4rem; position: relative; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.blog-body h3 { font-size: 1.1rem; margin: 0; }
.blog-body h3 a { color: var(--blue); }
.blog-body p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.read-more { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.read-more:hover i { transform: translateX(4px); }
.read-more i { transition: transform .2s; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; background: #fff; }
.pagination a:hover { border-color: var(--blue); }
.pagination .is-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .is-disabled { opacity: .4; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article { font-size: 1.08rem; line-height: 1.85; }
.article h2, .article h3 { margin-top: 1.6em; }
.article img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.article blockquote { border-left: 4px solid var(--yellow); background: var(--bg); margin: 1.6em 0; padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.article ul, .article ol { margin: 0 0 1em 1.4em; list-style: revert; }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; box-shadow: var(--shadow); }
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; color: rgba(255, 255, 255, .85); font-size: .9rem; justify-content: center; margin-top: 18px; }
.article-meta i { color: var(--yellow); margin-right: 6px; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 24px; }
.side-box { padding: 26px; }
.side-box h3 { font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 3px solid var(--yellow); display: inline-block; }
.recent { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent:last-child { border: 0; }
.recent strong { display: block; color: var(--blue); font-size: .94rem; line-height: 1.4; margin-bottom: 2px; }
.recent small { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 18px; padding: 22px; margin-bottom: 16px; align-items: center; }
.contact-item h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.contact-item a, .contact-item p { margin: 0; font-weight: 600; color: var(--blue); word-break: break-word; }

/* Avis (feedback) */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2rem; color: #d5dbe7; cursor: pointer; transition: color .15s, transform .15s; line-height: 1; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--yellow); }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 4px; }
.stars-static { color: var(--yellow); letter-spacing: 2px; white-space: nowrap; }
.stars-static .off { color: #d5dbe7; }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-previews img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.fb-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.fb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-photos img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.fb-score { display: flex; align-items: center; gap: 28px; justify-content: center; flex-wrap: wrap; }
.fb-score b { font-size: 3.4rem; color: var(--yellow); line-height: 1; }

.cta-band { background: var(--yellow); text-align: center; padding: 80px 0; }
.cta-band h2 { color: var(--blue-900); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--blue); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-dark { padding: 16px 38px; }

/* Réseaux sociaux (accueil) */
.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social-card { padding: 28px 20px; text-align: center; color: var(--ink); display: block; }
.social-card i { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.social-card b { display: block; color: var(--blue); }
.social-card small { color: var(--muted); }
.social-card.li i { color: #0a66c2; } .social-card.fb i { color: #1877f2; } .social-card.ig i { color: #e1306c; } .social-card.wa i { color: #25d366; }

/* 8. Formulaires ---------------------------------------------------------- */
.form-card { padding: 40px; }
.field { margin-bottom: 20px; }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; color: var(--blue); }
.field .req { color: var(--red); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field-error { color: var(--red); font-size: .82rem; margin-top: 6px; display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }   /* pot de miel anti-spam */
.form-msg { margin-bottom: 16px; }

dialog.modal { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); max-height: calc(100vh - 32px); overflow: auto; }
dialog.modal::backdrop { background: rgba(10, 37, 78, .65); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .25s ease; }
.modal-head { padding: 24px 28px; background: linear-gradient(135deg, var(--blue), var(--blue-900)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 2; }
.modal-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.modal-close { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.modal-close:hover { background: rgba(255, 255, 255, .3); }
.modal-body { padding: 28px; }
dialog.modal--wide { width: min(860px, calc(100% - 32px)); }
.speaker-modal { display: grid; grid-template-columns: 1fr 1fr; }
.speaker-modal img { width: 100%; height: 100%; object-fit: cover; }
.speaker-modal .txt { padding: 36px 32px; }

/* 9. Footer --------------------------------------------------------------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); padding: 76px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer img.footer-logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--yellow); border-radius: 3px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--yellow); }
.footer li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--yellow); margin-top: 3px; }
.footer .socials a { background: rgba(255, 255, 255, .1); color: #fff; }
.footer .socials a:hover { background: var(--yellow); color: var(--blue-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

.fab { position: fixed; right: 26px; bottom: 26px; z-index: 900; height: 58px; min-width: 58px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, var(--yellow), #f0b800); color: var(--blue-900); display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 8px 28px rgba(250, 198, 5, .55); font-weight: 600; font-size: .9rem; }
.fab i { font-size: 1.4rem; }
.fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s; }
.fab:hover { color: var(--blue-900); transform: translateY(-3px); }
.fab:hover span { max-width: 180px; }
.to-top { position: fixed; right: 30px; bottom: 96px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 900; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* 10. Animations & responsive -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@keyframes scroll { to { transform: translateX(calc(-50% - 11px)); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-link { padding: 8px 7px; font-size: .72rem; letter-spacing: .03em; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 22px 24px 40px; gap: 2px; overflow: auto; transform: translateX(100%); transition: transform .3s; }
  .nav.is-open .nav-menu { transform: none; }
  .nav.is-open { background: #fff !important; }
  .nav.is-open .logo-dark { display: block !important; } .nav.is-open .logo-white { display: none !important; }
  .nav.is-open .nav-toggle { color: var(--blue) !important; }
  .nav-menu .nav-link--challenge { width: 100%; text-align: left; }
  .nav-menu .nav-link { color: var(--ink) !important; padding: 15px 8px; font-size: .95rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-actions .btn { display: none; }
  .hero .container, .about, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .hero { padding-bottom: 150px; }
  .hero-scroll { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 44px; }
  .about-img::before { display: none; }
  .sidebar { position: static; }
  .price-card.is-featured { transform: none; }
  .speaker-modal { grid-template-columns: 1fr; }
  .speaker-modal img { max-height: 340px; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .grid-4.speakers-grid, .grid-3.speakers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .speaker-body { padding: 14px; } .speaker-body h3 { font-size: .95rem; } .speaker-role { font-size: .78rem; }
  .info-strip { margin-top: -70px; }
  .form-card { padding: 26px 20px; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .tl-item::before { left: 0; top: 4px; }
  .tl-time { text-align: left; padding: 0; }
  .org-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .download-card { padding: 34px 22px; }
  .countdown b { font-size: 1.5rem; }
  .social-cards { grid-template-columns: 1fr 1fr; }
  .fab span { display: none; }
  .to-top { right: 22px; bottom: 92px; }
}
