/* =========================================
   NOVA LEARN - Feuille de styles principale
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1B3F7A;
  --primary-light: #2D5FA8;
  --accent:        #3B82F6;
  --gold:          #F59E0B;
  --white:         #FFFFFF;
  --light:         #F8FAFC;
  --text:          #1E293B;
  --text-light:    #64748B;
  --border:        #E2E8F0;
  --shadow:        0 4px 24px rgba(27,63,122,.10);
  --radius:        12px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }

.section-title    { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-light); margin-bottom: 48px; max-width: 620px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .2s; border: none;
}
.btn-primary  { background: var(--gold); color: #1E293B; }
.btn-primary:hover  { background: #D97706; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.3); }
.btn-secondary{ background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover{ background: var(--white); color: var(--primary); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover  { background: var(--primary); color: var(--white); }

.tag {
  display: inline-block; background: rgba(59,130,246,.1); color: var(--accent);
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .6px;
}

/* ===== HEADER ===== */
header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.header-top {
  background: var(--primary); padding: 7px 0;
  font-size: .82rem; color: rgba(255,255,255,.85);
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-top a { color: rgba(255,255,255,.85); }
.header-top a:hover { color: #fff; }
.header-top-info { display: flex; gap: 24px; align-items: center; }

nav { padding: 14px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: 'Montserrat', sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }

.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu a {
  font-family: 'Montserrat', sans-serif; font-size: .875rem; font-weight: 600;
  color: var(--text); padding: 8px 14px; border-radius: 6px; transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--light); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--primary-light) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--primary); transition: all .3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e5ba8 100%);
  color: var(--white); padding: 96px 0 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 600px; height: 600px; background: rgba(255,255,255,.03); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; right: 80px; bottom: -200px;
  width: 400px; height: 400px; background: rgba(255,255,255,.04); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.15); color: var(--white);
  font-size: .8rem; font-weight: 600; padding: 6px 16px; border-radius: 20px;
  margin-bottom: 24px; letter-spacing: .5px;
}
.hero h1 { font-size: 2.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 22px; color: var(--white); }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 36px; line-height: 1.75; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 56px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap;
}
.hero-stat h3 { font-size: 2.1rem; font-weight: 800; color: var(--gold); }
.hero-stat p  { font-size: .88rem; opacity: .8; margin-bottom: 0; }

/* ===== NDA BANNER ===== */
.nda-banner { background: #EFF6FF; border-left: 4px solid var(--accent); padding: 18px 0; }
.nda-banner .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nda-icon {
  width: 40px; height: 40px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.nda-text { font-size: .9rem; color: var(--text-light); }
.nda-text strong { color: var(--primary); font-size: .95rem; }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-content .tag { margin-bottom: 14px; }
.about-list { list-style: none; margin: 22px 0 30px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 11px; font-size: .93rem; }
.about-list li::before {
  content: '✓'; background: var(--primary); color: white;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card { background: var(--light); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.about-card.accent { background: var(--primary); color: white; grid-column: span 2; }
.about-card h3 { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.about-card.accent h3 { color: var(--gold); font-size: 1.15rem; }
.about-card p { font-size: .83rem; color: var(--text-light); }
.about-card.accent p { color: rgba(255,255,255,.8); }

/* ===== FORMATIONS ===== */
.formations { background: var(--light); }
.formation-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.formation-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,63,122,.15); }
.formation-card-header { background: var(--primary); padding: 30px 32px; color: white; }
.formation-card-header .tag { background: rgba(255,255,255,.15); color: white; margin-bottom: 12px; }
.formation-card-header h3 { font-size: 1.25rem; line-height: 1.45; }
.formation-card-body { padding: 30px 32px; }
.formation-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.meta-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.meta-icon { font-size: 1.1rem; }
.meta-label { color: var(--text-light); font-size: .76rem; }
.meta-value  { font-weight: 600; color: var(--text); }
.formation-objectives { margin-bottom: 22px; }
.formation-objectives h4 {
  font-size: .82rem; font-weight: 700; color: var(--primary);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.formation-objectives ul { list-style: none; }
.formation-objectives li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; margin-bottom: 7px; color: var(--text-light);
}
.formation-objectives li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.formation-card-footer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ===== TRAINER ===== */
.trainer { background: var(--white); }
.trainer-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius); padding: 48px; color: white;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start;
}
.trainer-avatar {
  width: 110px; height: 110px; background: rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 2.3rem; font-weight: 800;
  color: var(--white); flex-shrink: 0; border: 3px solid rgba(255,255,255,.3);
}
.trainer-info h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 4px; }
.trainer-role { color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.trainer-info p { opacity: .9; margin-bottom: 14px; line-height: 1.7; }
.trainer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trainer-badge {
  background: rgba(255,255,255,.15); padding: 7px 14px;
  border-radius: 6px; font-size: .83rem; font-weight: 500;
}

/* ===== ACCESSIBILITY ===== */
.accessibility { background: var(--light); }
.accessibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.accessibility-card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; border-left: 4px solid var(--accent);
}
.accessibility-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 12px; }
.accessibility-card p { color: var(--text-light); margin-bottom: 14px; font-size: .93rem; }
.accessibility-contact {
  background: var(--primary); border-radius: var(--radius);
  padding: 34px; color: white; text-align: center;
}
.accessibility-contact h3 { font-size: 1.15rem; margin-bottom: 10px; }
.accessibility-contact p { opacity: .85; margin-bottom: 14px; font-size: .93rem; }
.contact-info-list { list-style: none; text-align: left; margin-top: 16px; }
.contact-info-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: .9rem; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 22px; }
.contact-detail { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 18px; }
.contact-icon {
  width: 42px; height: 42px; background: rgba(59,130,246,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail-text .label {
  font-size: .76rem; color: var(--text-light); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.contact-detail-text .value { font-weight: 600; color: var(--text); }
.contact-form { background: var(--light); border-radius: var(--radius); padding: 38px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 15px; border: 2px solid var(--border);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: .93rem;
  color: var(--text); transition: border-color .2s; background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 115px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FOOTER ===== */
footer { background: #0F2044; color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 44px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 18px; }
.footer-nda { background: rgba(255,255,255,.08); border-radius: 8px; padding: 12px 15px; font-size: .8rem; }
.footer-nda strong { display: block; color: var(--gold); margin-bottom: 2px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700;
  color: white; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: white; }

/* ===== PAGE HERO (sous-pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 56px 0; color: white;
}
.breadcrumb { font-size: .83rem; opacity: .7; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.3; max-width: 820px; margin-top: 10px; }
.page-hero-meta { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.page-meta-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.meta-icon-circle {
  width: 34px; height: 34px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ===== FORMATION DETAIL ===== */
.formation-content { padding: 56px 0; background: var(--light); }
.formation-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.content-block {
  background: white; border-radius: var(--radius); padding: 34px;
  margin-bottom: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.content-block h2 {
  font-size: 1.2rem; color: var(--primary); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.objectives-list { list-style: none; }
.objectives-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .93rem;
}
.objectives-list li:last-child { border-bottom: none; }
.obj-number {
  background: var(--primary); color: white; width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .73rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.programme-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.programme-table th {
  background: var(--primary); color: white; padding: 12px 14px;
  text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.programme-table th:first-child { border-radius: 0; }
.programme-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.programme-table tr:nth-child(even) td { background: var(--light); }
.programme-table tr:hover td { background: rgba(59,130,246,.05); }
.module-name { font-weight: 600; color: var(--primary); }
.duration-badge {
  display: inline-block; background: var(--primary); color: white;
  padding: 3px 9px; border-radius: 20px; font-size: .76rem; font-weight: 600;
  white-space: nowrap;
}

/* Sidebar */
.formation-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 18px; }
.sidebar-info-list { list-style: none; }
.sidebar-info-list li {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .88rem;
  gap: 12px;
}
.sidebar-info-list li:last-child { border-bottom: none; }
.sidebar-info-list .label { color: var(--text-light); }
.sidebar-info-list .value { font-weight: 600; color: var(--text); text-align: right; }
.sidebar-cta {
  background: var(--primary); border-radius: var(--radius);
  padding: 28px; text-align: center; color: white;
}
.sidebar-cta h3 { font-size: 1rem; margin-bottom: 10px; }
.sidebar-cta p { font-size: .83rem; opacity: .85; margin-bottom: 18px; }
.sidebar-cta .btn-primary { width: 100%; text-align: center; }
.sidebar-cta .btn-white {
  display: block; width: 100%; text-align: center; margin-top: 10px;
  padding: 11px 0; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: .88rem; border: 2px solid rgba(255,255,255,.35);
  color: white; transition: all .2s;
}
.sidebar-cta .btn-white:hover { background: rgba(255,255,255,.1); }

/* ===== MENTIONS LEGALES ===== */
.legal-content { background: white; padding: 64px 0; }
.legal-max { max-width: 860px; }
.legal-content h2 {
  font-size: 1.3rem; color: var(--primary); margin: 36px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-light); margin-bottom: 9px; font-size: .93rem; line-height: 1.75; }
.legal-content ul { margin-left: 20px; }
.legal-content strong { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .formation-layout { grid-template-columns: 1fr; }
  .formation-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.95rem; }
  .about-grid, .contact-grid, .accessibility-grid { grid-template-columns: 1fr; }
  .trainer-card { grid-template-columns: 1fr; padding: 30px; }
  .trainer-avatar { margin: 0 auto; }
  .trainer-info { text-align: center; }
  .trainer-badges { justify-content: center; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 14px; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-stats { gap: 22px; }
  .page-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; }
  .header-top .container { justify-content: center; }
}
