/* ==========================================
   1. BASES & VARIABLES
   ========================================== */
:root {
    --blue-amix: #1a2a5a;
    --blue-btn: #3b5998;
    --blue-hover: #2a437c;
    --rouge-fonce: #580204;
    --rouge-clair: #dc3545;
    --gris-clair: #6c757d;
    --noir-clair: #555;
    --blanc-bleu-clair: #f4f5fd;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body { 
    margin: 0; 
    overflow-x: hidden; 
    font-family: sans-serif; 
    color: var(--noir-clair); 
    background-color: var(--blanc-bleu-clair); 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color:var(--blue-amix);  }
img { max-width: 100%; height: auto; }

main {
    flex: 1;
    display: flex;
    flex-direction: column; 
    align-items: stretch;  
    justify-content: flex-start; 
}


/* Titre des pages */
.titre-page {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-amix);
  font-weight: bold;
  width: 1000px;
  max-width: 100%; 
  margin: 30px auto 5px auto;
  text-align: center;
}

.titre-page.ligne-dessous {
  border-bottom: 1px solid rgba(26, 42, 90, 0.15);
  padding-bottom: 25px;
}

.titre-page.ligne-cote {
  margin-bottom: 30px;
}

.titre-page.ligne-cote::before,
.titre-page.ligne-cote::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(26, 42, 90, 0.15);
}

.titre-page.ligne-cote span {
  padding: 0 20px;
}

/* h1 à la taille d'un h2 */
.titre-page.taille-h2 { font-size: 1.5em; }

/* Utilitaires */
.v-center { justify-content: center; }

/* h1 masqué des pages sans titre visible */
.titre-invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v-center .features-container { gap: 150px; max-width: 100%; }

/* Boutons */
.bouton1 {
    background: var(--blue-amix);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 14px;
    transition: 0.3s; 
    text-transform: uppercase;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
}
.bouton1:hover { opacity: 0.9; }


/* ==========================================
   2. SLIDER (SWIPER)
   ========================================== */
.swiper-news {
    width: 100%; height: 350px;
    background: url('../img/fond/fond1.png') center/auto 100% no-repeat;
}
.swiper-slide { display: flex; justify-content: center; align-items: center; }
.swiper-slide img { max-height: 80%; width: 85%; object-fit: contain; }

.swiper-button-next, .swiper-button-prev {
    color: #fff !important; background: rgba(0, 0, 0, 0.4);
    width: 45px; height: 45px; border-radius: 50%;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; font-weight: bold; }

/* ==========================================
   3. ENCARTS PRODUITS (LAYOUTS)
   ========================================== */

/* Conteneur Standard */
.features-container {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    padding: 40px 5%; 
    flex-wrap: wrap;
    max-width: 1400px; 
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Conteneur Large */
.features-container2 {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    padding: 40px 5%; 
    flex-wrap: wrap;
    max-width: 1800px; 
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Carte Type 1 */
.feature-card {
    background: #fff url('../img/fond/fond_encart.png') center/cover no-repeat;
    border-radius: 15px; 
    box-shadow: var(--shadow);
    padding: 30px; 
    flex: 0 1 calc(33.333% - 60px); 
    min-width: 350px; 
    max-width: 440px; 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s;
}

/* Carte Type 2 */
.feature-card2 {
    background: #fff url('../img/fond/fond_encart.png') center/cover no-repeat;
    border-radius: 15px; 
    box-shadow: var(--shadow);
    padding: 20px; 
    flex: 0 1 calc(33.333% - 60px); 
    min-width: 350px; 
    max-width: 390px; 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s;
}

/* ==========================================
   4. HEADERS DES CARTES
   ========================================== */
.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

.feature-header h2 { 
    font-size: 18px; color: var(--blue-amix); margin: 0; text-align: center; 
    width: 100%;
}

.feature-header h3 { 
    font-size: 14px; color: var(--blue-amix); margin: 0; text-align: center; 
    width: 100%;
    font-weight: normal;
}

.feature-header2 {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

.feature-header2 h2 { 
    font-family: sans-serif; 
    color: var(--blue-amix);
    text-align: center;
    font-size: 18px; 
    font-weight: bold;
    margin: 0; 
    width: 100%;
    text-transform: none; 
}

/* Séparation sous le nom du revendeur */
.feature-card .feature-header {
    border-bottom: 1px solid rgba(26, 42, 90, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
    width: 100%;
}


.header-left { text-align: left; flex: 1; }
.header-left h2 {
    font-family: sans-serif;
    color: var(--blue-amix);
    text-align: left; 
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    width: auto; 
}

.header-right {
    text-align: right;
    display: flex;
    flex-direction: column; 
    gap: 2px;
    flex-shrink: 0; 
}

.product-name { display: block; color: #666; font-size: 0.85rem; line-height: 1.2; }

/* ==========================================
   5. CORPS ET IMAGES DES CARTES
   ========================================== */
.feature-body {
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; flex: 1;
}

.feature-body2 {
    display: flex; flex-direction: column; 
    flex: 1;
    position: relative;
    padding: 10px 20px;
    min-height: 180px;
    align-items: center;
    justify-content: center;
}

.feature-body2 a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.product-img { 
    width: 100%;
    max-width: 380px;
    height: 160px;
    object-fit: contain;
    margin: 10px 0;
    transition: 0.3s;
}

.product-img2 {
    display: block;
    margin: 0 auto;
    max-width: 75%; 
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin: 10px 0;
    transition: 0.3s;
}

/* Page Tout le support : icône réduite */
.icone-support { padding: 25px 0; box-sizing: border-box; }
.support-desc { text-align: center; color: var(--noir-clair); margin: 5px 0 20px; }

.feature-card a:hover .product-img { transform: scale(1.05); }
.feature-card2 a:hover .product-img2 { transform: scale(1.05); }

/* ==========================================
   6. FOOTERS ET ÉLÉMENTS INTERACTIFS
   ========================================= */
.feature-footer {
    display: flex; 
    width: 100%; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 15px; 
}

.feature-footer:has(.logo-nf-bottom) { justify-content: space-between; }

.feature-footer2 {
    display: flex; 
    width: 100%; 
    justify-content: center; 
    align-items: center;
    padding-top: 15px;
    margin-top: auto; 
}



.logo-nf-bottom { height: 35px; width: auto; object-fit: contain; }

.link-designation {
    font-size: 14px;
    color: var(--blue-amix);
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0 10px;
}
.link-designation:hover {
    color: var(--blue-hover);
    text-decoration: none;
    transform: translateY(-1px);
    text-shadow: 0px 2px 4px rgba(0,0,0,0.08);
}

/* ==========================================
   7. BADGES, TAGS ET MENTIONS
   ========================================= */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.badge-container {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 5;
}

.badge-left { left: 10px; }
.badge-right { right: 10px; }

.badge-icon {
    width: 35px; 
    height: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.product-status { text-align: center; margin-top: 10px; min-height: 20px; }

.status-tag {
    font-size: 20px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.tag-blue { background: #e8eaf6; color: #3f51b5; border: 1px solid #3f51b5; }
.tag-red { background: #ffebee; color: #f44336; border: 1px solid #f44336; }

.legal-mention { font-size: 9px; font-weight: bold; white-space: nowrap; }
.legal-blue { color: #3f51b5; }
.legal-red { color: #f44336; }

/* ==========================================
   8. BANNIÈRE RECALIBRATION
   ========================================= */
.recalibration-banner {
    background-color: #0b1121; 
    color: #ffffff;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.recalibration-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.recalibration-text { flex: 1; z-index: 2; }
/* h2 avec la marge d'un h1 */
.recalibration-text h2 { font-size: 30px; margin-top: 0.67em; margin-bottom: 20px; font-weight: 500; }
.recalibration-text p { font-size: 16px; color: #d1d1d1; margin: 5px 0; }

.btn-recalib {
    display: inline-block;
    margin-top: 30px;
    background-color: #2c3f6a; 
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}
.btn-recalib:hover { background-color: #3b5998; }

.recalibration-image { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.recalibration-image img { max-height: 300px; object-fit: cover; }

.social-icons-overlay {
    position: absolute; bottom: 10px; right: 10px;
    display: flex; gap: 10px;
}
.social-icons-overlay img { height: 24px; filter: brightness(0) invert(1); }

/* ==========================================
   9. INSTALLATIONS (BAS)
   ========================================= */
.install-section { padding: 40px 10%; text-align: center; }


.install-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.install-card {
    position: relative; flex: 1; min-width: 220px; max-width: 280px;
    height: 180px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.install-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.install-card:hover img { transform: scale(1.1); }

.install-label {
    position: absolute; bottom: 0; width: 100%;
    background: rgba(44, 63, 106, 0.85); color: #fff;
    padding: 12px 0; font-size: 1rem;
}

/* ==========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .feature-card { min-width: 100%; }
    .feature-card2 { min-width: 100%; }
}

@media (max-width: 768px) {
    .swiper-news { height: 250px; }
    .separator-title span { font-size: 1.2rem; }
    
    .feature-footer { flex-direction: column; gap: 15px; }
    .btn-view { width: 100%; text-align: center; }
    
    .install-card { min-width: calc(50% - 20px); }

    .recalibration-content { flex-direction: column; text-align: center; }
    .recalibration-image { margin-top: 20px; justify-content: center; }
    .recalibration-text h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .install-card { min-width: 100%; }
}



/* ==========================================
    CONTACT & FORMULAIRE
   ========================================== */

.contact-page-main {
    background-color: #f9fafb; 
    padding: 20px 0 100px 0;
}

.container-xxl {
    max-width: 1500px; 
    margin: 0 auto;
    padding: 0 40px;
}

/* --- En-tête (infos AMIX) --- */
.amix-header-box {
    background-image: url('../img/fond/fond_encart.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.contact-box-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--blue-amix);
}

.direct-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: bold;
}

.contact-item {
    font-size: 0.95rem;
    color: var(--blue-amix);
}

.contact-box-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.hours-badge {
    text-align: right;
    color: #6b7280;
}

.hours-title {
    display: block;
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--blue-amix);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hours-detail {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-sav-contact {
    background: var(--blue-amix);
    color: white !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    min-width: 200px;
}

.btn-sav-contact:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Formulaire --- */
.form-section-transparent h2,
.form-section-transparent h3 {
    color: var(--blue-amix);
    font-size: 1.9rem;
    margin: 0 0 40px 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

/* Formulaire de contact : largeur du formulaire SAV */
.contact-form-section {
    max-width: 1000px;
    margin: 0 auto;
}

/* Grille (PC) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
}

/* Largeurs de colonnes */
.form-group.full { grid-column: span 3; }
.form-group.double { grid-column: span 2; }

/* Civilité + Nom sur la même ligne */
.flex-row-group {
    display: flex;
    gap: 15px;
    grid-column: span 2;
}
.w-mini { width: 120px; flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* Champs */
.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #333;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-amix);
    box-shadow: 0 0 0 3px rgba(26, 42, 90, 0.05);
}

.form-group input:invalid:focus {
    border-color: #ef4444;
}

/* Bouton d'envoi */
.btn-container {
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

.btn-submit {
    background: var(--blue-amix);
    color: white;
    padding: 18px 80px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: background 0.2s, opacity 0.2s;
}
.btn-submit:hover { 
    opacity: 0.9; 
}


/* ==========================================================================
   RESPONSIVE TABLETTE & MOBILE (< 768px) - CONTACT
   ========================================================================== */
@media (max-width: 768px) {
    .container-xxl {
        padding: 0 20px;
    }

    /* En-tête AMIX en colonne, centré */
    .amix-header-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .contact-box-right {
        align-items: center;
        margin-top: 25px;
        border-top: 1px dashed rgba(26, 42, 90, 0.15);
        padding-top: 25px;
        width: 100%;
    }

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

    /* Formulaire sur une colonne */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Colonnes multiples annulées */
    .form-group.full, 
    .form-group.double, 
    .flex-row-group { 
        grid-column: span 1; 
    }

    /* Civilité et Nom */
    .flex-row-group {
        flex-direction: row; /* restent sur une ligne */
    }

    /* Bouton d'envoi */
    .btn-submit {
        width: 100%;
        padding: 16px 20px;
    }
}
/* ==========================================
   10. RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
    /* Cartes */
    .feature-card { min-width: 100%; }
    .feature-card2 { min-width: 100%; }
    
    /* Formulaire */
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full, .form-group.double, .flex-row-group { grid-column: span 1; }
    .flex-row-group { flex-direction: column; gap: 20px; }
    .w-mini { width: 100%; }
}


.doc-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.doc-item:hover {
    background: #fff;
    border-color: var(--blue-amix);
    transform: translateX(5px);
}

.doc-item img {
    width: 35px;
    height: auto;
    flex-shrink: 0;
}

.doc-item span {
    font-size: 0.95rem;
    color: var(--blue-amix);
    font-weight: 500;
    line-height: 1.3;
}

/* Page Réglementation : récap du décret 2017-1244 */
.recap-decret {
    background: #fff url('../img/fond/fond_encart.png') center/cover no-repeat;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 920px;
    margin: 0 auto 50px;
    color: #333;
    line-height: 1.55;
}

.recap-decret .feature-header {
    border-bottom: 1px solid rgba(26, 42, 90, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.recap-decret p { margin: 0 0 8px; }

.recap-decret h3 {
    color: var(--blue-amix);
    font-size: 1.05rem;
    margin: 28px 0 12px;
}

.recap-table-cadre { overflow-x: auto; }

.recap-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    overflow: hidden;
}

.recap-table th {
    background: var(--blue-amix);
    color: #fff;
    text-align: left;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.recap-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(26, 42, 90, 0.1);
}

.recap-table th:not(:first-child),
.recap-table td.recap-valeur { text-align: center; width: 100px; }

.recap-table td.recap-valeur span {
    display: inline-block;
    min-width: 58px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--blue-amix);
    color: #fff;
    font-weight: bold;
    font-size: 1.35rem;
    line-height: 1.3;
    box-shadow: 0 3px 8px rgba(26, 42, 90, 0.25);
}

.recap-obligations {
    list-style: none;
    counter-reset: obligation;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.recap-obligations > li {
    counter-increment: obligation;
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(26, 42, 90, 0.12);
    border-radius: 10px;
    padding: 15px 15px 12px 55px;
}

.recap-obligations > li::before {
    content: counter(obligation);
    position: absolute;
    left: 15px;
    top: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-amix);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recap-obligations > li > strong { color: var(--blue-amix); }

.recap-obligations ul,
.recap-liste ul { margin: 6px 0 0; padding-left: 18px; }

.recap-liste { margin: 0; padding-left: 20px; }
.recap-liste > li { margin-bottom: 8px; }

.recap-sanctions {
    margin-top: 28px;
    background: rgba(220, 53, 69, 0.06);
    border-left: 4px solid var(--rouge-fonce);
    border-radius: 0 10px 10px 0;
    padding: 5px 20px 12px;
}

.recap-sanctions h3 { color: var(--rouge-fonce); margin-top: 12px; }

.recap-note {
    margin-top: 20px !important;
    font-size: 0.85rem;
    color: var(--gris-clair);
}

.recap-note a { text-decoration: underline; }

@media (max-width: 768px) {
    .recap-decret { padding: 20px 16px; }
    .recap-obligations { grid-template-columns: 1fr; }
}

/* Description sous le titre de la catégorie */
.category-description {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 10px auto 10px auto; 
    align-self: center;
    padding: 20px 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    text-align: left;


}

/* Marges des paragraphes venant de la base */
.category-description p {
    margin: 0 0 10px 0;
}
.category-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   PAGE SOCIETE 
   ========================================== */

.societe-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1500px;
    margin: 25px auto 50px auto;
    padding: 0 25px;
    gap: 50px;
    box-sizing: border-box;
    align-items: stretch;
}

.societe-texte-col {
    flex: 0.9; 
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
}

.societe-texte-col .societe-box {
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 10px 0;
    
    align-items: center;
    align-self: stretch;
    background-color: transparent; 
    border: none;
    box-shadow: none;
}

.societe-texte-col .societe-box:not(:last-child) {
    border-bottom: 3px solid var(--gris-clair); 
    margin-bottom: 10px;
    padding-bottom: 15px;
}

.societe-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
}

.societe-box-icon {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.societe-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.societe-box-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-amix);
}

.societe-box-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--noir-clair); 
}

.societe-photo-col {
    flex: 1.3;
    display: flex;
}

.societe-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .societe-container {
        flex-direction: column; 
        gap: 30px;
        padding: 0 20px;
    }

    .societe-photo-col {
        height: 350px;
    }

    .societe-img {
        min-height: auto;
    }

    .societe-texte-col .societe-box:not(:last-child) {
        padding-bottom: 20px;
        margin-bottom: 5px;
    }
}
/* ==========================================
   PAGE FAQ
   ========================================== */

.faq-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px; /* largeur de la page Choisir */
    margin: 10px auto 60px auto;
    padding: 0;
    box-sizing: border-box;
}

.faq-list-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Bloc de question */
.faq-box {
    display: block;
    padding: 25px 0;
    width: 100%;
    background-color: transparent;
    box-sizing: border-box;
}

/* Trait de séparation */
.faq-box:not(:last-child) {
    border-bottom: 3px solid #cbd5e1;
    margin-bottom: 5px;
}

/* Question cliquable, flèche à droite */
.faq-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 45px; /* place de la flèche */
    user-select: none;
    transition: color 0.2s ease;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-amix);
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Survol */
.faq-toggle:hover {
    color: var(--blue-hover) !important;
}

/* Flèche ▼ */
.faq-toggle::after {
    content: "▼";
    font-size: 0.85rem;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    transition: transform 0.3s ease, color 0.2s ease;
}

/* Flèche bleue au survol */
.faq-toggle:hover::after {
    color: var(--blue-amix);
}

/* Flèche ▲ quand la question est ouverte */
.faq-toggle.active::after {
    color: var(--blue-amix);
    transform: translateY(-50%) rotate(-180deg);
}

/* Réponse (masquée au départ) */
.faq-box-text {
    padding-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.faq-box-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.faq-lien {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--blue-btn);
}
.faq-lien:hover { color: var(--blue-hover); text-decoration: underline; }

/* ==========================================
   FAQ : LISTES IMBRIQUÉES (Q3 & Q4)
   ========================================== */

/* Liste principale */
.faq-main-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.faq-main-list > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.faq-main-list > li:last-child {
    margin-bottom: 0;
}

/* Texte de la condition */
.faq-condition-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Puce carrée bleue */
.faq-main-list > li::before {
    content: ""; 
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    background-color: var(--blue-amix);
    border-radius: 1px;
}

/* Sous-liste */
.faq-sub-list {
    list-style: none;
    padding-left: 15px;
    margin: 8px 0 0 0;
}

.faq-sub-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.faq-sub-list li:last-child {
    margin-bottom: 0;
}

/* Puce tiret (–) grise */
.faq-sub-list li::before {
    content: "–"; 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.95rem;
    color: #888;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1020px) {
    .faq-container {
        padding: 0 20px;
    }
    .faq-toggle {
        font-size: 1.05rem;
        padding-right: 35px;
    }
    .faq-toggle::after {
        right: 0;
    }
}

/* ==========================================
   CHOISIR
   ========================================== */

.assistant-choix-container {
    width: 100%;             
    max-width: 1000px;       
    margin: 20px auto 40px auto; 
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.assistant-trigger {
    background-color: var(--blue-amix);
    color: #fff;
    padding: 18px 45px 18px 25px; 
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: relative; 
    user-select: none;
}

.assistant-trigger:hover {
    background-color: var(--blue-amix);
    opacity: 0.95;
}

.assistant-trigger::after {
    content: "+";
    font-size: 2.5 rem;
    position: absolute;
    right: 25px; 
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #fff;
}

.assistant-trigger.active::after {
    transform: translateY(-50%) rotate(-180deg);
}

.assistant-content {
    display: none;
    background: var(--blanc-bleu-clair);
    border: 1px solid #fff;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.assistant-step {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--blanc-bleu-clair);
}

.assistant-step.active-step {
    display: block;
}

.assistant-step h3 {
    color: var(--noir-clair);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.assistant-options-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.assistant-link-prod {
    color: var(--blue-amix) !important;
    font-weight: bold;
    text-decoration: underline;
}
.assistant-link-prod:hover {
    opacity: 0.8;
}

.btn-option {
    flex: 1;
    background: #fff;
    border: 2px solid var(--blue-amix);
    color: var(--blue-amix);
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-option:hover, .btn-option.selected {
    background: var(--blue-amix);
    color: #fff;
}

.assistant-result-box {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: var(--blanc-bleu-clair);
    border-left: 5px solid var(--blue-amix);
    border-radius: 4px;
}

@media (max-width: 1020px) {
    .assistant-choix-container {
        width: 100%;
        padding: 0 20px; 
    }
    .assistant-options-grid {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   MAJ
   ========================================== */

        .maj-container-grid {
            display: flex;
            flex-direction: column;
            gap: 25px;
            /* Bastien : largeur fixe (celle de la ligne sous le titre) */
            box-sizing: border-box;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto 60px auto;
        }

        /* --- Encart catégorie (niveau 1) --- */
        .category-card {
            background: #fff;
            border: 1px solid rgba(26, 42, 90, 0.12);
            border-radius: 8px;
            box-shadow: var(--shadow);
            overflow: hidden;
            width: 100%;
        }
        .category-header-toggle {
            background-color: #f8f9fa;
            padding: 18px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background 0.2s;
        }
        .category-header-toggle:hover { background-color: #f1f3f9; }
        .category-title {
            font-size: 1.25rem;
            margin: 0;
            color: #1a2a5a;
            font-weight: bold;
        }
        .category-arrow {
            font-size: 1.2rem;
            color: #1a2a5a;
            transition: transform 0.3s ease;
        }
        .category-card.open .category-arrow { transform: rotate(180deg); }

        .category-content {
            display: none;
            padding: 20px;
            background: #fafafa;
            border-top: 1px solid rgba(26, 42, 90, 0.08);
        }

        /* --- Sous-encart micrologiciel (niveau 2) --- */
        .maj-item-block {
            background: #fff;
            border: 1px solid rgba(26, 42, 90, 0.15);
            border-radius: 6px;
            margin-bottom: 15px;
            overflow: hidden;
        }
        .maj-item-block:last-child { margin-bottom: 0; }
        
        .maj-item-header {
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            background: #fff;
        }
        .maj-item-title {
            font-size: 1.05rem;
            margin: 0;
            color: #1a2a5a !important;
            font-weight: bold;
        }
        .maj-item-arrow {
            font-size: 1rem;
            color: #1a2a5a !important;
            transition: transform 0.3s ease;
        }
        .maj-item-block.open .maj-item-arrow { transform: rotate(180deg); }

        .maj-item-content {
            display: none;
            background: #fff;
            border-top: 1px solid rgba(26, 42, 90, 0.1);
        }

        /* --- Historique des versions --- */
        .version-row {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: left;
        }
        .version-row:last-child { border-bottom: none; }
        .version-top-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .version-badge {
            background: #e6f4ea;
            color: #137333;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 0.85rem;
        }
        .version-date { font-size: 0.8rem; color: #888; }
        .version-notes { font-size: 0.88rem; color: #444; line-height: 1.3; margin: 2px 0 6px 0; overflow-wrap: anywhere; } /* coupe les mots trop longs */
        
        .btn-download-version {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #1a2a5a;
            color: #fff !important;
            text-decoration: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: background 0.2s;
            width: fit-content;
        }
        .btn-download-version:hover { background: #004E79; }

        /* ==========================================================================
   RESPONSIVE PAGE MAJ (Mobile & Tablettes)
   ========================================================================== */

/* Anti-débordement */
*, *::before, *::after {
    box-sizing: border-box !important;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Mobile */
@media screen and (max-width: 768px) {

    /* Conteneurs pleine largeur */
    .container, 
    .maj-container-grid, 
    .category-card, 
    .category-content, 
    .maj-item-block, 
    .maj-item-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Espacements réduits */
    .category-header-toggle {
        padding: 12px 10px !important;
    }

    .category-title {
        font-size: 1rem !important;
        line-height: 1.3;
    }

    .maj-item-header {
        padding: 10px !important;
    }

    .maj-item-title {
        font-size: 0.9rem !important;
    }

    .maj-item-content {
        padding: 10px !important;
    }

    /* Textes et notes de version */
    .version-notes {
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Boutons de téléchargement pleine largeur */
    .btn-download-version {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 10px 5px !important;
        font-size: 0.85rem !important;
        word-break: break-all !important; /* coupe les noms de fichier trop longs */
        white-space: normal !important;
    }
}

/* ==========================================
   FORMULAIRE SAV (sav.php)
   ========================================== */
.sav-form-section {
    max-width: 1000px;
    margin: 0 auto;
}

/* Mode d'emploi au-dessus du formulaire */
.sav-intro {
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px 25px 16px 25px;
}

/* Frise des 3 étapes */
.sav-etapes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.sav-etapes li {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--blue-amix);
    font-weight: 600;
    font-size: 0.95rem;
}

.sav-etapes li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 13px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #dde1ea;
}

.sav-etapes .sav-num { position: relative; z-index: 1; }

.sav-intro-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 25px;
    margin: 18px 0 0 0;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* hidden prioritaire sur les display ci-dessous */
.sav-form-section [hidden] { display: none !important; }

.sav-mentions {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
    text-align: right;
}

.sav-bloc {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 25px 30px 30px 30px;
    margin: 0 0 25px 0;
    min-width: 0;
}

.sav-bloc legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    color: var(--blue-amix);
    font-weight: 700;
    font-size: 1.05rem;
}

.sav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-amix);
    color: #ffffff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-amix);
    margin-bottom: 6px;
}

.sav-aide {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 12px 0 0 0;
}

/* Objet de la demande (cartes) */
.sav-choix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-radius: 8px;
}

.sav-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    color: #333;
    transition: border-color 0.2s, background 0.2s;
}

.sav-radio:hover { border-color: var(--blue-amix); }

.sav-radio input { accent-color: var(--blue-amix); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }

.sav-radio:has(input:checked) {
    border-color: var(--blue-amix);
    background: rgba(26, 42, 90, 0.05);
    /* Gras sans changer la largeur du texte (pas de retour à la ligne au clic) */
    -webkit-text-stroke: 0.5px currentColor;
    color: var(--blue-amix);
}

/* Une carte par appareil */
.sav-aide-haut { margin: 0 0 5px 0; }

.sav-appareils {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.sav-appareil {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
    padding: 15px 20px 20px 20px;
}

.sav-appareil-titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-bottom: 10px;
    color: var(--blue-amix);
    font-weight: 700;
}

.sav-appareil .form-grid { gap: 15px 25px; }

/* Modèle : attente, reconnu, liste ou saisie libre */
.sav-modele-info {
    margin: 0;
    padding: 16px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.sav-modele-info.sav-modele-sous-liste { padding: 6px 0 0 0; }
.sav-modele-info.sav-modele-alerte { color: #b45309; }

.sav-modele-trouve {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    background: #eef8f1;
    color: var(--blue-amix);
}

.sav-modele-coche { color: #15803d; font-weight: 700; }

.sav-modele input[data-champ="modele_autre"] { margin-top: 10px; }

.sav-meme-achat { margin-top: 18px; font-size: 0.95rem; }

.sav-achat { margin-top: 15px; }

.sav-suppr {
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sav-suppr:hover { border-color: #ef4444; color: #ef4444; }

.sav-ajout {
    margin-top: 15px;
    background: none;
    border: 1px dashed var(--blue-amix);
    border-radius: 8px;
    color: var(--blue-amix);
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
}

.sav-ajout:hover { background: rgba(26, 42, 90, 0.05); }

/* Adresse de retour */
.sav-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
    color: #333;
}

.sav-check input { accent-color: var(--blue-amix); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }

.sav-check.sav-check-haut { margin-top: 0; }

.sav-retour { margin-top: 20px; }

/* Description : redimensionnable en hauteur seulement */
.sav-form-section textarea { resize: vertical; max-width: 100%; }

/* Erreurs et messages */
.sav-form-section .sav-invalide,
.sav-form-section .form-group input.sav-invalide,
.sav-form-section .form-group textarea.sav-invalide {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.sav-choix.sav-invalide .sav-radio { border-color: #ef4444; }
.sav-choix.sav-invalide { box-shadow: none; }

/* Message sous un champ en erreur */
.sav-erreur-champ {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.sav-message {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.sav-message-erreur { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.sav-message-succes { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.sav-message-succes.sav-message-alerte { background: #fff3cd; color: #856404; border-color: #ffe08a; }

.sav-message p { margin: 0 0 12px 0; }

.sav-rma { font-size: 1.2rem; }
.sav-rma strong { letter-spacing: 0.5px; }

.sav-succes-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sav-succes-actions .sav-ajout {
    margin-top: 0;
    background: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sav-bloc { padding: 20px 15px; }
    .sav-intro { padding: 15px; }
    .sav-etapes { flex-direction: column; gap: 12px; }
    .sav-etapes li { flex-direction: row; text-align: left; gap: 12px; }
    .sav-etapes li:not(:first-child)::before { display: none; }
    .sav-choix { grid-template-columns: 1fr; }
    .sav-appareil { padding: 10px 12px 15px 12px; }
}

/* Fenêtre de confirmation / d'erreur du formulaire SAV */
.sav-dialogue {
    /* Centrée à l'écran */
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    width: calc(100% - 32px);
    max-width: 460px;
    border: none;
    border-radius: 12px;
    padding: 28px 28px 24px 28px;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.25);
    color: #333;
}

.sav-dialogue::backdrop { background: rgba(17, 24, 39, 0.55); }

.sav-dialogue-titre {
    margin: 0 0 12px 0;
    color: var(--blue-amix);
    font-size: 1.15rem;
    font-weight: 700;
}

.sav-dialogue-texte { margin: 0 0 24px 0; line-height: 1.5; }

.sav-dialogue-boutons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.sav-dialogue-boutons button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.sav-dialogue-principal { background: var(--blue-amix); color: #ffffff; border: 1px solid var(--blue-amix); }
.sav-dialogue-principal:hover { opacity: 0.9; }
.sav-dialogue-secondaire { background: #ffffff; color: var(--blue-amix); border: 1px solid #d1d5db; }
.sav-dialogue-secondaire:hover { background: rgba(26, 42, 90, 0.05); }

@media (max-width: 480px) {
    .sav-dialogue-boutons button { flex: 1; }
}

/* Pages de texte */
.page-texte { text-align: left; max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.6; }
.page-texte h2 { font-size: 1.1rem; color: var(--blue-amix); margin: 28px 0 8px; }
.page-texte ul { margin: 8px 0 8px 20px; padding: 0; }
.page-texte li { margin-bottom: 8px; }
.page-texte-maj { margin-top: 30px; font-size: 0.85rem; color: #6b7280; }

/* Mention RGPD et case de consentement sous les formulaires */
.form-rgpd { font-size: 0.8rem; color: #6b7280; line-height: 1.5; text-align: left; margin: 15px 0 0; }
.form-rgpd a { color: inherit; text-decoration: underline; }
/* SAV : mention centrée entre le dernier bloc et le bouton */
.sav-form-section .form-rgpd { text-align: center; margin: 0; }
.sav-form-section .btn-container { margin-top: 25px; }
.form-consentement { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 0.9rem; line-height: 1.4; margin-top: 15px; cursor: pointer; }
.form-consentement input { width: auto !important; margin-top: 3px; flex-shrink: 0; }
