/* ==========================================================================
    1. BASES
    ========================================================================== */
:root {
    --primary: #2c3e50;
    --accent: #000000;
    --accent-text: #f6c815;
    --bg: #ffffff;
    --success: #27ae60;
    --focus-color: orange;
    --error-red: #c0392b;
    --screen-reader-bg: #1a1a1a;
    --sr-green: #00ff00;
    --sr-system: #3498db;
    --text: #333;
    --underline-green: #7b8e56;
}

@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole-Regular.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole-Bold.woff2') format('woff2');
    font-weight: bold; font-style: normal;
}

body {
    font-family: 'Luciole', Arial, sans-serif;
    background-color: var(--bg);
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
    color: var(--text);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
/* ==========================================================================
    2. HARMONISATION DU FOCUS (CRITÈRE 10.7) & LIENS D'ÉVITEMENT (12.7)
    ========================================================================== */

a:focus, 
button:focus, 
input:focus, 
select:focus, 
textarea:focus, 
[tabindex="0"]:focus {
    outline: 3px solid var(--focus-color) !important;
    outline-offset: 2px;
}

:focus {
    outline: none;
}

.skip-links {
    list-style: none;
    margin: 0; padding: 0;
    position: absolute;
    top: 0; right: 0; 
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: flex-end; 
    pointer-events: none;
}

.skip-links:focus-within {
    background: #f8f9fa; 
    pointer-events: auto;
	height:30px;
}

.skip-links a {
    position: absolute;
    left: -10000px;
    top: 0;
    padding: 10px 20px;
    color: #5D7530;
    text-decoration: underline;
    font-size: 0.85rem;
}

.skip-links:focus-within a {
    position: static;
    width: auto; height: auto;
    overflow: visible;
}

/* --- CORRECTIF SPÉCIFIQUE MOBILE --- */

@media (max-width: 768px) {
    .skip-links {
        position: relative; /* Repousse le logo au lieu de le couvrir */
        flex-direction: column; /* Empile les liens verticalement */
        justify-content: flex-start;
        background: #f8f9fa; /* Fond neutre pour la zone de liens */
    }

    .skip-links:focus-within {
        height: auto; /* S'adapte au nombre de liens affichés */
    }
.skip-links a {

        padding: 5px 5px;

}

    .skip-links a:focus {
        display: block; /* Prend toute la largeur disponible */
        width: 100%;
        box-sizing: border-box; /* Évite que le padding ne fasse déborder le lien */
        padding: 5px 5px;
        text-align: center;
        border-bottom: 1px solid #ddd; /* Séparateur visuel entre les liens */
        /* Ton focus orange ne chevauchera plus rien puisqu'il est seul sur sa ligne */
        outline: 4px solid var(--focus-color) !important;
        outline-offset: -4px; /* Focus à l'intérieur pour éviter les coupures bords écran */
    }
 .skip-links li {
  margin-bottom: 5px;
  margin-top: 5px;
}
}

/* ==========================================================================
    3. TYPOGRAPHIE & TITRES 
    ========================================================================== */
h1 { color: lightgrey; text-transform: uppercase; margin: 0; font-size: x-large; font-weight: bold !important; }

h2 {
    color: #000000; position: relative; display: inline-block; 
    margin-top: 0; margin-bottom: 10px; text-transform: uppercase;
    font-weight: 800; font-size: 1.3rem; 
    border-left: 30px solid #f6c815; padding-left:10px;
}

h3 {
    color: #000000 !important; font-size: 1.4rem; margin-top: 0; margin-bottom: 25px;
    position: relative;
}
h3::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 100px; height: 4px; background-color: var(--underline-green); }

.back-link { color: #f6c815; text-decoration: underline; }
.strong { font-weight: bold; }

#sr-console h3.sr-h3 {
    color: gainsboro !important; 
    font-family: 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 1px !important;
}

#sr-console.is-active h3.sr-h3 span.cursor {
    display: inline-block;
    margin-left: 8px;
    animation: blink-console 1s step-end infinite;
}

@keyframes blink-console {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.sr-title {
   background: #1a1a1a; 
    padding: 10px 15px;
    margin: -20px -20px 15px -20px; 
    border-bottom: 2px solid #333;
    border-radius: 8px 8px 0 0;
}

#instruction-zone {
    display: block !important;
	width: 98%;
}


a {
    text-decoration: underline;
    color: #5D7530;
    font-weight: 500;
}

a:hover, 
a:focus {
    text-decoration: none;
}


li {margin-bottom:20px; margin-top:20px;}




/* ==========================================================================
    4. HEADER, NAV & FOOTER
    ========================================================================== */
main-header, main-footer { width: 100%;}
main-header {  background-color: #f8f9fa;}
main-footer { background-color: #000;}
header { width: 100%; display: flex; justify-content: center; padding: 2.5rem 0; }
.header-container { width: 95%; max-width: 1250px; display: flex; align-items: baseline; gap: 25px; }
.logo { height: 80px; width: auto; }

/* Par défaut, on cache la version contraste */
.logo-contrast {
  display: none;
}

@media (forced-colors: active) {
  /* On cache le logo qui devient invisible (noir sur noir) */
  .logo-main {
    display: none;
  }

  /* On affiche la version adaptée */
  .logo-contrast {
    display: block;
    /* Important : On dit au navigateur de ne pas essayer de 
       re-colorier cette image lui-même */
    forced-color-adjust: none;
  }
}

.main-nav-stripe { width: 100%; background-color: #000000; display: flex; justify-content: center; padding: 12px 0; }
.nav-links { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0; }
.nav-links a { color: #fff; text-decoration: none; font-size: 1rem; font-weight: bold; text-transform: uppercase; }
.nav-links a:hover, .nav-links a:focus  { color: var(--accent-text); text-decoration: none; font-size: 1rem; font-weight: bold; text-transform: uppercase; }

/* Style pour la page courante dans le menu */
.nav-links a[aria-current="page"] {
    color: var(--accent-text) !important; /* Utilise ton jaune #f6c815 défini en variable */
    pointer-events: none; /* Optionnel : empêche de cliquer sur le lien de la page où l'on est déjà */
    cursor: default;
	text-decoration: none; 
	border-bottom: 2px solid var(--accent-text);
}


.footer-main { padding: 40px 0; margin-top: auto; width: 100%;  }


.footer-container {
    max-width: 1100px;
    margin: 0 auto;
	color: grey;
}

/* Grille 2 colonnes */
.footer-top {
display: grid;
    grid-template-columns: 2fr 1fr 1fr; /*  3 colonnes */
    gap: 2rem; /* Espace entre les colonnes */
    margin-bottom: 2rem;
}

/* Style des titres */
.footer-main h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Colonne Support */
.footer-section-support p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.bmc-alert {
	float: right;
  width: 250px;
  margin-top: 0px;
  font-size: 0.9rem;
  font-style: italic;}
.bmc-alert2 {
	float: right;
  width: 100%;
  margin-top: 0px;
  font-size: 0.9rem;
  font-style: italic;}

/* Colonne Liens verticaux */
.footer-section-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-section-pro ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#footer a {
    text-decoration: underline;
    color: #7b8e56;
    font-weight: 500;
}

#footer a:hover, 
#footer a:focus {
    text-decoration: none;
}

#footer a[aria-current="page"]{
    text-decoration: none;
	 color: #eff1eb;
}

/* Section basse */
.footer-separator {
    border: 0;

    margin: 2rem 0;
}

.footer-bottom {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

#footer li {margin-bottom:10px !important; margin-top:0px!important}


@media (max-width: 768px) {
    header {
        padding: 1rem 0; /* Réduit l'espace vertical */
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 60px; /* Logo plus petit en mobile */
    }

    .nav-links {
        flex-wrap: wrap; /* Force les liens à passer à la ligne si l'écran est trop étroit */
        justify-content: center;
        gap: 15px 25px; /* Espace vertical et horizontal entre les liens */
        padding: 10px;
    }

    .nav-links li {
        margin: 0; /* Annule vos marges importantes de 20px qui décalent tout en mobile */
    }
	
	    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* ==========================================================================
    5. SYSTEME DE STRIPES & PAGE D'ACCUEIL
    ========================================================================== */
.stripe { width: 100%; display: flex; justify-content: center; padding: 20px 0; box-sizing: border-box; }
.stripe-container { width: 95%; max-width: 1250px; }
.bg-light { background-color: #ffffff; border-bottom: 1px dotted #ccc; }
.bg-theme { background-color: #eff1eb; }
.bg-second { background-color: #333333; }
.bg-tmp { background-color: #f8f9fa;}


.bento-luciole { 
    display: flex; 
    flex-wrap: wrap; /* Permet aux éléments de passer dessous */
    gap: 40px; 
    padding: 40px 0; 
}
.bento-accent { 
    flex: 1 1 350px; /* Prend au moins 350px, sinon passe à la ligne */
    padding-right: 40px; 
    border-right: 2px dotted #ccc; 
}

.bento-details {
    flex: 2 1 400px; /* S'adapte aussi */
}
.bento-accent h1 { color: #7b8e56; font-size: 2.5rem; line-height: 1.1; text-transform: none; }
.bento-details .btn-launch
{color: var(--accent) !important;
  background: var(--accent-text) !important;
  float: right;
  margin-right: 40px;}

.grid-home { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
    width: 100%; 
    margin: 40px 0;
}
.card-home { 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    /* Flexbox pour l'alignement */
    display: flex; 
    flex-direction: column; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.card-vide { 
    background: white; 

    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    /* Flexbox pour l'alignement */
    display: flex; 
    flex-direction: column; 
    align-items: center;
    box-shadow: none;
}	
blockquote {font-size: 2rem;
  line-height: 1.4;
  font-weight: 300;
  margin: 0;
  color: var(--accent);}
  
        /* Grid pour les statistiques */
        .grid-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 30px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

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

        .stat-card h3 {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 0 0 15px 0;
            color: var(--text);
            line-height: 1.3;
        }

        .stat-card h3 .stat-number {
            display: block;
            font-size: 3.5rem;
            font-weight: bold;
            color: var(--accent);
            margin: 0 0 10px 0;
            line-height: 1;
        }

        .stat-card p {
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--text);
            opacity: 0.85;
            margin: 0;
        }

        /* Process steps */
        .process-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px;
            margin: 40px 0;
        }

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

        .process-icon {
            width: 70px;
            height: 70px;
            background: var(--accent);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: bold;
            margin: 0 auto 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .process-step h3 {
            font-size: 1.4rem;
            margin: 0 0 15px 0;
            color: var(--text);
        }

        .process-step p {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--text);
            opacity: 0.9;
            margin: 0;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .stat-card h3 {
                font-size: 1.05rem;
            }

            .stat-card h3 .stat-number {
                font-size: 2.5rem;
            }

            .process-icon {
                width: 60px;
                height: 60px;
                font-size: 1.6rem;
            }

            blockquote {
                font-size: 1.5rem !important;
            }
        }
 
 
 

/* ==========================================================================
    6. ATELIERS : LAYOUT & ELEMENTS UI
    ========================================================================== */
#main-experience { width: 100%; margin: 0; }

.experience-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.exp-left-column { flex: 0 0 500px; }

.exp-card-container {
    background: white; padding: 40px; border-radius: 12px;
    border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative; 
}

#blind-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: black; z-index: 100;
    display: none; border-radius: 12px;
}

.action-zone { display: flex; flex-direction: column; gap: 12px; }
.btn-ui {
    width: 100%; height: 60px; border: 1px solid #ddd; border-radius: 4px;
    background: #f9f9f9; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    gap: 15px; cursor: pointer; font-family: 'Luciole', sans-serif;
}
.btn-ui.main-payment { background-color: var(--success) !important; color: white !important; border: none; }

.icon-btn { height: 32px; width: auto; }

#sr-console {
    flex: 1; 
    background: var(--screen-reader-bg); padding: 20px; border-radius: 8px;
    height: 520px; overflow-y: auto; border: 4px solid #444;
    font-family: 'Courier New', monospace; box-sizing: border-box;
}
.sr-line { color: var(--sr-green); border-bottom: 1px solid #333; padding: 8px 0; font-size: 0.9rem; }
.sr-system { color: var(--sr-system); font-weight: bold; padding: 8px 0; border-bottom: 1px solid #333; }

.group {display:block !important}
#cancel-btn {width:48%; float:left}
#target-btn {width:48%; float:right}
#repair-btn {width:48%; float:left}
#retry-btn {width:48%; float:left}
#peek-btn {width:48%; float:right}

#navigation-malvoyance .main-payment, #navigation-malvoyance .main-cancel  {margin-left: 52%}

/* ==========================================================================
    7. COMPOSANTS BOUTONS & ÉTATS
    ========================================================================== */
.btn-launch {
    font-family: inherit; display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-text) !important;
    padding: 2px 10px; border-radius: 6px; border: none; cursor: pointer;
    text-transform: uppercase; gap: 10px; text-decoration: none; height: 40px;
}

.btn-launch2 {
    font-family: inherit; display: inline-flex; align-items: center; justify-content: center;
    background: #666; color: #EFF1EB !important;
    padding: 2px 10px; border-radius: 6px; border: none; cursor: default;
    text-transform: uppercase; gap: 10px; text-decoration: none; height: 40px;
}

/* Pousse le bouton vers le bas de la carte */
.card-home .btn-launch, 
.card-vide .btn-launch {
    margin-top: auto;
}
.card-vide .btn-launch
{color: var(--accent) !important;
  background: var(--accent-text) !important;}

.action-btns-row { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }

.icon-analyze::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") no-repeat center;
}
.icon-retry::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E") no-repeat center;
}

/* Nouvelles icônes Stop et Play pour le bouton toggle */
.icon-stop::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: currentColor; vertical-align: middle; margin-right: 8px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h12v12H6z'/%3E%3C/svg%3E") no-repeat center;
}
.icon-play::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: currentColor; vertical-align: middle; margin-right: 8px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center;
}

/* Icône Document (pour les articles) */
.icon-doc::before {
    content: ""; display: inline-block; width: 16px; height: 16px; background-color: currentColor;
    margin-right: 8px; vertical-align: middle;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E") no-repeat center;
}

body.is-broken .exp-card-container { cursor: none !important; }
body.is-broken .exp-card-container * { cursor: none !important; }

.is-broken .btn-ui:focus { outline: none !important; }

/* Icône Play (Triangle) */
.icon-play-video::before {
    content: ""; display: inline-block; width: 18px; height: 18px; background-color: currentColor;
    margin-right: 8px; vertical-align: middle;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center;
}

/* Icône Nouvelle Fenêtre (Carré avec flèche) */
.icon-external::after {
    content: ""; display: inline-block; width: 14px; height: 14px; background-color: currentColor;
    margin-left: 10px; vertical-align: middle;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E") no-repeat center;
}

/* ==========================================================================
    8. SIMULATION MALVOYANCE 
    ========================================================================== */

body.is-broken .exp-card-container, 
body.is-broken .exp-card-container * {
    pointer-events: none !important;
    cursor: none !important;
}

body.mode-cataracte #exp-container {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

body.mode-glaucome .exp-card-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    
    /* L'effet de flou et une légère teinte sombre */
    backdrop-filter: blur(10px); 
    background-color: rgba(0, 0, 0, 0.2); 

    /* Le masque : transparent au centre (net), noir à l'extérieur (flou) */
    -webkit-mask-image: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 30%, black 70%);
    mask-image: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 30%, black 70%);
}

body.mode-dmla .exp-card-container::after {
    content: "";
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px; height: 200px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    filter: blur(20px);
    border-radius: 50%;
    transform: translate(-40%, -40%);
    pointer-events: none;
    opacity: var(--tache-opacity, 1);
    transition: opacity 0.2s ease;
}

body.mode-malvoyant .action-zone .btn-ui:focus {
    outline: 1px solid #bbb !important;
    outline-offset: 0px;
}

/* ==========================================================================
    9. SIMULATION HANDICAP MOTEUR (TREMBLEMENTS)
    ========================================================================== */
#custom-cursor {
    width: 22px; height: 22px;
    background: rgba(231, 76, 60, 0.9);
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    display: none;
    z-index: 10000;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.mode-moteur #exp-container, 
.mode-moteur #exp-container *,
.mode-moteur .btn-ui {
    cursor: none !important;
}

body.mode-moteur.is-broken .exp-card-container {
    animation: micro-vibration 0.2s infinite;
}

@keyframes micro-vibration {
    0% { transform: translate(0,0); }
    25% { transform: translate(0.5px, 0.5px); }
    50% { transform: translate(-0.5px, 0.5px); }
    75% { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(0,0); }
}

/* ==========================================================================
    10. PERSONNALISATION CARTES ACCUEIL
    ========================================================================== */
.bg-light .card-home {
    background-color: #eff1eb; 
    border: 1px solid #d8dbd2;  
    box-shadow: none;           
}

/* ==========================================================================
    11. ATELIER MOTEUR : GRILLE & CONTACTEUR
    ========================================================================== */

.btn-ui.small {
    height: 45px;
    font-size: 0.85rem;
    padding: 5px 10px;
}

#explanation {
    background-color: var(--bg);
    border-radius: 12px;
    border: 1px solid #eee;
}

.cart-header { border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 15px; }
.cart-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.cart-thumb { flex: 0 0 100px; background: #f8f8f8; height: 100px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 2rem; }
.cart-details { flex: 1; }
.product-status { color: #007600; font-size: 0.85rem; margin: 5px 0; }
.cart-summary-box { background: #fdfdfd; padding: 20px; border: 1px solid #eee; border-radius: 8px; text-align: right; margin-top: 20px; }

#navigation-moteur .main-payment { width: 60px; height: 40px; font-size: 1rem; color: black !important}

.click-error {
    position: fixed; width: 12px; height: 12px;
    background: rgba(231, 76, 60, 0.8);
    border-radius: 50%; pointer-events: none;
    animation: pingEffect 0.4s ease-out;
    z-index: 10001;
}

@keyframes pingEffect {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* --- AJOUTS LOGIQUE SCAN --- */
body.mode-contacteur .shaking-target:focus {
    outline: 5px solid var(--sr-system) !important;
    outline-offset: 3px;
    background-color: #ebf5fb !important;
}

#promo-input.active-typing {
    outline: 5px solid var(--focus-color) !important;
    background-color: #fff9f0 !important;
}

/* --- Simulation Tremblements : Suppression RÉELLE du focus clavier --- */
body.mode-moteur .shaking-target:focus {
	outline: 3px solid white !important;
  outline-offset: 2px;
}

/* Style spécifique pour le liseré du scanneur */
.shaking-target.scan-active {
    outline: 4px solid #3498db !important; /* Ou une couleur de ton choix */
    outline-offset: 2px;
	background-color: rgba(52, 152, 219, 0.1) !important;
}

        /* Simulation de l'absence de focus (Mauvaise pratique) */
        .focus-hidden :focus {
            outline: none !important;
        }

        /* Restauration du focus visible (Conforme RGAA 10.7) */
        .focus-visible :focus {
            outline: 3px solid #E67E22 !important; /* Orange contrasté */
            outline-offset: 2px;
        }
		
		
	/* --- SIMULATION ERREUR (Tremblements) --- */
/* Cache le focus tant qu'on n'est pas en mode "corrigé" */
body.mode-moteur:not(.is-fixed) .shaking-target:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* --- RESTAURATION CONFORME RGAA 10.7 --- */
/* Affiche un focus orange épais quand le correctif est actif */
body.mode-moteur.is-fixed .shaking-target:focus {
    outline: 4px solid #E67E22 !important; 
    outline-offset: 4px !important;
}

/* --- LOGIQUE DU SCANNEUR --- */
/* Style du liseré qui se déplace en mode contacteur */
.shaking-target.scan-active {
    outline: 5px solid #3498db !important;
    outline-offset: 2px;
    background-color: rgba(52, 152, 219, 0.2) !important;
}

/* Empêche les clics réels de perturber l'animation d'erreur */
.click-error {
    z-index: 10001;
}

/* Style des icônes personnalisées */
.icon-ctrl {
    display: inline-block;
    width: 12px;
    height: 12px;
    position: relative;
    margin-right: 8px;
}


/* On s'assure que le bouton reste bien aligné */
#stop-anim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	float: right;
}

   .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        /* Force le bouton de retour à passer à la ligne */
        #show-instr-btn {
            display: none;
            margin-top: 15px;
        }

/*Photophobie*/


        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
        
        /* Zone de test - Tes styles d'origine */
        .action-zone {
            background-color: #ffffff;
            transition: filter 0.3s ease, background-color 0.5s ease;
            position: relative;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 40px;
            color: #333;
        }

        /* Utilisation de ta variable de filtre */
        .low-light-active { filter: brightness(var(--brightness-level, 0.55)); }

        .form-group { margin-bottom: 15px; position: relative; }
        
        /* Tes styles pour les inputs */
        .input-ui {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 0.8rem;
            box-sizing: border-box;
        }

        .sim-label { font-weight: bold; display: block; margin-bottom: 5px; color: #000; }
        .format-hint { font-weight: normal; font-size: 0.85em; color: #555; display: block; margin-bottom: 4px;}
        
        /* Boutons de lancement */
        .btn-launch-slider { 
            padding: 10px 24px;
            font-size: 0.85rem; 
            width: auto;
            min-width: 160px;
            height: auto;
            display: inline-block;
            text-align: center;
            line-height: 1.2;
            cursor: pointer;
            margin-top: 10px;
        }

        /* Barre de contrôles du bas */
        .bottom-controls {
            display: flex; 
            margin-top: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #eee;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .brightness-slider-box { 
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 180px;
        }

        #range-b { width: 100px; cursor: pointer; }

        .error-msg { display: none; color: #d32f2f; font-size: 0.85em; margin-top: 5px; }
        ::placeholder { color: #d1d1d1; opacity: 1; }
        
        #instruction-zone h2 { display: block; width: 100%; }

        /* L'encart vert (celui que tu voulais) */
        #repair-success {
            display: none;
            background: #e8f5e9;
            border: 2px solid green;
            color: #1b5e20;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
        }

  
		
		
/* Styles de la liste de ressources */
/* Conteneur de la liste */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

/* Chaque item devient un conteneur Flex */
.resource-item {
    display: flex;
    justify-content: space-between; /* Pousse le contenu à gauche et le bouton à droite */
    align-items: center; /* Aligne verticalement le bouton avec le texte */
    gap: 40px; /* Espace de sécurité entre le texte et le bouton */
    
    padding: 25px;
    margin-bottom: 20px;
    background: #eff1eb;
    border: 1px solid #eee;
    border-left: 5px solid var(--underline-green);
    border-radius: 0 8px 8px 0;
}

/* Zone textuelle interne */
.resource-text {
    flex: 1; /* Prend tout l'espace disponible à gauche */
}

.resource-item h3 {
    margin: 0 0 10px 0 !important;
    font-size: 1.2rem !important;
}

.resource-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Ajustement du bouton pour qu'il ne se déforme pas */
.resource-item .btn-launch {
    white-space: nowrap; /* Empêche le texte du bouton de revenir à la ligne */
    min-width: fit-content;
}

/* Responsive : sur mobile, on repasse l'un sous l'autre */
@media (max-width: 768px) {
    .resource-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ==========================================================================
    12. AJUSTEMENT SPÉCIFIQUE : PROCESSUS EN 4 ÉTAPES
   ========================================================================== */

/* On crée une variante de grille spécifique pour les 4 étapes */
.grid-process {
    display: grid;
    /* On force 4 colonnes sur les grands écrans */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin: 40px 0;
}

/* Réutilisation des styles de cartes existants pour la cohérence */
.grid-process .card-home {
    background: white;
    padding: 30px; /* Un peu moins de padding pour loger les 4 blocs */
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Responsive : passage en 2 colonnes puis 1 seule */
@media (max-width: 1100px) {
    .grid-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .grid-process {
        grid-template-columns: 1fr;
    }
}

.punch {text-align: center; padding: 60px 20px;}

.punch p{font-size: 2rem}

.punch .btn-launch {    background: var(--accent-text)!important; color: var(--accent) !important;}

/* ==========================================================================
    FIX RESPONSIVE : ACCUEIL & H1
   ========================================================================== */
@media (max-width: 850px) {
    .bento-accent {
        border-right: none; /* On enlève la bordure verticale */
        border-bottom: 2px dotted #ccc; /* On la met en dessous */
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 10px;
    }

    .bento-accent h1 {
        font-size: 1.8rem !important; /* On réduit la taille pour mobile */
    }

    .bento-details .btn-launch {
        float: none; /* On remet le bouton dans le flux */
        margin-right: 0;
        width: 100%; /* Plus facile à cliquer au pouce */
        margin-top: 20px;
    }
}

@media (max-width: 950px) {
    /* On empile la zone de test et la console */
    .experience-layout {
        flex-direction: column !important;
        align-items: stretch;
    }

    /* La colonne de gauche (zone de test) prend toute la largeur */
    .exp-left-column {
        flex: none;
        width: 100%;
    }

    /* La console (colonne de droite) s'adapte aussi */
    #sr-console {
        min-width: 100%;
        height: 400px; /* On réduit un peu la hauteur sur mobile */
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    /* On annule les floats pour que les boutons s'empilent proprement */
    #cancel-btn, #target-btn, #repair-btn, #retry-btn, #peek-btn {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    .action-zone {
        padding: 20px; /* On réduit le padding interne trop large (40px) */
    }
    
    /* On s'assure que les images dans les boutons ne décalent pas le texte */
    .btn-ui {
        justify-content: center;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
    13. FORMULAIRE DE CONTACT
   ========================================================================== */

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.contact-form legend {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-left: 30px solid #f6c815;
    width: 100%;
    padding-left: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form .help {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

/* Antispam spécifique */
.antispam-box {
    background: #fdfae9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f6c815;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.antispam-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

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

.form-actions .btn-launch {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 20px;
    }
    
    .form-actions .btn-launch {
        width: 100%;
    }
}

/* ==========================================================================
   CORRECTIF SPÉCIFIQUE ATELIER MALVOYANCE (SÉCURISÉ)
   ========================================================================== */

/* 1. On force le focus orange sur les boutons SEULEMENT dans cet atelier */
#navigation-malvoyance .action-zone .btn-ui:focus, 
#navigation-malvoyance .action-zone a:focus {
    outline: 3px solid var(--focus-color) !important;
    outline-offset: 2px !important;
}

/* 2. On s'assure que le mode "is-broken" ne gagne pas sur le focus orange 
      une fois que l'utilisateur a cliqué sur "Appliquer les corrections" */
#navigation-malvoyance.is-fixed .action-zone .btn-ui:focus,
#navigation-malvoyance.is-fixed .action-zone a:focus {
    outline: 4px solid #E67E22 !important; /* Orange RGAA */
    outline-offset: 4px !important;
}

/* 3. On neutralise le liseré gris de simulation quand la correction est appliquée */
#navigation-malvoyance.is-fixed .action-zone .btn-ui {
    outline: none; /* Nettoyage des styles de l'erreur */
}