/* ============================================================
   La 3e Voie IT Souveraine — charte alignée sur la landing Jalios
   (event.jalios.com/la-3e-voie-it)
   ============================================================ */

:root {
  --red:         #E83F5C;
  --red-title:   #BA0000;
  --purple:      #53389E;
  --ink:         #0E2841;
  --slate:       #334B68;
  --muted:       #56677A;
  --pale:        #F8F7FC;
  --border:      #E2E6ED;
  --border-pale: #E7E2F1;
  --blue-btn:    #024C7C;
  --nav-bg:      #FAFAFA;
  --nav-ink:     #101010;
  --band-gradient: linear-gradient(120deg, #7E3FD1 0%, #53389E 18%, #033587 58%, #0E2841 100%);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
section[id], header[id] { scroll-margin-top: var(--nav-h); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 60px; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'opsz' 24;
  font-size: 1.15em; line-height: 1; vertical-align: middle;
}

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; padding: 10.5px 21px;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 16px/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(.95); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--red   { background: var(--red); border-color: var(--red); color: #FAFAFA; }
.btn--light { background: #F3F3F3; border-color: #F3F3F3; color: #111; }

/* ══ NAVBAR ══ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); color: var(--nav-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.topnav__inner { height: 100%; padding: 0 24px 0 15px; display: flex; align-items: center; }
.topnav__logos { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.topnav__logo { display: inline-flex; }
.topnav__logo--jalios img { width: 32px; height: 32px; }
.topnav__logo--it4b img { width: 96px; height: auto; }
.topnav__sep { width: 1px; height: 26px; background: rgba(16, 16, 16, .2); }
.topnav__links { list-style: none; margin: 0 8px 0 0; padding: 0; display: flex; height: 100%; }
.topnav__links li { margin: 0 8px; display: flex; }
.topnav__links a {
  display: flex; align-items: center; height: 100%;
  font-size: 16px; font-weight: 400; color: var(--nav-ink); text-decoration: none;
}
.topnav__links a:hover { color: var(--red); }
.topnav__cta {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 7px 14px; border-radius: 10px;
  background: var(--red); color: #FAFAFA; text-decoration: none;
  font: 700 16px/1.3 var(--font);
  transition: filter .15s ease;
}
.topnav__cta:hover { filter: brightness(.95); }
.topnav__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ══ HERO ══ */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #0E2841 url('../assets/img/hero-bg.webp') center / cover no-repeat;
  padding: 60px 0;
}
.hero__inner { max-width: 900px; margin: 0 auto; padding: 28px; }
.hero__title {
  font-size: 72px; line-height: 1.02; font-weight: 700; letter-spacing: -.035em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .16);
}
.hero__accent { color: var(--red); }
.hero__title::after {
  content: ''; display: block; width: 72px; height: 5px; margin: 24px auto 0;
  background: var(--red); border-radius: 999px;
}
.hero__subtitle {
  max-width: 950px; margin: 30px auto 22px;
  font-size: 30px; line-height: 1.32; font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}
.hero__subtitle b { font-weight: 700; }
.hero__info {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 30px; color: #F3F3F3; font-size: 17px; line-height: 1.4; font-weight: 600;
}
.hero__item { display: inline-flex; align-items: center; margin: 5px 17px; white-space: nowrap; }
.hero__icon {
  width: 20px; height: 20px; margin-right: 9px; flex: 0 0 auto;
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ══ L'ÉVÈNEMENT ══ */
.event { padding: 38px 0 42px; background-color: #0E2841; background-image: var(--band-gradient); color: #fff; }
.event__grid { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: start; }
.event__title { font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0 0 10px; }
.event__desc { margin-top: 14px; font-size: 14px; line-height: 1.4; }
.event__desc p + p { margin-top: 14px; }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; align-items: start; }
.theme {
  display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 18px 20px;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  box-shadow: 0 5px 16px rgba(4, 18, 31, .08);
  transition: background-color .2s ease, border-color .2s ease;
}
.theme:hover { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .22); }
.theme__head { display: flex; align-items: center; gap: 11px; }
.theme__num { min-width: 42px; color: var(--red); font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.theme__icon { display: inline-flex; width: 29px; height: 29px; color: var(--red); }
.theme__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme__body { display: flex; flex-direction: column; gap: 16px; }
.theme__body strong { font-size: 17px; line-height: 1.25; font-weight: 700; overflow-wrap: break-word; }
.theme__text { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.35; }

/* ══ INSCRIPTION ══ */
.register { padding: 60px 0 44px; background: #fff; color: var(--ink); }
.register__title { margin: 0 0 8px 26px; color: var(--red-title); font-size: 37.33px; line-height: 1.2; font-weight: 700; }
.register__desc { margin: 24px 0 10px; font-size: 16px; line-height: 1.4; }
.reg-panel--hidden { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; padding: 0 4px; }
.form-field { display: flex; flex-direction: column; }
.form-label, .form-custom__label { margin: 0 0 3px; font-size: 16px; font-weight: 400; color: var(--ink); }
.form-custom__label .req { color: var(--red); }
.form-input {
  width: 100%; height: 32px; padding: 4px 7px;
  font: 400 14px var(--font); color: var(--ink);
  background: #F9F9F9; border: 1px solid #DDD; border-radius: 0;
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--purple); }
.form-input.is-invalid { border-color: var(--red); background: #FFF5F7; }
.form-custom { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding: 0 4px; }
.form-custom:empty { display: none; }
.form-custom__field { display: flex; flex-direction: column; gap: 6px; }
.form-custom__options { display: flex; flex-direction: column; gap: 6px; }
.form-custom__options--row { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.form-custom__option { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.form-gdpr { display: flex; gap: 10px; align-items: flex-start; margin: 22px 4px 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-gdpr input { margin-top: 3px; accent-color: var(--purple); }
.form-gdpr a { color: var(--purple); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 26px; padding: 0 4px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: var(--blue-btn); color: #fff; border: 1px solid var(--blue-btn); border-radius: 10px;
  font: 700 14px/1.2 var(--font); cursor: pointer; transition: filter .15s ease;
}
.btn-submit:hover { filter: brightness(1.12); }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.btn-submit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-status { display: none; margin: 14px 4px 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.form-status.is-visible { display: block; }
.form-status--ok   { background: #e7f7ee; color: #146c3c; }
.form-status--info { background: var(--pale); color: var(--purple); }
.form-status--err  { background: #fdecef; color: var(--red-title); }

.registered-card { display: none; text-align: center; padding: 16px 0 6px; }
.registered-card.is-visible { display: block; }
.registered-card__icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e7f7ee; color: #146c3c;
}
.registered-card__icon .material-symbols-outlined { font-size: 32px; }
.registered-card__icon--pending { background: var(--pale); color: var(--purple); }
.registered-card__title { font-size: 26px; font-weight: 700; color: var(--red-title); margin-bottom: 8px; }
.registered-card__sub { font-size: 16px; color: var(--slate); }

/* ══ PROGRAMME ══ */
.programme { padding: 60px 0; background: #fff; }
.programme__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 40px; }
.programme__kicker { color: var(--purple); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.programme__title { color: var(--red-title); font-size: 2.25rem; font-weight: 700; line-height: 1.2; }

.sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; align-items: start; }
.session {
  display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(14, 40, 65, .05);
}
.session__time {
  min-height: 44px; padding: 11px 16px; display: flex; align-items: center;
  background: var(--pale); border-bottom: 1px solid var(--border-pale);
  color: var(--purple); font-size: 1rem; line-height: 1.3; font-weight: 700;
}
.session__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.session__title { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 700; color: var(--ink); overflow-wrap: break-word; }
.session__speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.session__speaker { display: flex; align-items: flex-start; gap: 9px; color: var(--slate); }
.session__speaker img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.session__speaker-detail { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .82rem; line-height: 1.35; overflow-wrap: break-word; }
.session__speaker-name { margin-bottom: 1px; font-size: .94rem; line-height: 1.3; font-weight: 600; }
.session__details {
  margin-top: 2px; padding: 12px 14px;
  background: var(--pale); border: 1px solid var(--border-pale); border-radius: 8px;
  color: var(--slate); font-size: .9rem; line-height: 1.55; overflow-wrap: break-word;
}
.session__details p { margin: 0 0 .65rem; }
.session__details p:last-child { margin-bottom: 0; }

/* ══ INTERVENANTS ══ */
.speakers { padding: 20px 0 60px; background: #fff; }
.speakers__title { margin: 0 0 40px 26px; color: var(--red-title); font-size: 37.33px; line-height: 1.2; font-weight: 700; }
.speakers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
.speaker {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px 22px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 2px 8px rgba(14, 40, 65, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.speaker:hover { border-color: #CFC5E5; box-shadow: 0 4px 12px rgba(14, 40, 65, .06); }
.speaker__photo { width: 120px; height: 120px; margin: 0 0 8px; border-radius: 50%; object-fit: cover; }
.speaker__name { color: var(--ink); font-size: 1.12rem; line-height: 1.3; font-weight: 700; padding: 0 6px; }
.speaker__company { color: var(--purple); font-size: 14px; line-height: 1.4; font-weight: 600; padding: 0 6px; }
.speaker__role { color: var(--muted); font-size: 14px; line-height: 1.4; font-weight: 400; padding: 0 6px; }

/* ══ INFORMATIONS PRATIQUES ══ */
.infos { padding: 58px 0; background: var(--band-gradient); color: #fff; }
.infos__grid { display: grid; grid-template-columns: 300px 1fr; gap: 0; align-items: start; }
.infos__text { padding: 14px 24px 0 0; }
.infos__title { margin: 0 0 84px; font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.infos__text p { margin: 0 0 14px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.55; }
.infos__text strong { color: #fff; font-weight: 700; }
.infos__photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.infos__photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 16 / 9;
  transition: transform .22s ease, filter .22s ease;
}
.infos__photo:hover { transform: scale(1.01); filter: brightness(1.02); }
.infos__photo--main { grid-row: 1 / span 2; aspect-ratio: auto; }

/* ══ FOOTER ══ */
.footer {
  color: #fff; min-height: 212px;
  background: #0b0f4f url('../assets/img/footer-bg.webp') center / cover no-repeat;
}
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 60px 36px 107px; }
.footer__logos { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.footer__logos img { width: 137px; height: auto; }
.footer__logos a + span + a img { width: 110px; }
.footer__sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .4); }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 70px; }
.footer__links, .footer__social { list-style: none; margin: 0; padding: 0; display: flex; }
.footer__links { gap: 38px; }
.footer__links a { font-size: 17px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__social { gap: 34px; margin-right: 12px; }
.footer__social a { display: inline-flex; transition: opacity .15s; }
.footer__social a:hover { opacity: .75; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 760px; margin: 0 auto; padding: 14px 18px;
  background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  transform: translateY(140%); transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 300px; font-size: 13px; color: var(--muted); }
.cookie-banner__actions { display: flex; align-items: center; gap: 10px; }
.cookie-banner__policy { font-size: 13px; color: var(--purple); }
.cookie-banner__btn { padding: 8px 16px; border-radius: 10px; font: 600 14px var(--font); cursor: pointer; border: 1px solid var(--red); }
.cookie-banner__btn--decline { background: #fff; color: var(--red); }
.cookie-banner__btn--accept { background: var(--red); color: #fff; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 30px);
  padding: 10px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: var(--red-title); }
.toast--ok { background: #146c3c; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1200px) {
  .session__speakers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero__title { font-size: 60px; }
  .hero__title::after { width: 60px; margin-top: 20px; }
  .hero__subtitle { font-size: 28px; margin-top: 26px; }
  .hero__info { font-size: 16px; }
  .hero__item { margin: 5px 13px; }
  .hero__icon { width: 19px; height: 19px; }
  .event { padding: 36px 0 40px; }
  .event__grid { grid-template-columns: 1fr; gap: 26px; }
  .event__title { font-size: 32px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .theme { min-height: 142px; padding: 16px 18px; gap: 9px; }
  .theme__num { min-width: 38px; font-size: 25px; }
  .theme__icon, .theme__icon svg { width: 26px; height: 26px; }
  .theme__body strong { font-size: 16px; }
  .theme__text { font-size: 13.5px; }
  .speakers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .infos { padding: 48px 0; }
  .infos__grid { grid-template-columns: 1fr; }
  .infos__title { font-size: 34px; margin-bottom: 26px; }
  .infos__text { padding: 0 0 26px; }
  .footer__inner { padding: 28px 24px 36px; }
}
@media (max-width: 860px) {
  .topnav__links { display: none; }
  .sessions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .hero { padding: 30px 0 60px; }
  .hero__inner { padding: 20px; }
  .hero__title { font-size: 44px; }
  .hero__title::after { width: 52px; height: 4px; margin-top: 18px; }
  .hero__subtitle { font-size: 21px; line-height: 1.34; margin: 24px auto 20px; }
  .hero__info { font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
  .hero__item { margin: 6px 10px; }
  .hero__icon { width: 18px; height: 18px; margin-right: 7px; }
  .hero__ctas .btn { width: 100%; max-width: 320px; padding: 14px 22px; }
  .event { padding: 30px 0 34px; background-image: linear-gradient(155deg, #7E3FD1 0%, #53389E 18%, #033587 58%, #0E2841 100%); }
  .event__title { font-size: 28px; line-height: 1.18; }
  .event__desc { font-size: 15px; line-height: 1.45; }
  .themes { grid-template-columns: 1fr; gap: 10px; }
  .theme { min-height: 0; padding: 15px 16px; gap: 8px; border-radius: 10px; }
  .theme__head { gap: 9px; }
  .theme__num { min-width: 36px; font-size: 24px; }
  .theme__icon, .theme__icon svg { width: 24px; height: 24px; }
  .theme__body { gap: 8px; }
  .theme__text { font-size: 14px; }
  .register { padding: 32px 0 28px; }
  .register__title, .speakers__title { margin-left: 0; font-size: 30px; }
  .register__desc { font-size: 14px; line-height: 1.45; }
  .form-grid { grid-template-columns: 1fr; }
  .programme { padding: 40px 0; }
  .session__time { padding: 10px 14px; }
  .session__body { padding: 14px; }
  .session__title { font-size: 1.05rem; }
  .speakers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speaker { padding: 16px 10px 18px; gap: 5px; }
  .speaker__photo { width: 96px; height: 96px; }
  .speaker__name { font-size: 1rem; }
  .infos { padding: 38px 0; }
  .infos__title { font-size: 29px; margin-bottom: 22px; }
  .infos__text p { font-size: 14px; line-height: 1.5; }
  .infos__photo { border-radius: 8px; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .footer__logos { margin-top: 0; }
  .footer__right { align-items: center; gap: 24px; }
  .footer__social { margin-right: 0; }
}
@media (max-width: 560px) {
  :root { --nav-h: 56px; }
  .topnav__inner { padding: 0 12px; }
  .topnav__logos { gap: 10px; }
  .topnav__logo--it4b img { width: 78px; }
  .topnav__sep { height: 20px; }
  .topnav__cta { padding: 6px 11px; font-size: 14px; }
  .topnav__cta svg { width: 16px; height: 16px; }
  .speakers__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
