/* ================================================
   IA Tourisme France — Feuille de style principale
   ================================================ */

/* --- Variables --------------------------------------- */
:root {
  --bg:           #fcfcff;
  --surface:      #f4f2ff;
  --border:       #e6e2f0;
  --ink:          #2d2a3d;
  --ink-mid:      #5a5670;
  --ink-light:    #9a96b0;
  --accent:       #975be5;   /* violet */
  --accent-hover: #7e48c9;
  --logo-dark:    #2d2a3d;

  --font-serif: 'IBM Plex Sans', system-ui, sans-serif;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;

  --radius-sm:  2px;
  --radius-md:  3px;

  --max-w:      760px;
  --side-pad:   40px;

  --transition: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  /* Ajusté pour que le titre de section arrive pile sous la nav */
  scroll-padding-top: 60px; 
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus visible accessible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Liens */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* --- Utilitaires ------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header ------------------------------------------ */
.site-header {
  position: sticky;
  top: -110px; 
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 20px var(--side-pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.site-header__logo:hover { opacity: 0.78; }
.site-header__logo:focus-visible { border-radius: var(--radius-sm); }

.site-header__logo-svg {
  height: 52px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}
.site-header__nav a {
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--ink-light);
  text-decoration: none;
  padding: 12px 0; 
  margin: 0 16px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-header__nav a:hover, .site-header__nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --- Hero -------------------------------------------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--side-pad) 64px;
  border-bottom: 1px solid var(--border);
}

/* ... (Les sections suivantes restent identiques à ton code d'origine) ... */

.hero__kicker {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 640px;
}
.hero__intro strong {
  font-weight: 500;
  color: var(--ink);
}

/* --- Table des matières ------------------------------ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 48px;
}

.toc__title {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 14px;
}

.toc__list {
  list-style: none;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.toc__list li:last-child { border-bottom: none; }

.toc__list li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--ink-light);
  font-weight: 500;
  flex-shrink: 0;
}

.toc__list a {
  font-size: 0.92rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color var(--transition);
}
.toc__list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Article ----------------------------------------- */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--side-pad);
}

.article__section {
  margin-bottom: 72px;
}
.article__section:last-child { margin-bottom: 0; }

.article__section h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  margin-bottom: 20px;
}

.article__section h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--ink);
}

.article__section p {
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.article__section p:last-child { margin-bottom: 0; }

/* Listes */
.article__section ul {
  margin: 16px 0 18px;
  padding-left: 0;
  list-style: none;
}
.article__section ul li {
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  position: relative;
  font-size: 0.96rem;
}
.article__section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}
.article__section ul li:last-child { border-bottom: none; }

/* --- Tableau métiers --------------------------------- */
.metiers-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.93rem;
}

.metiers-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  padding: 10px 16px;
  border-bottom: 2px solid var(--border);
}

.metiers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-mid);
  line-height: 1.5;
}
.metiers-table tr:last-child td { border-bottom: none; }

.metiers-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  width: 190px;
}

.metiers-table tbody tr {
  transition: background var(--transition);
}
.metiers-table tbody tr:hover {
  background: var(--surface);
}

/* --- CTA inline -------------------------------------- */
.cta-inline {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.cta-inline p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--ink-mid);
}
.cta-inline p:last-of-type { margin-bottom: 0; }
.cta-inline strong { color: var(--ink); }

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  transition: background var(--transition), transform var(--transition);
}
.cta-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* --- FAQ --------------------------------------------- */
.faq-section {
  border-top: 1px solid var(--border);
  padding-top: 72px;
  margin-top: 72px;
}

.faq-section__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.25;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item__btn {
  all: unset;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-item__btn:hover { color: var(--accent); }

.faq-item__icon {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  user-select: none;
}
.faq-item[open] .faq-item__icon,
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding-bottom: 22px;
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* Animation ouverture/fermeture */
.faq-item__answer[hidden] { display: none; }

/* --- CTA final --------------------------------------- */
.cta-final {
  background: var(--ink);
  color: #f3f2ee;
  padding: 80px var(--side-pad);
}

.cta-final__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-final__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(243, 242, 238, 0.45);
  margin-bottom: 20px;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta-final__desc {
  color: rgba(243, 242, 238, 0.6);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.main-btn {
  display: inline-block;
  background: #f3f2ee;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition);
}
.main-btn:hover {
  opacity: 0.9;
  color: var(--ink);
  transform: translateY(-1px);
}

.sub-link {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(243, 242, 238, 0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.sub-link:hover { color: rgba(243, 242, 238, 0.65); }

/* --- Footer ------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--side-pad);
  font-size: 0.83rem;
  color: var(--ink-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ink-light);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }

/* --- Responsive -------------------------------------- */
@media (max-width: 680px) {
  :root { 
    --side-pad: 20px; 
  }

  /* Le header principal ne bouge plus, il défile normalement */
  .site-header {
    position: relative;
    top: 0; /* On remet à 0 pour voir le logo au début */
    padding: 30px var(--side-pad) 10px;
    border-bottom: none;
    gap: 15px;
  }

  .site-header__logo-svg { 
    height: 42px; /* Taille du logo au repos sur mobile */
  }

  /* Seule la navigation devient collante au sommet */
  .site-header__nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg); /* Fond opaque pour cacher le texte dessous */
    width: 100vw;
    margin-left: calc(var(--side-pad) * -1);
    padding: 12px var(--side-pad);
    border-bottom: 1px solid var(--border);
  }

  /* Ajustement du scroll pour ne plus toucher le titre (image_d1eda0.png) */
  html {
    scroll-padding-top: 80px; 
  }
}
  .site-header__logo-svg { height: 38px; }
  .site-header__nav a { margin: 0 10px; font-size: 0.8rem; }
}

/* --- Print ------------------------------------------- */
@media print {
  .site-header, .toc, .cta-inline, .cta-final, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { padding: 0 0 24pt; border-bottom: 1pt solid #ccc; }
  .article { padding: 24pt 0; max-width: 100%; }
}