/* Outfit (SIL Open Font License), hébergée localement : aucune requête vers Google */
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Couleurs Flowcell (logo) */
:root {
    --fc-magenta: #E11D74;
    --fc-magenta-dark: #BF1963;
    --fc-orange: #FA9924;
    --fc-gradient: linear-gradient(135deg, #FA9924 0%, #F5804C 45%, #E11D74 100%);
}

/* Les champs et boutons n'héritent pas de la police par défaut */
button, input, select, textarea {
    font-family: inherit;
}

/* Loading Overlay */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overscroll-behavior: contain;
}

.loader-content {
    max-width: 400px;
    width: 90%;
}

.loader-logo {
    width: 55px;
    height: 55px;
    margin: 0 auto 16px;
}

.loader-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.loader-text {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.loader-subtext {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.loader-progress-bg {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--fc-gradient);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Global Reset & Base */

/* Global Reset & Base */
body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    background: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Container for normal pages */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Welcome Page Styles */
.welcome-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #fff;
}

.welcome-image {
    flex: 1;
    background-color: #f0f0f0;
    overflow: hidden;
}

.welcome-image-ondes {
    background: #FFF9F6;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.axes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    color: #555;
}

.axes-list li::before {
    content: "- ";
}

.info-text {
    color: #888;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.action-area {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.time-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-start {
    background: var(--fc-gradient);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.start-form {
    display: inline-block;
}

.btn-start:hover {
    filter: brightness(0.93);
}

.press-enter {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Welcome Page */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .welcome-image {
        height: 300px;
        flex: none;
    }

    .welcome-content {
        padding: 2rem;
        padding-bottom: 120px;
        /* Space for floating CTA */
        width: 100%;
        box-sizing: border-box;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .action-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem 2rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }

    .action-area .time-info {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .press-enter {
        display: none;
    }
}

/* Existing Styles */
h1,
h2 {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #2c3e50;
}

/* Champs : même esprit que les pastilles de réponse */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e2e2ea;
    border-radius: 10px;
    background-color: #fff;
    color: #1a1a1a;
    font-size: 1rem; /* 16 px : évite le zoom automatique sur iPhone */
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #cfcfd9;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--fc-magenta);
    box-shadow: 0 0 0 3px rgba(225, 29, 116, 0.15);
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    cursor: pointer;
}

/* « Sélectionnez... » en gris tant que rien n'est choisi */
select:has(option[value=""]:checked) {
    color: #999;
}

select option {
    color: #1a1a1a;
}

textarea {
    resize: vertical;
    field-sizing: content; /* s'agrandit avec le texte (navigateurs récents) */
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #888;
}

.btn {
    display: inline-block;
    background: var(--fc-magenta);
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--fc-magenta-dark);
}

.btn-secondary {
    background: #fff;
    color: #555;
    border: 1.5px solid #d8d8e0;
}

.btn-secondary:hover {
    background: #f6f6f9;
    color: #333;
}

/* Liens de texte */
a {
    color: var(--fc-magenta-dark);
}

/* Boutons de l'admin : espacés */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.progress {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    background: var(--fc-gradient);
    height: 100%;
    transition: width 0.3s ease;
}

.question-block {
    margin-bottom: 2.25rem;
}

/* Échelle de réponse : 5 pastilles reliées (Jamais -> Systématique) */
.radio-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 0.75rem;
}

.radio-group label {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 0.3rem;
    border: 1.5px solid #e2e2ea;
    border-radius: 10px;
    background: #fff;
    color: #555;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}

/* Bouton radio natif masqué mais toujours focusable et validé par le navigateur */
.radio-group input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.radio-group label:hover {
    border-color: #f3a5c7;
    color: var(--fc-magenta);
}

.radio-group label:active {
    transform: scale(0.97);
}

.radio-group label:has(input:checked) {
    border-color: var(--fc-magenta);
    background: #fdf1f7;
    color: var(--fc-magenta-dark); /* #E11D74 sur fond rose pâle : contraste insuffisant pour du texte */
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--fc-magenta);
}

.radio-group label:has(input:focus-visible) {
    outline: 2px solid var(--fc-magenta);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .radio-group {
        gap: 4px;
    }
    .radio-group label {
        min-height: 48px;
        padding: 0.3rem 0.15rem;
        font-size: 0.74rem;
        border-radius: 8px;
        overflow-wrap: anywhere;
    }
}

/* Boutons Précédent / Suivant collés en bas de l'écran pendant le défilement */
.form-nav {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem -2rem -2rem;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
}

.form-nav .btn {
    line-height: 1.4;
    border: 1.5px solid transparent;
}

.form-nav-fin {
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .form-nav {
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    }
    .form-nav .btn {
        flex: 1;
        text-align: center;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Utility Classes for Flex Layouts */
.row-group {
    display: flex;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .row-group {
        flex-direction: column;
        gap: 0;
    }
}

.col-half {
    flex: 1;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Results Page */
.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.result-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.score-large {
    font-size: 2rem;
    font-weight: bold;
}

.score-global-card {
    margin-top: 2rem;
    background: #2c3e50;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.score-global-large {
    font-size: 3rem;
    font-weight: bold;
}

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

/* Admin Page */
.admin-section {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border: 1.5px solid #e2e2ea;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-restart {
    background-color: var(--fc-magenta);
}

.btn-restart:hover {
    background-color: var(--fc-magenta-dark);
}

.text-blue {
    color: #3498db;
}

.text-orange {
    color: #e67e22;
}

.text-green {
    color: #2ecc71;
}

.text-purple {
    color: #9b59b6;
}

.text-red {
    color: #e74c3c;
}

/* --- PATCH RESULTS PAGE --- */

.results-container {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Ensure centering */
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Variables de couleurs */
:root {
    --primary-blue: #E11D74;
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --dark-text: #2c3e50;
    --light-bg: #f8f9fa;
}

/* Layout Chart + Global */
.chart-row {
    align-items: center;
    margin-top: 2rem;
}

.chart-container {
    height: 350px;
    position: relative;
}

.modern {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.score-max {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

.score-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.global-overview {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1.5rem;
    font-style: italic;
    color: #ecf0f1;
}

.global-overview strong {
    color: var(--fc-orange);
    /* Note de couleur */
    font-weight: 700;
}

/* Cards Axes Modernes */
.modern-card {
    border: none;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid transparent;
    /* Pour la couleur hover */
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.modern-card h4 {
    margin: 0 0 1rem 0;
    color: #7f8c8d;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-qualifier {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Synthesis Section & Details Section */
.synthesis-section,
.details-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.synthesis-section h3,
.details-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.synthesis-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.synthesis-card {
    flex: 1;
    min-width: 250px;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.synthesis-card .icon {
    font-size: 2rem;
}

.synthesis-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.synthesis-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.synthesis-card.strength {
    border-left: 4px solid var(--success-green);
}

.synthesis-card.priority {
    border-left: 4px solid var(--danger-red);
}

.synthesis-card.recommendation {
    border-left: 4px solid var(--primary-blue);
    background: #f0f8ff;
}

/* Actions */
.actions-section {
    margin-top: 3rem;
}

.btn-cta {
    background-color: #27ae60;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-cta:hover {
    background-color: #219150;
}

.cta-subtext {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.btn-pdf {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #999;
}

.btn-link {
    color: var(--fc-magenta);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .chart-row {
        flex-direction: column;
    }

    .col-half {
        width: 100%;
    }

    .chart-container {
        height: 300px;
        margin-bottom: 2rem;
    }
}

/* Header Actions Layout */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- PATCH CONSULTATIVE STYLES --- */

.help-card {
    min-height: 140px;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.benchmark-table th,
.benchmark-table td {
    padding: 12px;
    border-bottom: 1px solid #e1e5ea;
    text-align: center;
}

.benchmark-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

/* Buttons */
.btn-success {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-success:hover {
    background-color: #219150;
}

.btn-primary {
    background-color: var(--fc-magenta);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--fc-magenta-dark);
}

/* Section spacing */
.section {
    margin-bottom: 2rem;
}

/* --- INSIGHTS FRANCE STYLES --- */
.insights-fr ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.insights-fr .source {
    color: #6b7280;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 5px;
}

.meaning,
.help {
    margin-top: 12px;
}

/* --- LOGO & COPYRIGHT --- */
.logo-container,
.step-header {
    text-align: center;
    margin-bottom: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    /* Reset alignment for flex */
}

.step-test-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
}

.step-logo {
    height: 34px;
    width: auto;
    mix-blend-mode: multiply;
}

.welcome-logo {
    max-width: 170px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    mix-blend-mode: multiply;
}

.results-header-logo {
    height: 44px;
    width: auto;
    mix-blend-mode: multiply;
}

.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #95a5a6;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

.footer-logo {
    max-width: 90px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: multiply;
    /* Fix for white background on gray */
}
/* =====================================================================
   ADMIN : liste et fiche d'un diagnostic
   ===================================================================== */
.container.adm-liste,
.container.adm-fiche {
    max-width: 1000px;
}

.adm-aide {
    margin: 0.2rem 0 0.8rem;
    font-size: 0.85rem;
    color: #888;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Pastille de score (liste) et barres (fiche) : même code couleur */
.niveau-bon { --niv: #1e8e4e; --niv-fond: #e8f6ee; }
.niveau-moyen { --niv: #b45f06; --niv-fond: #fff4e5; }
.niveau-faible { --niv: #c0392b; --niv-fond: #fdecea; }

/* --- Liste --- */
.adm-liste-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.adm-liste-entete h2 {
    margin: 0;
}

.adm-liste-entete .admin-actions {
    margin: 0;
}

.adm-vide {
    padding: 2rem;
    text-align: center;
    color: #888;
    background: #fafafc;
    border-radius: 12px;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.adm-table th {
    background: none;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    border-bottom: 1.5px solid #ececf2;
    padding: 0.6rem 0.75rem;
}

.adm-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #f1f1f5;
    vertical-align: middle;
}

.adm-table .num {
    text-align: right;
}

.adm-table tbody tr {
    position: relative; /* la ligne entière ouvre la fiche */
    transition: background 0.12s;
}

.adm-table tbody tr:hover {
    background: #fdf6fa;
}

.adm-table small {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.adm-date {
    white-space: nowrap;
}

.adm-lien-ligne {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.adm-lien-ligne::after {
    content: "";
    position: absolute;
    inset: 0;
}

.adm-table tbody tr:hover .adm-lien-ligne {
    color: var(--fc-magenta-dark);
}

.adm-pastille {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--niv-fond);
    color: var(--niv);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.adm-icone {
    width: 2.5rem;
    text-align: center;
}

.adm-icone a {
    position: relative;
    z-index: 1; /* au-dessus du lien de ligne */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-size: 1rem;
}

.adm-icone a:hover {
    background: #fff;
    color: var(--fc-magenta-dark);
    box-shadow: 0 0 0 1.5px #e9d3df;
}

/* --- Fiche --- */
.adm-haut {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.adm-haut-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.adm-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid #ececf2;
}

.adm-entete h2 {
    margin: 0.2rem 0 0.1rem;
    font-size: 1.7rem;
}

.adm-surtitre {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.adm-sous-titre,
.adm-contact {
    margin: 0.15rem 0 0;
    color: #555;
}

.adm-contact a {
    font-size: 0.9rem;
}

.adm-global {
    min-width: 190px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
}

.adm-global-score {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.adm-global-score span {
    font-size: 1rem;
    opacity: 0.6;
    margin-left: 2px;
}

.adm-global-label {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.adm-grille {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.adm-bloc {
    padding: 1.25rem 1.5rem;
    border: 1.5px solid #ececf2;
    border-radius: 12px;
}

.adm-bloc h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: #2c3e50;
}

.adm-axe {
    margin-top: 1rem;
}

.adm-axe-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.adm-axe-nom {
    font-weight: 600;
}

.adm-axe-nom em {
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #fdecea;
    color: #c0392b;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.adm-axe-nom em.consolider {
    background: #fff4e5;
    color: #b45f06;
}

.adm-axe-score {
    font-weight: 700;
    white-space: nowrap;
}

.adm-axe-score small {
    margin-left: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.adm-axe-score small.plus { color: #1e8e4e; }
.adm-axe-score small.moins { color: #c0392b; }

.adm-barre {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #f1f1f5;
}

.adm-barre-val {
    height: 100%;
    border-radius: 999px;
    background: var(--niv);
}

.adm-barre-ref {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 18px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #2c3e50;
    opacity: 0.45;
}

.adm-infos {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 1rem;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.92rem;
}

.adm-infos dt {
    color: #888;
}

.adm-infos dd {
    margin: 0;
}

.adm-vigilance-titre span {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: 0.3rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #fdecea;
    color: #c0392b;
    font-size: 0.8rem;
    text-align: center;
}

.adm-vigilance {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.adm-vigilance li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f4f4f7;
}

.adm-vigilance li:last-child {
    border-bottom: 0;
}

.adm-rep {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.adm-rep.rep-1, .adm-rep.rep-2 { background: #fdecea; color: #c0392b; }

.adm-axe-titre {
    display: flex;
    justify-content: space-between;
    margin: 1.4rem 0 0.4rem;
    font-size: 0.95rem;
    color: #2c3e50;
}

.adm-axe-titre span {
    color: #888;
    font-weight: 600;
}

.adm-reponses {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.adm-reponses td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #f4f4f7;
    vertical-align: middle;
}

.adm-q {
    width: 2.8rem;
    color: #999;
    font-weight: 600;
}

.adm-echelle {
    width: 13rem;
    white-space: nowrap;
}

.adm-echelle span {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    border-radius: 4px;
    background: #ececf2;
    vertical-align: middle;
}

.adm-echelle span.on { background: var(--fc-magenta); }
.adm-echelle span.on.rep-1, .adm-echelle span.on.rep-2 { background: #e57368; }

.adm-echelle em {
    margin-left: 0.4rem;
    font-style: normal;
    font-size: 0.8rem;
    color: #777;
    vertical-align: middle;
}

.adm-echelle em.rep-1, .adm-echelle em.rep-2 {
    color: #c0392b;
    font-weight: 600;
}

@media (max-width: 760px) {
    .adm-grille {
        grid-template-columns: 1fr;
    }
    .adm-table th:nth-child(4),
    .adm-table td:nth-child(4),
    .adm-table th:nth-child(3),
    .adm-table td:nth-child(3) {
        display: none;
    }
    .adm-echelle {
        width: auto;
        white-space: normal;
    }
    .adm-echelle em {
        display: block;
        margin: 0.2rem 0 0;
    }
}
