/* Styles communs aux deux pages marketing d'audience : etudiant.php et entreprise.php.
   Mutualisé le 20/09/2026 : ces deux pages partageaient ~93 % de CSS identique, ce qui obligeait
   à corriger chaque bug deux fois (et à risquer qu'ils divergent).

   Principe : ce fichier ne contient AUCUNE couleur d'audience en dur. Il parle de "accent"
   (--accent, --accent-ink, --accent-soft...), et chaque page définit ce que "accent" veut dire :
     - etudiant.css   -> accent = vert
     - entreprise.css -> accent = bleu
   Charger CE fichier AVANT le CSS de la page (la page peut ainsi surcharger et ajouter ses blocs).
   Ne mettre ici que ce qui est vraiment commun ; un bloc propre à une page va dans son fichier.

   01/10/2026 : habillage aligné sur la nouvelle page d'accueil (badge clair à bordure, titres
   Outfit 800, cartes à 16 px sans halo ni dégradé, boutons à 12 px, texte secondaire #475569).
   L'en-tête est commun à toutes les pages publiques : includes/site-header.php. */

    :root {
      --bg: #FAFBFC;
      --surface: #FFFFFF;
      --ink: #0F172A;
      --ink-soft: #475569;   /* texte secondaire, contraste AA (#64748B jusqu'au 01/10/2026) */
      --ink-faint: #64748B;
      --soft: #F1F5F9;
      --green: #10B981;
      --green-ink: #047857;
      --green-soft: #ECFDF5;
      --green-glow: rgba(16, 185, 129, 0.3);
      --blue: #3B82F6;
      --blue-ink: #1E40AF;
      --blue-soft: #EFF6FF;
      --blue-glow: rgba(59, 130, 246, 0.3);
      --red-soft: #FEF2F2;
      --red: #EF4444;
      --line: #E2E8F0;
      --font-display: 'Outfit', sans-serif;
      --font-body: 'DM Sans', sans-serif;
    }

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

    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--ink);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

    /* HERO SECTION */
    .hero {
      text-align: center;
      padding: 56px 20px 48px;
      max-width: 900px;
      margin: 0 auto;
    }

    /* Badge : même forme que sur l'accueil (fond clair, bordure, texte foncé de l'accent). */
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      max-width: 100%;
      padding: 8px 16px;
      background: var(--accent-soft);
      color: var(--accent-ink);
      border: 1.5px solid var(--accent-border);
      border-radius: 99px;
      font-weight: 700;
      font-size: 13.5px;
      margin-bottom: 22px;
      text-wrap: balance;
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(34px, 5.2vw, 54px);
      font-weight: 800;
      color: var(--ink);
      line-height: 1.08;
      letter-spacing: -0.03em;
      margin-bottom: 18px;
      text-wrap: balance;
    }

    .hero h1 .highlight {
      color: var(--accent-text);
    }

    .hero p {
      font-size: clamp(17px, 2vw, 19px);
      color: var(--ink-soft);
      line-height: 1.6;
      font-weight: 500;
      max-width: 640px;
      margin: 0 auto 28px;
      text-wrap: pretty;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 56px;
      padding: 0 28px;
      background: var(--accent-ink);
      color: #FFFFFF;
      border-radius: 12px;
      text-decoration: none;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 17px;
      transition: background-color 0.2s ease;
      margin-top: 8px;
    }

    .hero-cta:hover {
      background: var(--accent-hover);
      color: #FFFFFF;
    }

    /* SECTIONS */
    section {
      padding: 72px 20px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .section-header h2 {
      font-family: var(--font-display);
      font-size: clamp(26px, 4.4vw, 34px);
      font-weight: 800;
      color: var(--ink);
      margin-bottom: 12px;
      letter-spacing: -0.03em;
      line-height: 1.15;
      text-wrap: balance;
    }

    .section-header p {
      font-size: 16.5px;
      color: var(--ink-soft);
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* COMMENT ÇA MARCHE - 3 STEPS (même carte que le pitch de l'accueil) */
    .steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 14px;
    }

    .step {
      background: var(--surface);
      border-radius: 16px;
      padding: 24px;
      text-align: left;
      border: 1px solid var(--line);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .step:hover {
      border-color: var(--accent-ink);
      box-shadow: 0 14px 30px -18px rgba(var(--accent-rgb), 0.55);
    }

    .step-number {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--accent-soft);
      color: var(--accent-ink);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
      margin-bottom: 16px;
    }

    .step h3 {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 10px;
      color: var(--ink);
    }

    .step p {
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.6;
    }

    /* DIFFÉRENCIATION : reste le bloc fort de la page (bordure d'accent), sans dégradé. */
    .differentiator {
      background: var(--surface);
      border-radius: 16px;
      padding: 48px 40px;
      margin: 0 auto;
      max-width: 900px;
      border: 1.5px solid var(--accent-border);
      box-shadow: 0 20px 40px -24px rgba(var(--accent-rgb), 0.35);
      text-align: center;
    }

    .differentiator h3 {
      font-family: var(--font-display);
      font-size: clamp(22px, 3.4vw, 26px);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 14px;
      color: var(--ink);
    }

    .differentiator p {
      font-size: 16.5px;
      color: var(--ink-soft);
      line-height: 1.65;
      max-width: 600px;
      margin: 0 auto;
    }

    .differentiator .vs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 32px;
      text-align: left;
    }

    .vs-block {
      border-radius: 16px;
      padding: 24px;
      border: 1px solid transparent;
    }

    .vs-block.negative {
      background: var(--red-soft);
      border-color: #FECACA;
    }

    .vs-block.positive {
      background: var(--accent-soft);
      border-color: var(--accent-border);
    }

    .vs-block h4 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .vs-block.negative h4 { color: #991B1B; }
    .vs-block.positive h4 { color: var(--accent-ink); }

    .vs-block ul {
      list-style: none;
      padding: 0;
    }

    .vs-block li {
      font-size: 15px;
      color: #334155;
      padding: 7px 0;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      line-height: 1.5;
      font-weight: 500;
    }

    .vs-block li::before {
      flex-shrink: 0;
      font-size: 16px;
      font-weight: 700;
    }

    .vs-block.negative li::before { content: "✗"; color: #B91C1C; }
    .vs-block.positive li::before { content: "✓"; color: var(--accent-ink); }

    /* FAQ SECTION */
    .faq-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .faq-item {
      background: var(--surface);
      border-radius: 16px;
      margin-bottom: 10px;
      border: 1px solid var(--line);
      overflow: hidden;
      transition: border-color 0.2s ease;
    }

    .faq-item:hover {
      border-color: var(--accent-ink);
    }

    /* <button> et non <div> depuis le 26/08/2026 : ces styles neutralisent l'apparence
       native du bouton tout en gardant le clavier, le focus et l'annonce vocale. */
    .faq-question {
      width: 100%;
      background: none;
      border: none;
      font-family: inherit;
      text-align: left;
      padding: 20px 24px;
      min-height: 56px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-weight: 600;
      font-size: 16px;
      color: var(--ink);
      transition: color 0.2s ease;
    }

    .faq-question:hover {
      color: var(--accent-ink);
    }

    .faq-question:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: -2px;
      border-radius: 12px;
    }

    .faq-icon {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

    .faq-item.active .faq-icon {
      transform: rotate(180deg);
    }

    .faq-answer {
      padding: 0 24px;
      max-height: 0;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .faq-item.active .faq-answer {
      padding: 0 24px 22px;
      max-height: 500px;
    }

    .faq-answer p {
      font-size: 15px;
      color: var(--ink-soft);
      line-height: 1.7;
    }

    /* CTA FINAL : aplat clair à bordure, comme la bande « alerte » de l'accueil. */
    .cta-section {
      background: var(--accent-soft);
      border-radius: 16px;
      padding: 56px 32px;
      text-align: center;
      margin: 40px auto 72px;
      max-width: 900px;
      border: 1px solid var(--accent-border);
    }

    .cta-section h2 {
      font-family: var(--font-display);
      font-size: clamp(26px, 4.4vw, 34px);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.15;
      color: var(--ink);
      margin-bottom: 14px;
      text-wrap: balance;
    }

    .cta-section p {
      font-size: 16.5px;
      color: var(--ink-soft);
      margin-bottom: 28px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    @media (prefers-reduced-motion: reduce) {
      .step, .faq-item, .faq-answer, .faq-icon, .hero-cta { transition: none; }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hero { padding: 36px 16px 32px; }
      .hero-badge { font-size: 12.5px; padding: 7px 14px; }
      section { padding: 56px 16px; }
      .cta-section { padding: 40px 20px; margin: 32px 16px 56px; }
      .differentiator { padding: 32px 20px; }
      .differentiator .vs { grid-template-columns: 1fr; }
    }
