/* Trust Center GAC Software — feuille de style unique (aucun style inline : compatible CSP style-src 'self') */

/* ---------- Polices auto-hébergées (Poppins, SIL OFL 1.1) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Jetons ---------- */
:root {
  --navy: #001266;
  --navy-deep: #000d47;
  --blue: #005cff;
  --blue-dark: #063099;
  --blue-soft: #ebf2ff;
  --blue-pale: #a9c8ff;
  --blue-mist: #d6e4ff;
  --text: #33405f;
  --text-2: #4d597a;
  --muted: #6b7896;
  --line: #e1e6ef;
  --line-2: #cbd3e1;
  --bg-alt: #f7f8fb;
  --green-bg: #ebfbeb; --green: #006b00;
  --orange-bg: #fff5eb; --orange: #a34f00;
  --grey-bg: #eef1f6;
  --gutter: clamp(16px, 5.5vw, 80px);
  --radius: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; }
section[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; text-align: center; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-soft); color: var(--navy); }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { font-size: 16px; padding: 15px 28px; }

/* ---------- Pastilles ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--blue { background: var(--blue-soft); color: var(--blue-dark); }
.badge--orange { background: var(--orange-bg); color: var(--orange); }
.badge--grey { background: var(--grey-bg); color: var(--text); }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { min-height: 80px; display: flex; align-items: center; gap: 24px; }
.site-header .spacer { flex: 1; }
.logo img { height: 44px; width: auto; }
.site-header__label { font-size: 17px; font-weight: 600; color: var(--navy); padding-left: 24px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.lang { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 999px; color: var(--navy); }
.lang a:hover { background: var(--blue-soft); color: var(--navy); }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.lang abbr { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, #00329e 55%, var(--blue) 100%); color: #fff; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 96px; display: flex; gap: 64px; align-items: center; }
.hero__deco { position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; opacity: .08; pointer-events: none; }
.hero__text { display: flex; flex-direction: column; gap: 24px; flex: 1 1 560px; max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.hero .eyebrow { font-size: 13px; color: var(--blue-pale); }
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--blue-mist); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero__side { display: flex; flex-direction: column; gap: 16px; flex: 1 1 420px; }
.cert-card { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: center; box-shadow: 0 24px 48px rgba(0,18,102,.25); }
.cert-seal { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-seal span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cert-seal span:last-child { font-size: 20px; font-weight: 700; color: var(--blue); }
.cert-card__body { display: flex; flex-direction: column; gap: 4px; }
.cert-card__title { font-size: 18px; font-weight: 600; }
.cert-card__meta { font-size: 14px; color: var(--text-2); }
.cert-card .badge { align-self: flex-start; margin-top: 6px; }
.hero__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero__chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 16px; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; }
.hero__chip span { font-weight: 400; color: var(--blue-mist); }
.status-link { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; color: #fff; font-size: 14px; }
.status-link:hover { color: #fff; background: rgba(255,255,255,.18); }
.status-link span:last-child { margin-left: auto; color: var(--blue-pale); }

/* ---------- Chiffres clés ---------- */
.figures { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.figures .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.figure { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.figure strong { font-size: 44px; font-weight: 600; color: var(--navy); line-height: 1.2; white-space: nowrap; }

/* ---------- Navigation interne ---------- */
.section-nav { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,18,102,.06); }
.section-nav .wrap { display: flex; align-items: center; gap: 8px; }
.section-nav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; flex: 1; }
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; }
.section-nav a[aria-current="true"] { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.updated { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--tight-bottom { padding-bottom: 40px; }
.section--tight-top { padding-top: 40px; }
.band-alt { background: var(--bg-alt); }
.band-blue { background: var(--blue-soft); }
.section .wrap { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; font-weight: 600; color: var(--navy); }
.section-head p { font-size: 17px; max-width: 820px; }
.section-head--row { flex-direction: row; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 520px; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 3px rgba(0,18,102,.08); }
.card .badge { align-self: flex-start; }
.card h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.card p { font-size: 14px; line-height: 1.6; }

.control { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.control__head { display: flex; align-items: center; gap: 12px; }
.control__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.control h3 { font-size: 18px; font-weight: 600; color: var(--navy); }

.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.checklist svg { flex-shrink: 0; margin-top: 2px; }
.checklist strong { color: var(--navy); font-weight: 600; }

/* ---------- Tableaux (documents, sous-traitants) ---------- */
.table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.table--shadow { box-shadow: 0 4px 12px rgba(0,18,102,.08); }
.table--border { border: 1px solid var(--line); }
.table__head { display: grid; gap: 16px; padding: 14px 28px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.docs .table__head, .doc-row { grid-template-columns: 2.2fr 3fr 1fr 1.1fr; }
.doc-row { display: grid; gap: 16px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-row__name { font-weight: 600; color: var(--navy); }
.doc-row__action { font-weight: 600; }
.doc-row__action-cell { text-align: right; }
.cell-label { display: none; }

.subs .table__head, .sub-row { grid-template-columns: 1.5fr 2.1fr 1.9fr 1.4fr 0.9fr 1fr 0.8fr; }
.subs .table__head { padding: 14px 24px; }
.sub { border-top: 1px solid var(--line); }
.sub > summary { list-style: none; cursor: pointer; }
.sub > summary::-webkit-details-marker { display: none; }
.sub-row { display: grid; gap: 16px; align-items: center; padding: 16px 24px; font-size: 14px; line-height: 1.45; }
.sub-row__name { font-weight: 600; color: var(--navy); }
.sub-row__toggle { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.sub-row__toggle::after { content: "Détails ▾"; }
.sub[open] .sub-row__toggle::after { content: "Masquer ▴"; }
.sub > summary:hover .sub-row__toggle { color: var(--blue-dark); }
.sub__panel { margin: 0 24px 20px; padding: 20px 24px; background: var(--bg-alt); border-radius: 12px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.sub__panel > div { display: flex; flex-direction: column; gap: 10px; }
.sub__panel .checklist { gap: 8px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-pill { background: #fff; border: 1px solid var(--line-2); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.sub__solutions { font-size: 13px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.filter span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter[aria-pressed="true"] span { background: rgba(255,255,255,.2); color: #fff; }
.filters__note { margin-left: auto; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; }
.footnote { font-size: 13px; color: var(--muted); }

/* ---------- Incidents & FAQ ---------- */
.split .wrap { flex-direction: row; gap: 64px; }
.split .section-head { width: 460px; flex-shrink: 0; gap: 14px; }
.split .section-head p { font-size: 16px; }
.split__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.step { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step__when { width: 110px; flex-shrink: 0; font-size: 24px; font-weight: 600; color: var(--blue); }
.step__body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.step__body strong { font-size: 17px; font-weight: 600; color: var(--navy); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 17px; font-weight: 600; color: var(--navy); cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; gap: 48px; align-items: flex-start; }
.contact__text { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.contact .eyebrow { color: var(--blue-pale); }
.contact h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; }
.contact p { font-size: 16px; color: var(--blue-mist); max-width: 640px; }
.contact__links { display: flex; flex-direction: column; gap: 12px; width: 420px; max-width: 100%; }
.contact__links a { padding: 17px 21px; border-radius: 12px; font-size: 16px; font-weight: 600; border: 1.5px solid #74a6ff; color: #fff; overflow-wrap: anywhere; }
.contact__links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.contact__links a.is-main { background: #fff; border-color: #fff; color: var(--navy); }
.contact__links a.is-main:hover { background: var(--blue-soft); }

.site-footer { background: var(--navy-deep); color: #9aa6bd; font-size: 13px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer .spacer { flex: 1; }
.site-footer a { color: var(--blue-mist); }

/* ---------- Bandeau de confirmation ---------- */
.notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; width: min(560px, calc(100% - 32px)); background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 12px 32px rgba(0,18,102,.3); font-size: 15px; }
.notice p { flex: 1; }
.notice button { background: transparent; border: 1.5px solid #74a6ff; color: #fff; border-radius: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; font-weight: 600; }

/* ---------- Fenêtre « Demander l'accès » ---------- */
.modal { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 24px 48px rgba(0,18,102,.16); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(0,13,71,.45); }
/* Sans JavaScript : la fenêtre s'affiche via l'ancre #demande-acces */
.modal:target { display: block; position: fixed; inset: 0; margin: auto; z-index: 100; }
.form { padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.form__head { display: flex; align-items: flex-start; gap: 16px; }
.form__head > div { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form__head h2 { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.form__head p { font-size: 15px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--grey-bg); border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font-size: 15px; color: var(--text); background: #fff; width: 100%; }
.field input, .field select { height: 48px; }
/* Sélecteur : apparence native retirée (macOS ignore sinon hauteur, arrondi et padding) */
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url(../img/chevron.svg) no-repeat right 14px center / 16px 16px; cursor: pointer; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field .req { color: var(--orange); }
.choices { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.choices legend { padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.check--small { font-size: 13px; line-height: 1.5; gap: 12px; }
.form__error { color: #b00020; font-size: 14px; font-weight: 500; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__privacy { font-size: 12px; color: var(--muted); flex: 1 1 260px; }
.form__foot .btn--text { background: transparent; color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero .wrap { flex-direction: column; align-items: stretch; padding-top: 64px; padding-bottom: 72px; }
  .hero__text, .hero__side { flex-basis: auto; max-width: none; }
  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .wrap { flex-direction: column; gap: 24px; }
  .split .section-head { width: auto; }
  .contact .wrap { flex-direction: column; }
  .updated { display: none; }
  /* Tableaux → cartes */
  .table__head { display: none; }
  .doc-row, .sub-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px; }
  .sub-row__toggle { justify-self: start; }
  .doc-row__action-cell { text-align: left; }
  .cell-label { display: inline; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
  .sub__panel { grid-template-columns: minmax(0, 1fr); margin: 0 16px 16px; padding: 16px; gap: 20px; }
  .filters__note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .site-header__cta { display: none; }
  .site-header .wrap { gap: 12px; min-height: 64px; }
  .site-header__label { font-size: 15px; padding-left: 12px; }
  .logo img { height: 32px; }
  .hero__chips { grid-template-columns: minmax(0, 1fr); }
  .cert-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .figures .wrap { grid-template-columns: minmax(0, 1fr); }
  .figure strong { font-size: 36px; }
  .grid--4, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .form__grid, .choices { grid-template-columns: minmax(0, 1fr); }
  .step { gap: 16px; }
  .step__when { width: 72px; font-size: 20px; }
  .form__foot .btn { flex: 1 1 auto; }
}
@media print {
  .section-nav, .modal, .notice, .hero__deco { display: none !important; }
  .sub__panel { break-inside: avoid; }
}
