/* ══════════════════════════════════════════
   VIGIPRO — Feuille de style partagée
   Palette : Navy #1B3C6E | Orange #F5841F
   ══════════════════════════════════════════ */

/* Police Inter chargée via <link> dans le <head> de chaque page (plus rapide que @import) */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: #1A1A2E; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tokens ── */
:root {
  --navy:      #1B3C6E;
  --navy-dark: #0D1F3C;
  --orange:    #F5841F;
  --grey-100:  #F4F6F9;
  --grey-200:  #E5E8EF;
  --grey-500:  #6B7A8D;
  --text:      #1A1A2E;
  --white:     #FFFFFF;
  --transition: 0.25s ease;
  --radius:    4px;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section--light { background: var(--grey-100); }
.section--white { background: var(--white); }

/* ── Overline ── */
.overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: var(--text); }
.heading-xl  { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.heading-lg  { font-size: clamp(2rem, 3.5vw, 3rem); }
.heading-md  { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.heading-sm  { font-size: 1.15rem; }
.lead { font-size: 1.05rem; color: var(--grey-500); line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #D4700E; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 11px 24px; font-size: 0.85rem; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}
.navbar__logo { display: flex; align-items: center; gap: 12px; }
.navbar__logo img { height: 42px; width: auto; }
.navbar__logo-name { font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.navbar__logo-name span { color: var(--orange); }
.navbar__links { display: flex; align-items: center; gap: 2px; }
.navbar__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--white); }
.navbar__right { display: flex; align-items: center; gap: 24px; }
.navbar__phone {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
}
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.navbar__burger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: var(--transition); }
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 16px 40px 24px;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}
.navbar__mobile a:hover { color: var(--white); }

/* ══════════════════════════════
   PAGE HERO (pages intérieures)
══════════════════════════════ */
.page-hero {
  background: var(--navy-dark);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.012) 60px,
    rgba(255,255,255,0.012) 61px
  );
}
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb svg { flex-shrink: 0; }
.page-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero__eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--orange); }
.page-hero__title { color: var(--white); margin-bottom: 16px; }
.page-hero__desc { color: rgba(255,255,255,0.55); font-size: 1rem; max-width: 560px; line-height: 1.75; }

/* ══════════════════════════════
   SECTION HEADER
══════════════════════════════ */
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--grey-500); font-size: 0.98rem; line-height: 1.75; margin-top: 14px; }

/* ══════════════════════════════
   FORMATION CARDS
══════════════════════════════ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-200);
}
.formation-card {
  background: var(--white);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.formation-card:hover::before { transform: scaleX(1); }
.formation-card__icon { width: 44px; height: 44px; margin-bottom: 28px; color: var(--navy); }
.formation-card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.formation-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.formation-card p { font-size: 0.92rem; color: var(--grey-500); line-height: 1.7; flex: 1; margin-bottom: 28px; }
.formation-card__meta { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); margin-bottom: 28px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item__value { font-size: 1rem; font-weight: 700; color: var(--text); }
.meta-item__key { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); }

/* ══════════════════════════════
   RISK ITEMS
══════════════════════════════ */
.risk-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.risk-item:last-child { border-bottom: none; padding-bottom: 0; }
.risk-item__icon { flex-shrink: 0; margin-top: 2px; }
.risk-item__text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.risk-item__text strong { color: var(--white); }

/* ══════════════════════════════
   CTA BAND
══════════════════════════════ */
.cta-band { background: var(--navy-dark); padding: 80px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band__text h2 { color: var(--white); font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
.cta-band__text p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

/* ══════════════════════════════
   CONTACT FORM
══════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group label .req { color: var(--orange); }
.form-control {
  padding: 13px 16px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  border-radius: var(--radius);
}
.form-control:focus { border-color: var(--navy); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; cursor: pointer; }
.form-note { font-size: 0.8rem; color: var(--grey-500); line-height: 1.6; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.form-check label { font-size: 0.85rem; color: var(--grey-500); cursor: pointer; line-height: 1.55; }
.form-check label a { color: var(--navy); text-decoration: underline; }

/* ══════════════════════════════
   ACCORDION
══════════════════════════════ */
.accordion { border: 1px solid var(--grey-200); }
.accordion-item { border-bottom: 1px solid var(--grey-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%; text-align: left;
  padding: 20px 24px;
  background: var(--white);
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: var(--transition);
}
.accordion-btn:hover { background: var(--grey-100); }
.accordion-btn.active { color: var(--navy); }
.accordion-chevron { transition: transform var(--transition); color: var(--grey-500); flex-shrink: 0; }
.accordion-btn.active .accordion-chevron { transform: rotate(180deg); color: var(--navy); }
.accordion-body { display: none; padding: 0 24px 24px; color: var(--grey-500); font-size: 0.92rem; line-height: 1.75; }
.accordion-body.open { display: block; }

/* ══════════════════════════════
   TABLE
══════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: var(--navy); color: var(--white); padding: 14px 20px; text-align: left; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--grey-200); color: var(--text); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--grey-100); }

/* ══════════════════════════════
   INFO BOX
══════════════════════════════ */
.info-box {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--grey-100);
  border-left: 3px solid var(--navy);
  padding: 20px 24px;
}
.info-box--orange { border-color: var(--orange); }
.info-box__icon { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.info-box--orange .info-box__icon { color: var(--orange); }
.info-box__text h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.info-box__text p { font-size: 0.88rem; color: var(--grey-500); line-height: 1.65; }

/* ══════════════════════════════
   LEGAL PAGE
══════════════════════════════ */
.legal-content { max-width: 800px; margin: 0 auto; padding: 80px 40px; }
.legal-content h2 { font-size: 1.4rem; color: var(--navy); margin: 48px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-200); }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-content p { font-size: 0.93rem; color: var(--grey-500); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 18px 24px; }
.legal-content ul li { list-style: disc; font-size: 0.93rem; color: var(--grey-500); margin-bottom: 8px; line-height: 1.65; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.legal-content table th, .legal-content table td { padding: 12px 16px; border: 1px solid var(--grey-200); text-align: left; }
.legal-content table th { background: var(--grey-100); font-weight: 700; color: var(--text); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer__brand-name { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 14px; }
.footer__brand-name span { color: var(--orange); }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.75; }
.footer__col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════
   SESSIONS (agenda + pages formation)
══════════════════════════════ */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.session-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.session-card:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(27,60,110,0.08); }
.session-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.session-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.session-badge--sst   { background: #FDEEDC; color: #C36A0D; }
.session-badge--ssiap { background: #E8EEF7; color: var(--navy); }
.session-badge--hab   { background: var(--grey-100); color: var(--grey-500); }
.session-card__places { font-size: 0.78rem; font-weight: 600; color: var(--orange); }
.session-card__date {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.session-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.35;
}
.session-card__details {
  border-top: 1px solid var(--grey-200);
  margin-bottom: 22px;
  flex: 1;
}
.session-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.85rem;
}
.session-detail span { color: var(--grey-500); }
.session-detail strong { color: var(--text); font-weight: 600; text-align: right; }
.session-card__btn { width: 100%; justify-content: center; }
.sessions-empty {
  grid-column: 1 / -1;
  background: var(--grey-100);
  border: 1.5px dashed var(--grey-200);
  padding: 32px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--grey-500);
  line-height: 1.7;
}
.sessions-empty a { color: var(--navy); text-decoration: underline; }

/* Filtres de l'agenda */
.agenda-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.agenda-filter {
  padding: 10px 22px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  transition: var(--transition);
}
.agenda-filter:hover { border-color: var(--navy); color: var(--navy); }
.agenda-filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 1024px) {
  .sessions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sessions-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   REVEAL ANIMATION
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .formations-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .navbar__inner { padding: 0 24px; height: 64px; }
  .navbar__links, .navbar__right .btn { display: none; }
  .navbar__burger { display: flex; }
  .navbar__mobile { padding: 16px 24px 24px; }
  .page-hero { padding: 120px 0 56px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}
@media (max-width: 480px) {
  .navbar__right .navbar__phone { display: none; }
}
