/* =========================================================
   APPRIM — Feuille de style des pages Experience_, Partenaire_Maquette et Mentions_Legales
   ========================================================= */

:root {
    --navy: #1f1d86;
    --blue: #2851d6;
    --blue-light: #a9bdfa;      /* bleu électrique éclairci, sur fond bleu nuit */
    --light: #f7f6f6;
    --border: #e6e6ee;
    --text: #1f1d86;
    --muted: #55557a;
    --radius: 12px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 3000; }
.skip-link:focus { left: 10px; top: 10px; }
.container { width: 90%; max-width: 1024px; margin: 0 auto; }

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    height: 80px; background: var(--navy); color: #fff;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-wrapper { position: relative; display: flex; align-items: center; }
.logo-link {
    display: flex; align-items: center; gap: 15px;
    text-decoration: none; color: inherit; cursor: pointer;
    width: 270px; padding: 5px; border-radius: 8px; transition: background 0.3s;
    background: none; border: none; font: inherit; text-align: left;
}
.logo-link:hover { background: rgba(255, 255, 255, 0.1); }
.header-logo { height: 50px; width: auto; }
.header-text-group { display: flex; flex-direction: column; }
.header-title { font-size: 0.95rem; font-weight: bold; line-height: 1.8; letter-spacing: 0.05rem; }
.header-subtitle { font-weight: normal; font-size: 0.7rem; line-height: 1.2; }
.cta-header {
    background: #fff; color: var(--navy); padding: 8px 16px; text-decoration: none;
    font-weight: bold; border-radius: 5px; font-size: 0.95rem; white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}
.cta-header:hover { background: #f0f0f0; transform: translateY(-1px); }
.txt-mobile { display: none; }
.txt-desktop { display: inline; }

/* =========================================================
   SECTIONS & TYPOGRAPHIE
   ========================================================= */
.section { padding: 56px 0; }
.section.light { background-color: var(--light); }
h1, .section-title { color: var(--navy); margin-bottom: 20px; font-size: 1.8rem; line-height: 1.35; }
h2 { color: var(--blue); margin-bottom: 15px; font-size: 1.3rem; line-height: 1.3; }
h2.section-title { color: var(--navy); font-size: 1.8rem; }
h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35; }
p { margin-bottom: 15px; }
.lead { font-size: 1.1rem; max-width: 820px; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08rem;
    text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.caps { text-transform: uppercase; letter-spacing: 0.03rem; }

ul.benefits { list-style: none; margin: 0 0 15px; }
ul.benefits li { position: relative; padding-left: 30px; margin-bottom: 12px; }
ul.benefits li::before {
    content: ''; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px;
    border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e3e9fb;
}
.split-img img { width: 100%; max-width: 1024px; border-radius: 20px; display: block; margin: 24px auto 0; height: auto; }
.split-img img.square { max-width: 680px; }

/* Tags & gélules */
.tag {
    display: inline-block; padding: 6px 14px; background-color: var(--blue); color: #fff;
    border-radius: 25px; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05rem;
    font-weight: 500; transition: all 0.3s ease;
}
.tag:hover { background-color: var(--navy); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-static { cursor: default; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06rem; text-transform: uppercase; padding: 5px 12px; }
.tag-static:hover { background-color: var(--blue); }
.pill-row.on-dark .tag-static { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }

/* Cartes */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; display: flex; flex-direction: column;
}
.card p { font-size: 0.95rem; color: var(--muted); }
.card ul.benefits li { font-size: 0.92rem; margin-bottom: 8px; }
.card.featured { border: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(40, 81, 214, 0.12); position: relative; }
.badge {
    display: inline-block; align-self: flex-start; background: var(--blue); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05rem; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Étapes */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step h3 { font-size: 1.05rem; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--blue); }
.step p { font-size: 0.95rem; margin-bottom: 0; color: var(--muted); }

/* FAQ */
.faq-list details { background: #fff; margin-bottom: 12px; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary { list-style: none; display: flex; align-items: center; gap: 12px; font-weight: bold; color: var(--navy); cursor: pointer; }
.faq-list summary::before { content: '▶'; font-size: 0.7rem; transition: transform 0.3s; }
.faq-list details[open] summary::before { transform: rotate(90deg); }
.faq-list p { margin-top: 10px; margin-bottom: 0; color: #555; }

/* CTA formulaire : pleine largeur du contenu */
.button-container { display: flex; justify-content: center; width: 100%; margin-top: 20px; }
.cta-tally-modal {
    width: 100%; background: var(--navy); color: #fff; border: none;
    padding: 16px 10px; border-radius: 8px; cursor: pointer; font-weight: bold;
    font-size: 1.1rem; font-family: inherit; text-align: center;
    transition: background 0.3s, transform 0.2s;
}
.cta-tally-modal:hover { background: var(--blue); transform: translateY(-2px); }
.reassurance { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* =========================================================
   FOOTER COMPACT
   ========================================================= */
.footer { background: var(--navy); color: #d9d9f0; padding: 22px 0 14px; font-size: 0.85rem; }
.footer a { color: #d9d9f0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; padding-bottom: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.footer-brand strong { color: #fff; font-size: 0.95rem; letter-spacing: 0.05rem; }
.footer-brand span { color: var(--blue-light); font-size: 0.8rem; }
.footer-nav, .footer-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; }
.footer-nav li + li::before, .footer-sectors li + li::before { content: '·'; margin: 0 10px; color: rgba(255,255,255,0.35); }
.footer-nav a { color: #fff; font-weight: 600; }
.footer-sectors {
    border-top: 1px solid rgba(255,255,255,0.12); padding: 10px 0;
    font-size: 0.82rem;
}
.footer-sectors .label {
    color: var(--blue-light); font-weight: 700; letter-spacing: 0.06rem; text-transform: uppercase;
    font-size: 0.72rem; margin-right: 12px;
}
.footer-sectors .label::before { content: none !important; }
.footer-sectors .label + li::before { content: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.78rem;
}
.footer-bottom p { margin: 0; }

/* Retour en haut */
#backToTop {
    display: none; position: fixed; bottom: 20px; right: 20px; z-index: 1100;
    width: 45px; height: 45px; background-color: var(--navy); color: white; text-decoration: none;
    border-radius: 50%; justify-content: center; align-items: center; font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s ease;
}
#backToTop.visible { display: flex; }
#backToTop:hover { background-color: var(--blue); transform: translateY(-3px); }

/* =========================================================
   PAGES INTÉRIEURES — fil d'Ariane, autres secteurs
   ========================================================= */
.breadcrumb { font-size: 0.85rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.other-sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* =========================================================
   PAGES EXPERIENCE_ — bouton DÉCOUVRIR (démo)
   ========================================================= */
.demo-cta { display: flex; justify-content: center; margin-top: 24px; }
.demo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 36px; border-radius: 8px;
    font-family: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.08rem;
    text-decoration: none; box-shadow: 0 6px 18px rgba(31, 29, 134, 0.18);
    background: #2851d6; color: #ffffff;
    transition: transform 0.2s, filter 0.2s;
}
.demo-btn::after { content: '\2197'; font-size: 1.05em; }
.demo-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.demo-btn:focus-visible { outline: 3px solid #1f1d86; outline-offset: 3px; }

/* =========================================================
   PAGE PARTENAIRE — étapes à 4 colonnes, tableau comparatif
   ========================================================= */
.steps-grid.four { grid-template-columns: repeat(4, 1fr); }
.steps-grid.four .step { text-align: left; }
.compare-wrap { overflow-x: auto; margin-top: 20px; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; font-size: 0.93rem; background: #fff; }
.compare col { width: 25%; }
.compare th, .compare td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; line-height: 1.35; }
.compare tbody th { font-weight: 600; color: var(--navy); background: var(--light); }
.compare td:last-child { font-weight: 600; }
.compare th:last-child, .compare td:last-child {
    border-left: 3px solid var(--blue); border-right: 3px solid var(--blue);
    background: #f2f5fe; color: var(--navy);
}
.compare thead th:last-child { background: var(--blue); border-top: 3px solid var(--blue); color: #fff; }
.compare tbody tr:last-child td:last-child { border-bottom: 3px solid var(--blue); }

@media (max-width: 900px) { .steps-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .steps-grid.four { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .demo-btn { width: 100%; } }

/* =========================================================
   RESPONSIVE (commun)
   ========================================================= */
@media (max-width: 1024px) {
    .container { width: 85%; }
    .cta-header { font-size: 0.85rem; padding: 8px 12px; }
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { width: 90%; }
    .logo-link { width: 220px; gap: 10px; }
    .header-subtitle { font-size: 0.65rem; display: block; }
    .header-logo { height: 40px; }
    .header-title { font-size: 0.85rem; }
    .cta-header { font-size: 0.75rem; padding: 6px 10px; }
    .txt-desktop { display: none; }
    .txt-mobile { display: inline; }
    h1, .section-title, h2.section-title { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .cards-grid.two { grid-template-columns: 1fr; }
    .footer-top, .footer-bottom { justify-content: center; text-align: center; }
    .footer-nav, .footer-sectors { justify-content: center; gap: 6px 16px; }
    .footer-nav li + li::before, .footer-sectors li + li::before { content: none; }
    .footer-sectors .label { width: 100%; text-align: center; margin: 0 0 2px; }
    .footer-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
