:root {
    --ink: #0f172a;
    --muted: #64748b;
    --brand: #4278E2;
    --brand-2: #2F5CC2;
}
* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fbff, #eef4ff 30%, #f7f7ff);
    color: var(--ink);
    scroll-behavior: smooth;
}
/* Réserve un peu de place au footer global */
.wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: calc(100vh - 60px);
}
/* Colonne gauche (sommaire) */
.left {
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 32px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo img {
    max-width: 80px;
    border-radius: 50%;
}
.toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 12px;
}
.toc h2 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--brand-2);
}
.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc li {
    margin: 8px 0; }
.toc a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}
.toc a:hover {
    color: var(--brand);
}

/* Colonne droite (contenu) */
.right {
    padding: 40px 60px;
    overflow-y: auto;
}
h1 {
    font-size: 32px;
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
h1 .grad {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #e0e7ff;
    vertical-align: middle;
}
h2 {
    font-size: 20px;
    margin: 28px 0 12px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}
h3 {
    font-size: 16px;
    margin: 0 0 8px;
}
/* FAQ blocs */
.faq-section {
    margin-bottom: 24px;
}
details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}
details[open] {
    background: #fdfdff;
}
summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "＋";
    float: right;
    font-weight: 700;
    color: #64748b;
}
details[open] summary::after {
    content: "−";
}
.faq-answer {
    margin-top: 10px;
    color: #334155;
    line-height: 1.6;
}
p, ul {
    margin-bottom: 18px;
    line-height: 1.6;
    color: #334155;
}
ul, ol {
    padding-left: 20px;
}
a {
    color: var(--brand-2);
}
.note {
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px;
}
.muted {
    color: var(--muted);
    font-size: 14px;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 16px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; text-decoration: none; font-weight: 600;
    box-shadow: 0 10px 24px rgba(66,120,226,.25);
}
.btn:hover {
    filter: brightness(1.05);
}
/* Conteneur de l'iframe pour un rendu propre */
.form-container {
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;               /* masque les bords arrondis */
}
/* Iframe Google Forms (embed officiel) */
.form-frame {
    width: 100%;
    height: 1230px;                 /* adapte si ton form s'allonge */
    border: 0;
    display: block;
}

/* KPIs (Impact & engagements) */
.kpis {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.kpis li {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.kpis li strong {
    color: var(--brand-2);
}
.kpis li span {
    font-weight: 600;
    color: var(--ink);
}

.cards {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.cards .card {
    grid-column: span 12;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}
.cards .card h3 { margin-top: 0; }

/* Pastilles (tags) */
.tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #e0e7ff;
    margin-right: 6px;
}

/* Footer global */
.site-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.site-footer a {
    color: #4278E2;
    text-decoration: none;
    margin: 0 6px;
}
.site-footer a:hover {
    text-decoration: underline;
}

@media (min-width: 900px) {
    .cards .card { grid-column: span 6; }
}
@media (min-width: 1200px) {
    .cards .card.role { grid-column: span 4; }
}
@media (max-width: 900px) {
    .wrap {
        grid-template-columns: 1fr;
    }
    .left {
        position: static;
        height: auto;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    .right {
        padding: 20px;
    }
    .hide-m, .site-footer a {
        display: none;
    }
}

/* ====== Language dropdown (button + menu) ====== */
.lang-switch { position: fixed; top: 16px; right: 16px; z-index: 4000; font-family: inherit; }

/* Button styled like social icons */
.lang-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px;
    background: rgba(255,255,255,.10); border: 1px solid #64748b4f; cursor: pointer; transition: background .2s; }
.lang-btn:hover { background: #d9e4ff; }
.lang-btn:focus-visible { outline: 3px solid rgba(66,120,226,.35); outline-offset: 3px; }
.lang-btn img { width: 25px; height: 25px; }

/* Dropdown */
.lang-menu { position: absolute; right: 0; margin-top: 8px; display: none; min-width: 220px;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.12); padding: 6px; }
.lang-menu.open { display: block; }

.lang-option {
    width: 100%;
    display: flex;                /* garantit le layout aussi pour <a> */
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font: inherit;
    text-decoration: none;        /* liens sans soulignement */
    color: inherit;               /* hérite de la couleur */
}
.lang-option:hover { background: #f8fafc; }
.lang-option[aria-current="true"] {
    background: #f1f5ff;
    pointer-events: none;         /* évite le clic sur la langue déjà sélectionnée */
}

.lang-col { display: flex; flex-direction: column; line-height: 1.25; }
.lang-label { font-weight: 700; font-size: 14px; color: #0f172a; }
.lang-hint { font-size: 12px; color: #64748b; margin-top: 2px; }

/* Mobile: hide right column for a clean simple hero */
@media (max-width: 1024px) {
    .wrap { grid-template-columns: 1fr; }
    .right { display: none; }
    .lang-btn { background: #fff; border: 1px solid #e5e7eb; }
}
@media (max-width: 900px) {
    .hide-m, .site-footer a {
        display: none;
    }
    .lang-btn img { filter: none; }
}