/* ==========================================================================
   NERION CONFIGURATOR ENGINE — SYSTEME GRAPHIQUE CENTRALISÉ ÉLITE (_PACKS.CSS)
   ------------------------------------------------================----------
   Destiné exclusivement à la page : packs.php (Simulateur de Devis Matrix)
   ZÉRO !important — Spécificité saine par cascade descendante (2026)
   ========================================================================== */

/* --- 1. INFRASTRUCTURE STRUCTURELLE ET MAILLAGE BLUEPRINT DE FOND --- */
.packs-php-layout main.configurator-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 50px 0 120px 0;
    position: relative;
    box-sizing: border-box;
    background-color: #061318;
    
    /* Restauration du maillage blueprint et du halo de laboratoire */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(112, 200, 193, 0.06) 0%, transparent 60%),
        linear-gradient(rgba(112, 200, 193, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 200, 193, 0.035) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* La clé de la largeur : Alignement au pixel près avec le menu principal et le footer */
.packs-php-layout .configurator-catalog-fluid {
    width: 100%;
    max-width: 1250px;    
    margin: 0 auto;         
    padding: 0 24px;       
    box-sizing: border-box;
}

/* 🛠️ FIX DE L'EN-TÊTE HERO : Neutralisation du fond pour faire réapparaître le blueprint */
.packs-php-layout {
    background-color: #061318;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(112, 200, 193, 0.06) 0%, transparent 60%),
        linear-gradient(rgba(112, 200, 193, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 200, 193, 0.035) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

.packs-php-layout .site-page-hero {
    max-width: 1250px;
    margin: 100px auto 60px auto; 
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.packs-php-layout .site-page-hero h1 {
    font-size: clamp(32px, 4.5vw, 44px);
    line-height: 1.3;
    font-weight: 300;
    color: #F7FBFA;
    margin: 6px auto 20px auto;
    text-align: center;
}

.packs-php-layout .site-page-hero h1 span {
    font-weight: 800;
    color: #70C8C1;
}

.packs-php-layout .site-page-hero p {
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #EDFBF8;
}

.packs-php-layout .site-page-hero h1::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #70C8C1;
    margin: 0 auto 20px auto; 
    box-shadow: 0 0 10px rgba(112, 200, 193, 0.6);
}

/* Couplage horizontal des 3 colonnes de configuration par brique d'expertise */
.packs-php-layout .site-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 28px;                          
    width: 100%;
    max-width: none;                    
    margin: 0 0 55px 0;
    padding: 0;
    box-sizing: border-box;
    align-items: stretch;
}

/* --- 2. DESIGN GLOSSY DES CASIERS BLEUS PROFONDS DES FORFAITS (PACKS) --- */
.packs-php-layout .matrix-box {
    background-color: #123544;   
    background-image: radial-gradient(circle at 100% 0%, rgba(112, 200, 193, 0.12) 0%, transparent 50%);
    border: 1px solid rgba(112, 200, 193, 0.15);
    border-top: 3px solid #70C8C1; /* Liseré supérieur bleu néon par défaut */
    border-radius: 4px;
    padding: 38px 24px;                 
    min-height: 200px;                  
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;                 
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

/* 🛠️ FIX DES ÉTATS HOVER SUR LES BENOT PARENTS (REACTION CORAIL) */
.packs-php-layout .matrix-box.pack-tarif-haut.featured-visual:hover {
    border-color: var(--corail);
    background-color: #143b4c;
    transform: translateY(-4px); /* Légère impulsion vers le haut */
}

.packs-php-layout .matrix-box:hover {
    border-color: rgba(112, 200, 193, 0.25);
    border-top-color: var(--corail); /* Le liseré supérieur passe au Corail au survol */
    background-color: #143b4c;
    transform: translateY(-4px); /* Légère impulsion vers le haut */
}

/* Conserve le focus permanent si la boîte contient le bouton radio coché */
.packs-php-layout .matrix-box:has(input[type="radio"]:checked) {
    border-color: rgba(216, 137, 114, 0.25);
    border-top-color: var(--corail);   
    background-color: #143b4c;         
    box-shadow: 0 15px 35px rgba(226, 148, 126, 0.08); 
}

/* 🛠️ FIX DES MACARONS VOLANTS CONFORME ET EN POSITIONNEMENT ABSOLU (IDÉAL TPE...) */
.packs-php-layout .matrix-box .badge-pop {
    position: absolute;
    top: -15px; /* À cheval sur le liseré haut */
    right: 20px;
    background: #70C8C1;
    color: #061318;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    display: inline-block;
    width: max-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Fix des titres de sections */
.packs-php-layout .bento-section-header { 
    font-size: 22px; 
    font-weight: 300; 
    color: #F7FBFA; 
    margin: 0 0 25px 0; 
    padding-bottom: 12px; 
    border-bottom: 1px solid rgba(112, 200, 193, 0.15); 
    text-align: left; 
    width: 100%; 
    display: block; 
}

.packs-php-layout .bento-section-header span { 
    color: #70C8C1; 
    font-weight: 800; 
}

/* En-tête des sous-options d'infrastructure */
.packs-php-layout .sub-options-bento-box div[style*="font-size: 12px"] {
    font-size: 12px;
    font-weight: 800;
    color: #70C8C1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-align: left;
}

.packs-php-layout .section-divider {
    font-size: 22px;                 
    font-weight: 300;                
    color: #F7FBFA; 
    text-transform: none;
    letter-spacing: normal;
    margin: 65px 0 30px 0;           
    padding-bottom: 12px; 
    border-bottom: 1px solid rgba(112, 200, 193, 0.15); 
    text-align: left;
    width: 100%;
    display: block;
}

/* --- 3. DESCRIPTIFS, PUCES VERTES ET COMPOSANTS INTERNES --- */
.packs-php-layout .matrix-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #F7FBFA;
    margin-bottom: 5px;
}

.packs-php-layout .matrix-target {
    font-size: 13px;
    color: #70C8C1;
    opacity: 0.8;
    margin-bottom: 15px;
    text-align: left;
}

.packs-php-layout .option-tag-box { 
    margin-top: auto; 
    padding-top: 15px; 
    font-size: 12.5px; 
    line-height: 1.5; 
    color: #EDFBF8; 
    border-top: 1px dashed rgba(112, 200, 193, 0.15); 
    text-align: left; 
    width: 100%; 
}

.packs-php-layout .option-tag-box strong { 
    color: #70C8C1; 
    font-weight: 700; 
}

.packs-php-layout .matrix-box .feature-list { 
    list-style: none; 
    padding: 0; 
    margin: 15px 0 20px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.packs-php-layout .matrix-box .feature-list li { 
    font-size: 13.5px; 
    line-height: 1.5; 
    color: #EDFBF8; 
    position: relative; 
    padding-left: 26px; 
    text-align: left; 
}

.packs-php-layout .matrix-box .feature-list li::before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    top: 1px; 
    color: #52DE97; 
    font-size: 14px; 
    font-weight: 900; 
    line-height: 1; 
}

.packs-php-layout .engagement-selector { 
    background: rgba(6, 19, 24, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.03); 
    padding: 14px; 
    border-radius: 4px; 
    margin: 18px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.packs-php-layout .engagement-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 13px; 
    color: #EDFBF8; 
}

.packs-php-layout .engagement-row.highlight {
    background: rgba(112, 200, 193, 0.08); 
    border: 1px solid rgba(112, 200, 193, 0.25); 
    padding: 6px 10px;                      
    border-radius: 4px;                     
    margin: 2px -4px;                       
    color: #F7FBFA;               
    font-weight: 700;
}

.packs-php-layout .engagement-row.highlight span:last-child {
    color: #70C8C1;             
    text-shadow: 0 0 8px rgba(112, 200, 193, 0.5); 
    font-weight: 800;
    font-family: monospace;                 
}

/* --- 4. PANIER LATÉRAL DROIT : GIVRÉ & TYPOGRAPHIE CONFORT RESTAURÉE --- */
.packs-php-layout .config-panier-zone { 
    position: fixed; 
    top: 0; 
    right: 0; 
    left: auto; 
    height: 100vh; 
    width: 420px; 
    background: rgba(6, 19, 24, 0.75);   
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(112, 200, 193, 0.08) 0%, transparent 40%),  
        radial-gradient(circle at 0% 100%, rgba(216, 137, 114, 0.05) 0%, transparent 40%); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); 
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06); 
    padding: 40px 24px 30px 24px;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6), inset 1px 1px 0 rgba(255, 255, 255, 0.04); 
    z-index: 9999; 
    overflow: hidden; 
    box-sizing: border-box; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.packs-php-layout .config-panier-zone:hover {
    border-left-color: rgba(112, 200, 193, 0.3); 
    box-shadow: -15px 0 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(112, 200, 193, 0.02);
}

.packs-php-layout .mini-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: flex-start;
}

.packs-php-layout #recap-lignes-panier {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    height: auto;
    max-height: calc(100vh - 460px); 
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-bottom: 25px; 
}

.packs-php-layout #recap-lignes-panier::-webkit-scrollbar { width: 4px; }
.packs-php-layout #recap-lignes-panier::-webkit-scrollbar-thumb { background: rgba(112, 200, 193, 0.2); border-radius: 4px; }

/* Calibrage de la taille à 14px anti-fatigue visuelle */
.packs-php-layout .devis-item-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.01); padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(112, 200, 193, 0.1); gap: 10px; width: 100%; flex-shrink: 0; }
.packs-php-layout .devis-item-row div:first-child { font-size: 14px; font-weight: 700; color: #F7FBFA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.packs-php-layout .devis-item-select { background-color: #061318; color: #F7FBFA; border: 1px solid rgba(112, 200, 193, 0.25); padding: 4px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; width: 85px; height: 26px; }
.packs-php-layout .devis-item-price-zone { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.packs-php-layout .devis-item-price { font-size: 14px; font-weight: 700; color: #70C8C1; }
.packs-php-layout .devis-remove-btn { background: rgba(226, 148, 126, 0.08); color: var(--corail); border: 1px solid rgba(226, 148, 126, 0.15); width: 20px; height: 20px; border-radius: 4px; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.packs-php-layout .devis-quantity-controls { display: inline-flex; flex-direction: row; align-items: center; background: #061318; border: 1px solid rgba(112, 200, 193, 0.25); border-radius: 4px; width: 75px; height: 24px; flex-shrink: 0; }
.packs-php-layout .devis-qty-btn { width: 22px; height: 100%; color: #70C8C1; font-size: 12px; border: none; background: transparent; cursor: pointer; }
.packs-php-layout .devis-qty-value { font-size: 13px; color: #F7FBFA; flex-grow: 1; text-align: center; }

/* Formulaire de coordonnées bas du volet */
.packs-php-layout .panier-capture-form {
    margin-top: 0;
    border-top: 1px dashed rgba(112, 200, 193, 0.15);
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 100%;
}

.packs-php-layout .panier-capture-form div:first-child {
    font-size: 13px;
    font-weight: 800;
    color: #70C8C1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(112, 200, 193, 0.15);
    padding: 0 0 12px 0;
    display: block;
    width: 100%;
}

.packs-php-layout .panier-capture-form input,
.packs-php-layout .panier-capture-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(112, 200, 193, 0.15);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #F7FBFA;
    font-family: var(--font-base);
    box-sizing: border-box;
    transition: var(--transition-fluid);
}

.packs-php-layout .panier-capture-form input:focus {
    outline: none;
    background: rgba(112, 200, 193, 0.05);
    border-color: #70C8C1;
    box-shadow: 0 0 8px rgba(112, 200, 193, 0.15);
}

/* Ligne finale du montant total */
.packs-php-layout .sim-line {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 25px 0 15px 0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 400;
    color: #EDFBF8;
}

.packs-php-layout .sim-line #config-total-prix {
    font-size: 24px;
    font-weight: 800;
    color: var(--corail);
    display: inline-block;
    letter-spacing: 0.5px;
}

/* --- 5. NOTIFICATIONS D'ERREURS MUTEX --- */
.packs-php-layout .panier-error-notification-card {
    background: rgba(216, 137, 114, 0.08);
    border: 1px solid rgba(216, 137, 114, 0.25);
    border-left: 4px solid var(--corail);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
    box-sizing: border-box;
    animation: slideInDownAlert 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.packs-php-layout .panier-error-notification-card p {
    color: var(--corail);
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

@keyframes slideInDownAlert {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. LISSAGE HORIZONTAL DES OPTIONS DU CATALOGUE --- */
.packs-php-layout .sub-options-list-fluid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 15px 0 65px 0;
    padding: 0;
    box-sizing: border-box;
}

.packs-php-layout .sub-options-list-fluid .option-carte-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 0px;
    max-height: none;
    padding: 10px 20px;
    margin: 0 0 6px 0;
    background: linear-gradient(90deg, #0d2730, #061318);
    border-bottom: 1px solid rgba(112, 200, 193, 0.20);
    border-left: 4px solid #70C8C1;
    border-top: none; border-right: none;
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s ease-in-out;

}
.packs-php-layout .sub-options-list-fluid .option-carte-item:hover {
    border-color: #70C8C1;
    background: linear-gradient(90deg, #123744, #081921);
    box-shadow: 0 4px 12px rgba(112, 200, 193, 0.1);
}

.packs-php-layout .option-carte-item:has(input[type="checkbox"]:checked) {
    border-color: #70C8C1;
    background: linear-gradient(90deg, #164654, #061318);
}

.packs-php-layout .option-carte-item .config-option-label {
    margin: 0; padding: 0;
    display: flex; flex-direction: row;
    align-items: center; gap: 12px;
    flex-shrink: 0; width: auto;
}

.packs-php-layout .option-carte-item h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #F7FBFA;
    margin: 0;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.packs-php-layout .option-carte-item p {
    margin: 0; padding: 0 15px;
    font-size: 12px;
    color: #EDFBF8;
    opacity: 0.5;
    text-align: left;
    flex-grow: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.packs-php-layout .option-carte-item .option-price-badge {
    margin: 0 0 0 auto;
    padding: 3px 10px;
    border: 1px solid rgba(112, 200, 193, 0.15);
    background: rgba(6, 19, 24, 0.4);
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    font-weight: bold;
    color: #70C8C1;
    text-align: right;
    flex-shrink: 0;
    display: inline-block;
}

/* --- 7. CENTRALISATION ARCHITECTURALE DES 3 ÉTATS DU BOUTON DE DEVIS --- */
.packs-php-layout #btn-valider-packs {
    width: 100%;
    margin-top: 20px;
    display: block;
    background: #152226;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    padding: 14px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.packs-php-layout #btn-valider-packs.pack-actif {
    background: #70C8C1;
    color: #061318;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(112, 200, 193, 0.2);
}

.packs-php-layout #btn-valider-packs.pack-actif:hover {
    background: #ffffff;
    color: #061318;
    box-shadow: 0 0 20px rgba(112, 200, 193, 0.4);
    transform: translateY(-2px);
}

.packs-php-layout #btn-valider-packs.pack-incoherent {
    background: rgba(226, 148, 126, 0.08);
    color: var(--corail);
    border: 1px dashed var(--corail);
    pointer-events: none;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
    transform: none;
}

.packs-php-layout .panier-vide-alerte {
    color: #EDFBF8;
    font-size: 14px;
    opacity: 0.6;
    text-align: center;
    padding: 20px 0;
    line-height: 1.5;
    width: 100%;
    display: block;
}

/* --- 8. PASTILLES DE CHOIX ET BOUTONS RADIOS INTERACTIFS CUSTOMISÉS --- */
.packs-php-layout .config-selector-label,
.packs-php-layout .config-option-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    width: 100%;
    position: relative;
    z-index: 55;
}

.packs-php-layout .custom-radio-ui {
    width: 18px;
    height: 18px;
    border: 2px solid #70C8C1;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.packs-php-layout .custom-radio-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--corail);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.packs-php-layout .matrix-box input[type="radio"]:checked + .custom-radio-ui { border-color: var(--corail); }
.packs-php-layout .matrix-box input[type="radio"]:checked + .custom-radio-ui::after { transform: translate(-50%, -50%) scale(1); }
.packs-php-layout .custom-checkbox-ui {
    width: 18px;
    height: 18px;
    border: 2px solid #70C8C1;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.packs-php-layout .custom-checkbox-ui::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--corail);
    font-size: 12px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.packs-php-layout .option-carte-item input[type="checkbox"]:checked + .custom-checkbox-ui { border-color: var(--corail); }
.packs-php-layout .option-carte-item input[type="checkbox"]:checked + .custom-checkbox-ui::after { transform: translate(-50%, -50%) scale(1); }
.packs-php-layout .option-carte-item:has(input[type="checkbox"]:checked) { border-top-color: var(--corail); }
.packs-php-layout .engagement-selector,
.packs-php-layout .devis-item-select,
.packs-php-layout .option-tag-box strong,
.packs-php-layout .devis-quantity-controls {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.packs-php-layout .option-carte-item input[type="checkbox"],
.packs-php-layout input[type="checkbox"].config-checkbox,
.packs-php-layout input[type="radio"].config-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

/* --- 9. RESPONSIVE SÉCURISÉ TABLETTE & SMARTPHONE --- */
@media (max-width: 1250px) {
    .packs-php-layout .configurator-main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 16px 80px 16px;
    }

    .packs-php-layout .configurator-catalog-fluid { width: 100%; max-width: 100%; padding: 0; margin: 0 0 50px 0; }
    .packs-php-layout .site-bento-grid { display: flex; flex-direction: column; gap: 24px; width: 100%; }
    .packs-php-layout .matrix-box { width: 100%; min-height: auto; }
    .packs-php-layout .config-panier-zone {
        position: relative; top: auto; right: auto; left: auto;
        width: 100%; max-width: 1250px; height: auto; max-height: none; overflow: visible;
        background: #061318; border: 1px solid rgba(112, 200, 193, 0.15);
        border-top: 3px solid #70C8C1; border-radius: 6px;
        padding: 40px 24px; margin: 0 auto;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4); z-index: 10;
        display: flex; flex-direction: column; box-sizing: border-box;
    }

    .packs-php-layout #recap-lignes-panier { max-height: none; overflow-y: visible; gap: 16px; margin-bottom: 25px; }
    .packs-php-layout .devis-item-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
    .packs-php-layout .devis-item-select { width: 100%; }
    .packs-php-layout .devis-item-price-zone { width: 100%; justify-content: space-between; }
    .packs-php-layout .panier-capture-form { margin-top: 30px; padding-top: 25px; }
    .packs-php-layout .panier-capture-form input { width: 100%; max-width: 100%; display: block; }
    .packs-php-layout .sim-line { margin-top: 25px; padding-top: 15px; font-size: 18px; }
}

@media (max-width: 1024px) {
    .packs-php-layout .sub-options-list-fluid .option-carte-item {
        flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 20px;
    }
    .packs-php-layout .option-carte-item p { padding: 0; white-space: normal; display: block; width: 100%; }
    .packs-php-layout .option-carte-item .option-price-badge { margin: 4px 0 0 auto; }
}

/* ==========================================================================
   ⚙️ MODULE DE VALIDATION COMPORTEMENTALE EN TEMPS RÉEL (PANIER VALIDATION)
   ========================================================================== */

/* 🟥 ÉTAT INVALIDE : Allumage Rouge Corail de sécurité si la saisie est incorrecte */
.packs-php-layout .panier-capture-form input.is-invalid {
    border: 1px solid var(--corail);
    background-color: rgba(216, 137, 114, 0.06);
    box-shadow: 0 0 8px rgba(216, 137, 114, 0.15);
}

/* Intercepte le focus spécifique sur une case en anomalie */
.packs-php-layout .panier-capture-form input.is-invalid:focus {
    border-color: var(--corail);
    background-color: rgba(216, 137, 114, 0.1);
    box-shadow: 0 0 10px rgba(216, 137, 114, 0.25);
}

/* 🟩 ÉTAT VALIDE : Allumage Turquoise d'ingénierie si le critère regex est rempli */
.packs-php-layout.panier-capture-form input.is-valid {
    border: 1px solid var(--accent-light);
    background-color: rgba(112, 200, 193, 0.05);
    box-shadow: 0 0 8px rgba(112, 200, 193, 0.12);
}

/* Intercepte le focus spécifique sur une case validée */
.packs-php-layout .panier-capture-form input.is-valid:focus {
    border-color: var(--accent-light);
    background-color: rgba(112, 200, 193, 0.08);
    box-shadow: 0 0 10px rgba(112, 200, 193, 0.2);
}

/* ==========================================================================
   📦 MODULE TIROIR ESCAMOTABLE & BOUTON DE BASCULE (PANIER LATÉRAL)
   ========================================================================== */

/* 1. On autorise le débordement pour laisser respirer l'attache du bouton sur la tranche */
.packs-php-layout .config-panier-zone {
    overflow: visible !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 2. Bouton de bascule ancré littéralement à la bordure gauche du panier */
.packs-php-layout .config-panier-zone .panier-toggle-btn {
    position: absolute;
    left: -42px;
    top: 40px; /* Aligné proprement avec le haut du titre */
    width: 42px;
    height: 52px;
    background-color: #123544; /* Fond de carte Nerion */
    background-image: radial-gradient(circle at 100% 0%, rgba(112, 200, 193, 0.15) 0%, transparent 60%);
    border: 1px solid rgba(112, 200, 193, 0.25);
    border-right: none; /* Soudé à la bordure du panier */
    border-radius: 8px 0 0 8px;
    color: #70C8C1; /* Turquoise officiel Nerion */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fluid);
}

/* Effet au survol aux couleurs de la charte */
.packs-php-layout .config-panier-zone .panier-toggle-btn:hover {
    background-color: #164654;
    color: #F7FBFA;
    border-color: #70C8C1;
    box-shadow: -10px 0 30px rgba(112, 200, 193, 0.2);
}

/* État fermé du volet sur grand écran (Glissement vers la droite) */
.packs-php-layout .config-panier-zone.panier-ferme {
    transform: translateX(100%);
}

/* Rotation fluide de la flèche selon l'état */
.packs-php-layout .config-panier-zone.panier-ferme .panier-toggle-btn .arrow-icon {
    transform: rotate(180deg);
}

.packs-php-layout .config-panier-zone .panier-toggle-btn .arrow-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    line-height: 1;
}