*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Couleurs de base */
    --bg-dark: #020617;
    --bg-light: #f8fafc;
    
    /* Couleurs de fond des cartes/éléments */
    --bg-card-dark: rgba(15,23,42,0.97);
    --bg-card-light: rgba(255,255,255,0.99);

    /* Couleurs de texte */
    --text-main-dark: #e5e7eb;
    --text-main-light: #0f172a;
    
    /* Couleur Accent (Bleu Ciel/Primaire) */
    --accent: #38bdf8;
    --accent-rgb: 56, 189, 248; /* Ajout pour les ombres RGB */
    --accent-soft: rgba(56,189,248,0.16);
    
    /* Bords et Séparateurs */
    --border-soft-dark: rgba(148,163,184,0.55);
    --border-soft-light: rgba(148,163,184,0.4);
    
    /* Radii et Ombres */
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.65);
    
    /* Espacement général pour les padding/marges */
    --spacing: 0.9rem; 

    /* Variables pour le thème dynamique */
    --color-bg: var(--bg-dark);
    --color-text: var(--text-main-dark);
    --color-primary: var(--accent);
    --color-border: var(--border-soft-dark);
    --color-form-bg: rgba(15,23,42,0.95); /* Fond des champs de formulaire */
    --color-result-bg: rgba(15,23,42,0.9); /* Fond des blocs PONT / résultat */
}

/* Thème Clair - Mise à jour des variables dynamiques */
body.theme-light {
    --color-bg: var(--bg-light);
    --color-text: var(--text-main-light);
    --color-border: var(--border-soft-light);
    --color-form-bg: #ffffff;
    --color-result-bg: rgba(15,23,42,0.05); 
}

/* ------------------------------------------------------------------- */
/* GLOBAL RESET & BASE */
/* ------------------------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.15rem;
}

.accent {
    color: var(--accent);
}

/* ------------------------------------------------------------------- */
/* HEADER & NAVIGATION */
/* ------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    /* Utilisation des variables dynamiques pour les dégradés */
    background: linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.92), transparent);
}

body.theme-light .site-header {
    background: linear-gradient(to bottom, rgba(248,250,252,0.98), rgba(248,250,252,0.95), transparent);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    gap: 0.75rem;
}

.brand-block {
    display: flex;
    align-items: center;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.logo-svg {
    height: 32px;
    width: auto;
    display: block;
    transition: transform .25s ease;
}

.logo-svg:hover {
    transform: scale(1.06);
}

.brand-text-main {
    font-weight: 600;
    letter-spacing: .03em;
}

.brand-text-sub {
    font-size: 0.78rem;
    opacity: .7;
}

/* Nav desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.82;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    transition: opacity .18s ease, background .18s ease;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(148,163,184,0.2);
}

.nav-link.is-active {
    opacity: 1;
    background: var(--accent-soft);
}

/* Header actions (desktop) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ------------------------------------------------------------------- */
/* BUTTONS & PILLS */
/* ------------------------------------------------------------------- */

.btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: white;
    border-color: rgba(148,163,184,0.1);
    box-shadow: 0 8px 26px rgba(37,99,235,0.65);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37,99,235,0.8);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(148,163,184,0.6);
    color: inherit;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148,163,184,0.4);
    color: inherit;
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.pill {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.74rem;
}

.pill-soft {
    background: var(--accent-soft);
}

.pill-outline {
    border: 1px solid rgba(148,163,184,0.65);
}

/* Style de base des pills (boutons tags) */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;      /* un peu plus gros que 0.15 / 0.55 */
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    color: var(--text-primary);  /* ou #e5e7eb selon ta palette */
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

/* Variante “plein” */
.pill-soft {
    background: var(--accent-soft);
}

/* Variante contour */
.pill-outline {
    border-color: rgba(148, 163, 184, 0.65);
    background: transparent;
}

/* Hover commun */
.pill:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, 0.15);
}




.btn-full-width {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
}
.btn-full-width .btn-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ------------------------------------------------------------------- */
/* MOBILE NAV & TOGGLE */
/* ------------------------------------------------------------------- */

.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0.25rem;
    margin-left: 0.15rem;
    color: var(--color-text);
}

.nav-toggle-line {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

.nav-toggle-line + .nav-toggle-line {
    margin-top: 4px;
}

.mobile-nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card-dark);
    box-shadow: 0 18px 40px rgba(15,23,42,0.85);
}

body.theme-light .mobile-nav {
    background: var(--bg-card-light);
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-nav .nav-link {
    padding: 0.25rem 0;
}

/* ------------------------------------------------------------------- */
/* HERO SECTION */
/* ------------------------------------------------------------------- */

.hero-section {
    padding: 2.3rem 0 1.8rem;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    align-items: center;
}

.hero-content--center {
    justify-content: center;
}

.hero-text {
    flex: 1 1 320px;
}

.hero-text--narrow {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 0.7rem;
}

.hero-subtitle {
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
    opacity: .88;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.hero-text--narrow .hero-actions {
    justify-content: center;
}

.hero-meta {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Hero preview (Carte d'exemple) */
.hero-side {
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
}

.hero-preview {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft-dark);
    background: radial-gradient(circle at top, rgba(56,189,248,0.15), var(--bg-card-dark));
    padding: 0.9rem 0.9rem 1rem;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 340px;
}

body.theme-light .hero-preview {
    border-color: var(--border-soft-light);
    background: radial-gradient(circle at top, rgba(56,189,248,0.08), var(--bg-card-light));
}

.hero-preview-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------- */
/* GENERAL SECTIONS & GRIDS */
/* ------------------------------------------------------------------- */

.section {
    padding: 1.8rem 0 1.5rem;
}

.section-header {
    text-align: left;
    margin-bottom: 0.9rem;
}

.section-title {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.section-subtitle {
    margin: 0;
    font-size: 0.94rem;
    opacity: .82;
}

.section-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Grids */
.steps-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.grid-two-cols {
    display: grid;
    gap: 1.2rem; /* Augmentation du gap pour plus d'aération */
    margin-top: 1.2rem;
}

@media (min-width: 768px) {
    .grid-two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .steps-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

/* ------------------------------------------------------------------- */
/* CARDS & ELEMENTS */
/* ------------------------------------------------------------------- */

.step-card,
.glass-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft-dark);
    padding: var(--spacing);
    background: radial-gradient(circle at top, rgba(56,189,248,0.09), var(--bg-card-dark));
}

body.theme-light .step-card,
body.theme-light .glass-card {
    border-color: var(--border-soft-light);
    background: radial-gradient(circle at top, rgba(56,189,248,0.06), var(--bg-card-light));
}

.step-card-alt {
    border-color: rgba(147,51,234,0.7);
    background: radial-gradient(circle at top, rgba(147,51,234,0.26), var(--bg-card-dark));
}

body.theme-light .step-card-alt {
    background: radial-gradient(circle at top, rgba(147,51,234,0.14), var(--bg-card-light));
}

.step-icon {
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin-bottom: 0.4rem;
    background: var(--bg-card-dark);
    color: var(--text-main-dark);
}

body.theme-light .step-icon {
    background: rgba(15,23,42,0.08);
    color: var(--text-main-light);
}

.step-title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.step-text {
    margin: 0;
    font-size: 0.86rem;
}

/* Kerki / ADN (Structure PONT) */
.kerki-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kerki-title {
    font-weight: 600;
    letter-spacing: .12em;
    font-size: 0.86rem;
    text-transform: uppercase;
    opacity: .8;
}

.kerki-li {
    font-size: 0.94rem;
    padding: 0.2rem 0;
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
}

/* Tabs pour PONT Express (Texte/Image/Logo) */
.tab-row {
    display: flex;
    gap: 0.6rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
}

.tab-button:hover {
    opacity: 1;
    background: rgba(148,163,184,0.1);
}

.tab-button.is-active {
    opacity: 1;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
}

/* ------------------------------------------------------------------- */
/* FORMULAIRES ET GÉNÉRATEURS PONT (Corrigé) */
/* ------------------------------------------------------------------- */

.form-label {
    display: block;
    margin-bottom: 0.8rem; /* Augmentation pour aérer */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-label .tooltip-trigger {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.form-label .tooltip-trigger:hover {
    opacity: 1;
}

/* Fixes pour les inputs/textareas */
.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background-color: var(--color-form-bg); 
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.3rem; /* Espace sous le label */
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Compteur de caractères */
.char-count {
    display: block;
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* Ligne de statut (OK/Erreur/Warn) */
.status-line {
    font-size: 0.88rem;
    padding: 0.4rem 0;
    min-height: 1.5rem; 
    opacity: 0.8;
}

/* --- Blocs de Résultat PONT --- */
.prompt-result-block {
    padding: var(--spacing);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-result-bg); 
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.result-heading {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--accent);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem; /* Augmentation de l'espace sous le titre */
}

.prompt-output {
    min-height: 150px;
    font-family: 'Consolas', 'Courier New', monospace; /* Police monospace pour le code */
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.15); /* Rendre le textarea de sortie plus sombre */
}
body.theme-light .prompt-output {
    background-color: rgba(0, 0, 0, 0.05); /* Plus clair pour le thème clair */
}


/* Cartes de décomposition PONT (Pont Express et Avancé) */
.pont-breakdown {
    display: grid;
    gap: 12px; /* Augmentation du gap */
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(2, 1fr); 
}

.pont-breakdown p {
    background: rgba(var(--accent-rgb), 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid var(--accent);
}

.pont-breakdown strong {
    color: var(--accent);
    font-weight: 700;
}

.result-actions {
    margin-top: 1.5rem;
    justify-content: flex-start; 
}

/* ------------------------------------------------------------------- */
/* FOOTER & UTILS */
/* ------------------------------------------------------------------- */

.site-footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo-mark {
    height: 38px;
    width: auto;
    transition: opacity 0.3s ease;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-subtext {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.footer-links-external {
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-separator {
    margin: 0 0.5rem;
}

.footer-nav-block,
.footer-legal-block {
    opacity: 0.95;
}

.footer-heading {
    font-size: 1rem;
    margin: 0 0 0.6rem;
    color: var(--accent);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-link {
    text-decoration: none;
    color: inherit;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom-copyright {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(148,163,184,0.3);
    padding-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.75;
}

.footer-center-desktop {
    display: none;
}

/* Loader */
.kerkito-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15,23,42,0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: spin 1.5s linear infinite;
}

.loader-text {
    margin-top: 1rem;
    font-size: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ------------------------------------------------------------------- */
/* MEDIA QUERIES (Réactivité) */
/* ------------------------------------------------------------------- */

@media (min-width: 600px) {
    /* Responsive Grids Footer */
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 600px) {
    /* Responsive PONT Breakdown */
    .pont-breakdown {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
}


@media (max-width: 960px) {
    /* Menu Mobile */
    .main-nav {
        display: none;
    }
    .header-actions {
        display: none;
    }
    .nav-toggle {
        display: block;
    }

    /* Hero */
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Footer */
    .footer-bottom-copyright {
        flex-direction: column-reverse;
        gap: 0.8rem;
    }

    .footer-center-desktop {
        display: block;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (min-width: 960px) {
    /* Footer Desktop */
    .footer-bottom-copyright {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-center-desktop {
        display: block;
        order: 2; /* Positionne le bouton du thème au centre */
    }

    .footer-copyright {
        order: 3;
    }
}

/* Fin de style.css */



/* Bloc comparatif – carte */
.comparison-card {
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
}

/* Wrapper pour scroll horizontal sur mobile */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

/* Tableau comparatif */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 720px; /* évite l'effet "tassé" sur desktop */
}

.comparison-table thead th {
    text-align: left;
    font-weight: 600;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Première colonne (nom + futur logo) */
.comparison-name {
    font-weight: 600;
    white-space: nowrap;
}

/* Prévu pour les logos si tu les ajoutes plus tard */
.comparison-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 0.5rem;
}

.comparison-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Texte sous le tableau */
.comparison-notes {
    margin-top: 1.75rem;
}

.comparison-notes .resource-text + .resource-text {
    margin-top: 0.75rem;
}

.comparison-more-link {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.link-inline {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Responsive : réduire un peu la taille en mobile */
@media (max-width: 768px) {
    .comparison-card {
        padding: 1.5rem 1.25rem;
    }

    .comparison-table {
        font-size: 0.9rem;
        min-width: 640px;
    }
}


/* Carte comparatif */
.comparison-card {
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
}

/* Scroll horizontal en mobile */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

/* Tableau */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 760px; /* évite le côté tassé sur desktop */
}

.comparison-table thead th {
    text-align: left;
    font-weight: 600;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Colonne "Plateforme" = logo + nom */
.comparison-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

/* Wrapper des logos : même taille pour tout le monde */
.comparison-logo {
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comparison-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Texte sous le tableau */
.comparison-notes {
    margin-top: 1.75rem;
}

.comparison-notes .resource-text + .resource-text {
    margin-top: 0.75rem;
}

.comparison-more-link {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.link-inline {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-card {
        padding: 1.5rem 1.25rem;
    }

    .comparison-table {
        font-size: 0.9rem;
        min-width: 640px;
    }
}


/* Liens éditoriaux mis en avant dans les textes (ex : Guides PONT) */
.link-inline {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

/* Couleur d'accent selon le thème */
.theme-dark .link-inline,
.theme-dark a.link-inline {
    color: #7cc4ff; /* bleu clair lisible sur fond sombre */
    text-decoration-color: rgba(124, 196, 255, 0.7);
}

.theme-light .link-inline,
.theme-light a.link-inline {
    color: #005fcc; /* bleu plus profond pour fond clair */
    text-decoration-color: rgba(0, 95, 204, 0.7);
}

/* Variation supplémentaire pour les liens importants */
.link-accent {
    font-weight: 600;
}

/* Hover/focus accessibles */
.link-inline:hover,
.link-inline:focus-visible {
    color: #ffffff;
    text-decoration-color: currentColor;
}

/* En thème clair, on évite le blanc pur pour garder le contraste */
.theme-light .link-inline:hover,
.theme-light .link-inline:focus-visible {
    color: #003b80;
}


/* Bloc IA responsable / RGPD dans le footer */
.footer-compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.compliance-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
}

.compliance-icon {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    display: inline-block;
}

.compliance-icon--green {
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.65);
}

.compliance-icon--blue {
    background: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.65);
}

.footer-compliance .footer-link {
    font-size: 0.8rem;
    text-decoration: none;
}




/* Visuel de la bibliothèque PONT (page library) */
.library-visual {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-start;   /* bien dans la colonne gauche */
}

.library-visual img {
    display: block;
    width: 100%;
    max-width: 260px;               /* bien plus compact */
    height: auto;
    border-radius: 1.2rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

/* Mobile first : l’image passe au-dessus, taille raisonnable */
@media (max-width: 768px) {
    .library-visual {
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    .library-visual img {
        max-width: 220px;          /* encore un peu plus petite sur mobile */
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }
}

/* Desktop : on s’assure que la grille ne se chevauche pas */
@media (min-width: 900px) {
    .library-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 2.5rem;
        align-items: flex-start;
    }
}


/* Correctif taille logo bibliothèque PONT */
.library-intro-block .library-visual {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.library-intro-block .library-visual img {
    display: block;
    width: auto !important;          /* on annule les width:100% éventuels */
    max-width: 420px !important;     /* taille max VRAIMENT forcée */
    height: auto !important;
    border-radius: 1.2rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

/* ======== LOGO LIBRARY – VERSION FINALE ======== */

/* Desktop par défaut */
.library-intro-block .library-visual img {
    display: block;
    width: auto !important;
    max-width: 420px !important;   /* Taille PC */
    height: auto !important;
    border-radius: 1.2rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    margin: 0 auto; /* centre sur la colonne */
}

/* Mobile – réduit drastiquement */
@media (max-width: 768px) {
    .library-intro-block .library-visual img {
        max-width: 220px !important;  /* Taille mobile */
        margin-bottom: 1rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }
}



/* contact */


.contact-grid {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

.contact-info-block,
.contact-card {
    border-radius: 1.5rem;
}

.contact-info-block .info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-icon {
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.info-content {
    flex: 1;
}

.info-link {
    display: inline-block;
    font-weight: 500;
}

.info-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
}



/* ===========================
   Hero – barre d'accès rapide
   =========================== */

.hero-quick-access {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(10, 16, 35, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Texte d'accroche */
.hero-quick-access-label {
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Ligne de “pills” */
.hero-quick-access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Boutons-liens */
.hero-quick-link {
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left,
              rgba(59, 130, 246, 0.25),
              rgba(15, 23, 42, 0.95));
  text-decoration: none;
  color: #e5e7eb;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              border-color 0.16s ease, background 0.16s ease;
}

.hero-quick-link:hover,
.hero-quick-link:focus-visible {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.6),
              0 10px 25px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

/* Mobile : tout en colonne, centré */
@media (max-width: 768px) {
  .hero-quick-access {
    border-radius: 1rem;
    align-items: flex-start;
  }

  .hero-quick-access-links {
    justify-content: flex-start;
  }
}

/* Desktop : label à gauche, liens à droite */
@media (min-width: 900px) {
  .hero-quick-access {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-quick-access-label {
    font-size: 0.85rem;
    max-width: 330px;
  }

  .hero-quick-access-links {
    justify-content: flex-end;
  }
}


/* SECTION — Quicklinks sous le hero */
.home-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 0;
}

.quicklink {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(20,25,40,0.55);
    color: #e6e6e6;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .2s ease;
    backdrop-filter: blur(8px);
}

.quicklink:hover {
    background: rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.45);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile first */
@media (max-width: 540px) {
    .quicklink {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Desktop : centrer et rendre chic */
@media (min-width: 900px) {
    .home-quicklinks {
        justify-content: center;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
}


/* Petit kicker au-dessus du H1 */
.hero-kicker {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

/* Hub de liens dans le hero */
.hero-hub {
  margin-top: 1.6rem;
}

.hero-hub-shell {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.32), rgba(15,23,42,0.96));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 18px 40px rgba(15,23,42,0.85);
}

.hero-hub-title {
  font-size: 0.87rem;
  opacity: 0.9;
  margin-bottom: 0.55rem;
}

.hero-hub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-hub-row + .hero-hub-row {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148,163,184,0.35);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-chip--primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(129,140,248,0.95));
  color: #f9fafb;
  border-color: transparent;
}

.hero-chip-icon {
  font-size: 0.95rem;
}

.hero-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(15,23,42,0.7);
  background: rgba(15,23,42,1);
  border-color: rgba(209,213,219,0.9);
}

/* Mobile-first : on garde tout fluide */
@media (max-width: 768px) {
  .hero-hub-shell {
    border-radius: 1.2rem;
  }
}

/* Desktop : on renforce la structure */
@media (min-width: 1024px) {
  .hero-hub {
    max-width: 640px;
  }
}


/* Ajuste légèrement la position de la carte de prévisualisation sur desktop */

/* Rapprocher le texte du titre dans le hero */
.hero-title {
  margin-bottom: 0.75rem;   /* ou 0.5rem si tu veux très serré */
}

.hero-subtitle {
  margin-top: 0;            /* au cas où un margin-top exagéré existe */
  max-width: 40rem;         /* optionnel : meilleure longueur de ligne */
}

/* Sur desktop, on peut encore affiner un peu */
@media (min-width: 960px) {
  .hero-subtitle {
    margin-top: 0.25rem;
  }
}

/* HERO – aligner le texte et la carte proprement */
@media (min-width: 1024px) {
  .hero-content {
    display: flex;
    align-items: flex-start;    /* aligne le bloc texte et la carte en haut */
    gap: 3rem;                  /* espace entre texte et carte */
  }

  .hero-text {
    max-width: 540px;           /* garde un bloc texte lisible */
  }

  .hero-side {
    flex: 0 0 360px;            /* largeur stable pour la carte */
    margin-top: 0.75rem;        /* léger décalage vers le bas, mais pas violent */
  }
}


/* Bulle de liens rapides sous le hero */
.hero-quick-access {
  margin-top: 2.25rem;
}


/* HERO : aligner le bloc de prévisualisation sur le haut du texte */
@media (min-width: 900px) {
  .hero-content {
    align-items: flex-start;   /* au lieu de center */
  }

  /* On s'assure que le bloc de droite ne rajoute pas de marge bizarre */
  .hero-side {
    margin-top: 0;
  }
}
@media (min-width: 1200px) {
  .hero-side {
    margin-top: -0.75rem;
  }
}
