/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold: #F5C518;
  --gold-light: #FFD94A;
  --gold-dark: #C9A000;
  --red: #E63946;
  --navy: #1A3A6B;
  --navy-light: #2453A3;
  --black: #0D0F14;
  --dark: #161B27;
  --mid: #2A2F3E;
  --gray: #6B7280;
  --silver: #9CA3AF;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --green: #10B981;
  --accent: hsl(217, 91%, 60%);
  --success: hsl(142, 76%, 36%);


  /* Couleurs propres à cette page (fond clair) */
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --border: #E5E7EB;
  --text: #1a1f2e;
  --text-muted: #6B7280;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --transition: all .3s var(--ease-out);

  --shadow-card: 0 2px 16px rgba(0, 0, 0, .07);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, .12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  font-family: var(--roboto);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* =============================================
   HERO
   ============================================= */

/* HEADER HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162844 60%, #1e3a5f 100%);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(26, 86, 219, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeDown 0.6s ease both;
}

.hero-badge::before {
  content: '●';
  font-size: 8px;
  animation: blink 1.5s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  position: relative;
  animation: fadeDown 0.7s 0.1s ease both;
}

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

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.7;
  position: relative;
  animation: fadeDown 0.7s 0.2s ease both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

div.contact-btn {
  cursor: pointer;
  position: relative;
  gap: 20px;
  margin: 50px auto 0;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-btn a {
  padding: 10px 20px;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  color: var(--white);
  transition: transform .3s;

  &:hover {
    transform: scale(1.05);
  }
}

.contact-btn a:nth-child(1) {
  background-color: var(--danger-red-dark);
}

.contact-btn a:nth-child(2) {
  background-color: var(--success);
}

.contact-btn a:nth-child(3) {
  background-color: #ffffff10;
  border: 1px solid #ffffff;
}


/* ============================================================
   TITRE PRINCIPAL
   ============================================================ */
.titre {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--dark);
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

/* trait doré sous le titre */
.titre::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: .9rem auto 0;
}

/* ============================================================
   SECTION FAQ
   ============================================================ */
.faq {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

/* ── Layout sidebar + contenu ──────────────────────────────── */
.faq-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* ── Hamburger (mobile) ────────────────────────────────────── */
.menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 32px;
  padding: .4rem 0;
  margin-bottom: 1rem;
}
.faq-menu .hamburger {
  max-height: 4px;
  background-color: #2453A3 !important;
}

.hamburger {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu:hover .hamburger {
  background: var(--navy-light);
}

/* ── Sidebar navigation ────────────────────────────────────── */
.faq-links {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: sticky;
  top: 2rem;
}

.faq-links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.faq-links a:hover {
  background: var(--bg-alt);
  color: var(--navy);
  border-color: var(--border);
}

.faq-links a.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 58, 107, .25);
}

.faq-links a.active:hover {
  background: var(--navy-light);
}

/* ── Zone d'affichage des FAQ ──────────────────────────────── */
.faq-show {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Section header ────────────────────────────────────────── */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--border);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .4rem;
}

.section-header h2 i {
  color: var(--gold-dark);
  margin-right: .4rem;
}

.section-header p {
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Masquage des containers inactifs ──────────────────────── */
.container.none {
  display: none;
}

/* ── Grid des cards ────────────────────────────────────────── */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* ============================================================
   FAQ CARD — ACCORDION
   ============================================================ */
.faq-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.faq-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(26, 58, 107, .2);
}

/* Card ouverte */
.faq-card.display {
  border-color: var(--navy-light);
  box-shadow: 0 4px 24px rgba(26, 58, 107, .12);
}

/* ── Question (cliquable) ─────────────────────────────────── */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.faq-question span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: color .2s;
}

.faq-card.display .faq-question span {
  color: var(--navy);
}

/* Icône +/− portée par la card (via JS class) */
.faq-card>i.fa-plus,
.faq-card>i.fa-minus {
  /* on cache l'icône native, on utilise un pseudo sur .faq-question */
  display: none;
}

/* Chevron custom sur .faq-question via ::after */
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A3A6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .35s var(--ease-out), background-color .25s ease;
  border: 1px solid var(--border);
}

.faq-card.display .faq-question::after {
  transform: rotate(180deg);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border-color: var(--navy);
}

/* Séparateur */
.faq-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 1.4rem;
  display: none;
}

.faq-card.display hr {
  display: block;
}

/* ── Réponse (accordion body) ─────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out), padding .35s var(--ease-out);
  padding: 0 1.4rem;
}

.faq-answer.view {
  max-height: 600px;
  padding: 1rem 1.4rem 1.3rem;
}

.faq-answer p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer p em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

/* span décoratif (inutilisé mais présent dans le HTML) */
.faq-card>span.span {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
   @media (max-width:650px) {

  div.contact-btn {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    width: 300px;
  }
}

@media (max-width: 768px) {
  .menu {
    display: flex;
  }

  .faq-container {
    flex-direction: column;
    gap: 1rem;
  }

  /* Sidebar collapsée par défaut */
  .faq-links {
    position: static;
    flex-direction: column;
    display: none;
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .6rem;
    gap: .3rem;
  }

  .faq-links.block {
    display: flex;
  }

  .faq-links a {
    padding: .65rem .9rem;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem 1.1rem;
  }

  .faq-answer.view {
    padding: .9rem 1.1rem 1.1rem;
  }

  .faq-card hr {
    margin: 0 1.1rem;
  }
}