/* ========================================
   SENES EXPERTISES & SOLUTIONS
   VERSION DÉFINITIVE - MOBILE 100% FONCTIONNEL
   ======================================== */

/* === VARIABLES CSS === */
:root {
    --beige: #CCB892;
    --bleu: #18407C;
    --noir: #181818;
    --blanc: #F7F9F8;
    --orange: #d4845f;
    --gris: #f4f5f6;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--noir);
    background: var(--blanc);
    overflow-x: hidden;
    max-width: 100vw;
}

/* === UTILITAIRES === */
.page {
    display: none;
}

.page.active {
    display: block;
}

.c {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === TOPBAR === */
.topbar {
    background: var(--beige);
    padding: 12px 0;
    font-size: 13px;
}

.topbar .c {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar a {
    color: var(--noir);
    text-decoration: none;
    transition: opacity 0.3s;
}

.topbar a:hover {
    opacity: 0.7;
}

/* === HEADER === */
.hdr {
    background: var(--bleu);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hdr .c {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.baseline {
    font-size: 11px;
    color: var(--beige);
    margin-top: 4px;
}

/* === NAVIGATION DESKTOP === */
nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav li {
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
    display: inline-block;
}

nav a:hover {
    color: var(--beige);
}

.nav-cta {
    background: var(--beige) !important;
    color: var(--noir) !important;
    padding: 12px 28px !important;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--orange) !important;
    color: #fff !important;
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* === HERO === */
.hero {
    height: 700px;
    position: relative;
    background-image: url('../images/hero-bg.jpg?v=20241221');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-over {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(24, 64, 124, 0.98), rgba(24, 64, 124, 0.3));
}

.hero .c {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}

.hero h1 {
    font-size: 62px;
    line-height: 1.15;
    margin-bottom: 35px;
    font-weight: 800;
    max-width: 700px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero h1 span {
    display: block;
    color: var(--beige);
    margin-top: 10px;
    font-size: 48px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 17px;
    margin-bottom: 45px;
    max-width: 700px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    background: var(--beige);
    color: var(--noir);
    padding: 20px 45px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 2px;
    border: 0;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-3px);
}

.btn-sec {
    background: transparent;
    border: 2px solid var(--beige);
    color: var(--beige);
}

.btn-sec:hover {
    background: var(--beige);
    color: var(--noir);
}

/* === SECTIONS === */
section {
    padding: 130px 40px;
}

.label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.t {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--bleu);
    font-weight: 800;
    text-align: center;
}

.t span {
    color: var(--noir);
}

.desc {
    font-size: 17px;
    line-height: 1.9;
    color: #666;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 70px;
}

/* === GRILLES === */
.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.box {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bleu), var(--beige));
    border-radius: 6px;
}

/* === CARTES VALEURS === */
.val {
    background: #fff;
    padding: 45px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.val:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.val-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--orange), var(--beige));
    border-radius: 50%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.val h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--bleu);
    font-weight: 700;
}

.val p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* === CARTES MISSIONS === */
.mission {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}

.mission:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mission-img {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.mission:nth-child(1) .mission-img {
    background-image: url('../images/mission-1.jpg?v=20241221');
}

.mission:nth-child(2) .mission-img {
    background-image: url('../images/mission-2.jpg?v=20241221');
}

.mission:nth-child(3) .mission-img {
    background-image: url('../images/mission-3.jpg?v=20241221');
}

.mission:nth-child(4) .mission-img {
    background-image: url('../images/mission-4.jpg?v=20241221');
}

.mission:nth-child(5) .mission-img {
    background-image: url('../images/mission-5.jpg?v=20241221');
}

.mission:nth-child(6) .mission-img {
    background-image: url('../images/mission-6.jpg?v=20241221');
}

.mission:nth-child(7) .mission-img {
    background-image: url('../images/mission-7.jpg?v=20241221');
}

.mission:nth-child(8) .mission-img {
    background-image: url('../images/mission-8.jpg?v=20241221');
}

.mission:nth-child(9) .mission-img {
    background-image: url('../images/mission-9.jpg?v=20241221');
}

.mission-body {
    padding: 35px;
}

.mission h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--bleu);
    font-weight: 700;
}

.mission p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.mission ul {
    list-style: none;
    margin-bottom: 25px;
}

.mission li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.mission li:before {
    content: '✓';
    color: var(--orange);
    font-weight: 700;
    margin-right: 10px;
}

/* === SIMULATEURS === */
.sim {
    background: #fff;
    border-radius: 6px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 50px auto;
}

.sim h2 {
    font-size: 38px;
    color: var(--bleu);
    margin-bottom: 20px;
    font-weight: 800;
}

.sim-lead {
    font-size: 17px;
    color: #666;
    margin-bottom: 40px;
}

.sim-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.sim label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--noir);
}

.sim input,
.sim select,
.sim textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #e0e0e0;
    background: var(--gris);
    font: inherit;
    font-size: 15px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.sim input:focus,
.sim select:focus,
.sim textarea:focus {
    outline: 0;
    border-color: var(--beige);
    background: #fff;
}

.sim-res {
    background: var(--gris);
    padding: 40px;
    border-radius: 6px;
}

.res-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.res-item:last-child {
    border: 0;
}

.res-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.res-value {
    font-size: 36px;
    color: var(--bleu);
    font-weight: 800;
    word-break: break-word;
}

.disclaimer {
    background: #fff3e0;
    padding: 25px;
    border-radius: 4px;
    border-left: 4px solid var(--orange);
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* === FORMULAIRES === */
input,
textarea,
select {
    width: 100%;
    padding: 18px;
    border: 2px solid #e0e0e0;
    background: var(--gris);
    font: inherit;
    font-size: 15px;
    margin-bottom: 25px;
    border-radius: 2px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: var(--beige);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 170px;
}

/* === TABLEAUX === */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

table thead tr {
    background: var(--bleu);
    color: #fff;
}

table th,
table td {
    padding: 20px;
    text-align: left;
    font-size: 15px;
}

table th {
    font-weight: 700;
    font-size: 15px;
}

table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

table tbody tr:last-child {
    border-bottom: none;
}

/* === FOOTER === */
.ftr {
    background: var(--bleu);
    color: #fff;
    padding: 90px 40px 50px;
}

.ftr-g {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    margin-bottom: 70px;
}

.ftr h4 {
    font-size: 17px;
    color: var(--beige);
    margin-bottom: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

.ftr p,
.ftr a {
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: color 0.3s;
}

.ftr a:hover {
    color: var(--beige);
}

.ftr-b {
    padding-top: 45px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    border-radius: 6px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--orange);
    color: #fff;
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bleu);
    transform: rotate(90deg);
}

/* ========================================
   ANIMATION MENU FACTURE ÉLECTRONIQUE
   ======================================== */
.menu-facture-alerte {
    color: #dc3545 !important;
    font-weight: 700 !important;
    animation: texte-pulsation 2s infinite !important;
    position: relative !important;
}

.menu-facture-alerte::after {
    content: ' ⚠️';
    font-size: 14px;
    animation: icone-pulsation 1.5s infinite;
}

@keyframes texte-pulsation {
    0% {
        color: #dc3545;
        text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% {
        color: #ff1a1a;
        text-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    }
    100% {
        color: #dc3545;
        text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
}

@keyframes icone-pulsation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */
@media (max-width: 1200px) {
    .c {
        padding: 0 30px;
    }
    
    section {
        padding: 100px 30px;
    }
    
    .hero h1 {
        font-size: 52px;
    }
    
    .t {
        font-size: 44px;
    }
    
    .g2 {
        gap: 60px;
    }
    
    .ftr {
        padding: 70px 30px 40px;
    }
}

@media (max-width: 1024px) {
    .g2,
    .g3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sim-g {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sim {
        padding: 40px 30px;
    }
    
    .sim h2 {
        font-size: 32px;
    }
    
    .box {
        height: 400px;
    }
    
    .hero {
        height: 600px;
    }
    
    .hero h1 {
        font-size: 46px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .t {
        font-size: 38px;
    }
    
    .ftr-g {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .c {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    section[style*="padding:80px"],
    section[style*="padding: 80px"] {
        padding: 50px 20px !important;
    }
    
    .topbar {
        padding: 10px 0;
        font-size: 11px;
    }
    
    .topbar .c {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .hdr .c {
        min-height: 70px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .baseline {
        font-size: 10px;
    }
    
    /* === NAVIGATION MOBILE - CORRECTION CRITIQUE === */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bleu);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        gap: 0 !important;
        z-index: 10000;
    }
    
    nav ul.show {
        display: flex !important;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    /* CORRECTION CRITIQUE: Tous les liens du menu */
    nav li a {
        display: block !important;
        padding: 15px 10px !important;
        width: 100%;
        color: #fff !important;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
    }
    
    /* CORRECTION CRITIQUE: Espace Client spécifique */
    nav li a.nav-cta {
        background: var(--beige) !important;
        color: var(--noir) !important;
        padding: 15px 10px !important;
        margin: 5px 0 !important;
        border-radius: 4px;
        display: block !important;
        width: 100%;
        text-align: center;
    }
    
    /* Menu Facture électronique mobile - animation légère */
    nav li a.menu-facture-alerte {
        color: #dc3545 !important;
        font-weight: 700 !important;
        animation: texte-pulsation 2s infinite !important;
    }
    
    .menu-btn {
        display: block;
    }
    
    /* HERO MOBILE */
    .hero {
        height: auto;
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 28px !important;
        margin-bottom: 20px;
        line-height: 1.3;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    .hero h1 span {
        font-size: 24px !important;
        margin-top: 8px;
        display: block;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.7;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 18px 30px;
        font-size: 13px;
    }
    
    /* TITRES INLINE */
    h2[style*="font-size:42px"],
    h2[style*="font-size: 42px"] {
        font-size: 24px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    h2[style*="font-size:42px"] span,
    h2[style*="font-size: 42px"] span {
        font-size: 20px !important;
    }
    
    .label {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .t {
        font-size: 26px;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .desc {
        font-size: 15px;
        margin-bottom: 40px;
        line-height: 1.7;
    }
    
    .val {
        padding: 35px 25px;
    }
    
    .val-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .val h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .val p {
        font-size: 14px;
    }
    
    .mission-img {
        height: 200px;
    }
    
    .mission-body {
        padding: 25px 20px;
    }
    
    .mission h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .mission p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .mission li {
        font-size: 13px;
    }
    
    .g2,
    .g3 {
        gap: 30px;
    }
    
    .box {
        height: 300px;
    }
    
    .sim {
        padding: 30px 20px;
    }
    
    .sim h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .sim-lead {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .sim-g {
        gap: 30px;
    }
    
    .sim label {
        font-size: 14px;
    }
    
    .sim input,
    .sim select,
    .sim textarea {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .sim-res {
        padding: 25px 20px;
    }
    
    .res-label {
        font-size: 12px;
    }
    
    .res-value {
        font-size: 28px;
    }
    
    .res-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .disclaimer {
        padding: 20px;
        font-size: 13px;
    }
    
    input,
    textarea,
    select {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    textarea {
        min-height: 150px;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px; /* Permet au tableau de prendre toute la largeur */
        width: calc(100% + 40px);
    }
    
    /* Wrapper de table pour scroll visible */
    div[style*="overflow-x:auto"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -20px !important;
        padding: 0 20px !important;
    }
    
    table th,
    table td {
        padding: 15px 12px;
        font-size: 13px;
        min-width: 120px;
        white-space: nowrap;
    }
    
    /* Rendre la première colonne sticky sur mobile pour meilleure UX */
    table th:first-child,
    table td:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
        min-width: 150px;
        white-space: normal;
    }
    
    table thead th:first-child {
        background: var(--bleu) !important;
    }
    
    table tbody td:first-child {
        background: #fff !important;
        border-right: 2px solid #f0f0f0;
    }
    
    .ftr {
        padding: 50px 20px 30px;
    }
    
    .ftr-g {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .ftr h4 {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .ftr p,
    .ftr a {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .ftr-b {
        padding-top: 30px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        font-size: 13px;
    }
    
    .modal {
        padding: 15px;
    }
    
    .modal-box {
        height: 90vh;
        max-height: none;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    /* === CORRECTION PAGE FACTURE ÉLECTRONIQUE - MOBILE === */
    
    /* Sections avec cercles numérotés (1, 2, 3) */
    #facture-electronique div[style*="display:flex"][style*="gap:30px"] {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Cercles numérotés */
    #facture-electronique div[style*="width:80px"][style*="height:80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
        flex-shrink: 0 !important;
    }
    
    /* Containers des cercles - réduire le padding */
    #facture-electronique div[style*="padding:50px"] {
        padding: 25px 20px !important;
    }
    
    /* Titres des obligations */
    #facture-electronique h3[style*="font-size:26px"] {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    /* Paragraphes des obligations */
    #facture-electronique div[style*="display:flex"] p[style*="font-size:16px"] {
        font-size: 15px !important;
    }
    
    /* === CORRECTION: GRILLES DES PACKS SUR MOBILE === */
    
    /* Grille 3 colonnes devient 1 colonne */
    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Pack featured - enlever le scale qui cause des problèmes */
    div[style*="transform:scale(1.05)"] {
        transform: scale(1) !important;
        margin: 0 !important;
        box-shadow: 0 5px 20px rgba(0,0,0,.15) !important;
    }
    
    /* Ajuster padding des cartes pack sur mobile */
    div[style*="grid-template-columns:repeat(3,1fr)"] > div[style*="padding:40px"] {
        padding: 30px 20px !important;
    }
    
    /* Améliorer lisibilité des listes de packs */
    div[style*="grid-template-columns:repeat(3,1fr)"] li {
        font-size: 13px !important;
        padding: 12px 0 !important;
    }
    
    /* Listes */
    #facture-electronique div[style*="display:flex"] ul li {
        font-size: 14px !important;
    }
    
    /* Titre "Comment SENES vous accompagne" */
    #facture-electronique h2[style*="font-size:48px"] {
        font-size: 28px !important;
        line-height: 1.2 !important;
        padding: 0 10px !important;
    }
    
    /* Paragraphe sous le titre */
    #facture-electronique h2[style*="font-size:48px"] + p {
        font-size: 15px !important;
    }
    
    /* Sections avec fond bleu */
    section[style*="background:linear-gradient"][style*="padding:100px"] {
        padding: 50px 20px !important;
    }
}

/* TRÈS PETITS ÉCRANS */
@media (max-width: 480px) {
    .hero {
        min-height: 450px;
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 24px !important;
    }
    
    .hero h1 span {
        font-size: 20px !important;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    h2[style*="font-size:42px"],
    h2[style*="font-size: 42px"] {
        font-size: 22px !important;
    }
    
    h2[style*="font-size:42px"] span,
    h2[style*="font-size: 42px"] span {
        font-size: 18px !important;
    }
    
    .t {
        font-size: 22px;
    }
    
    .desc {
        font-size: 14px;
    }
    
    .val {
        padding: 30px 20px;
    }
    
    .val h3 {
        font-size: 18px;
    }
    
    .val p {
        font-size: 13px;
    }
    
    .sim h2 {
        font-size: 22px;
    }
    
    .res-value {
        font-size: 24px;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 12px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    section[style*="padding:80px"],
    section[style*="padding: 80px"] {
        padding: 40px 15px !important;
    }
    
    .c {
        padding: 0 15px;
    }
    
    /* === CORRECTIONS SUPPLÉMENTAIRES FACTURE ÉLECTRONIQUE - PETITS ÉCRANS === */
    
    /* Cercles encore plus petits sur très petits écrans */
    #facture-electronique div[style*="width:80px"][style*="height:80px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    
    /* Titres obligations encore plus petits */
    #facture-electronique h3[style*="font-size:26px"] {
        font-size: 18px !important;
    }
    
    /* Titre "Comment SENES vous accompagne" encore plus petit */
    #facture-electronique h2[style*="font-size:48px"] {
        font-size: 24px !important;
        padding: 0 5px !important;
    }
    
    /* Padding réduit pour les cartes */
    #facture-electronique div[style*="padding:50px"] {
        padding: 20px 15px !important;
    }
}

/* PAYSAGE MOBILE */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px !important;
    }
    
    .hero h1 span {
        font-size: 26px !important;
    }
    
    section {
        padding: 70px 20px;
    }
    
    h2[style*="font-size:42px"],
    h2[style*="font-size: 42px"] {
        font-size: 28px !important;
    }
}

/* === TACTILE === */
@media (hover: none) and (pointer: coarse) {
    .btn,
    nav a,
    .ftr a,
    .mission,
    .val {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .val:hover,
    .mission:hover,
    .btn:hover {
        transform: none;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.5s ease-out;
}

/* === PERFORMANCE === */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === FORCE WORD-WRAP === */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* === PATCH IMAGES PAR ENCART (SANS MODIFIER LE DESIGN) === */
#missions .g3 .mission:nth-child(1) .mission-img{background-image:url("../images/mission-1.jpg");}
#missions .g3 .mission:nth-child(2) .mission-img{background-image:url("../images/mission-2.jpg");}
#missions .g3 .mission:nth-child(3) .mission-img{background-image:url("../images/mission-3.jpg");}
#missions .g3 .mission:nth-child(4) .mission-img{background-image:url("../images/mission-4.jpg");}
#missions .g3 .mission:nth-child(5) .mission-img{background-image:url("../images/mission-5.jpg");}
#missions .g3 .mission:nth-child(6) .mission-img{background-image:url("../images/mission-6.jpg");}
#missions .g3 .mission:nth-child(7) .mission-img{background-image:url("../images/mission-7.jpg");}
#missions .g3 .mission:nth-child(8) .mission-img{background-image:url("../images/mission-8.jpg");}
#missions .g3 .mission:nth-child(9) .mission-img{background-image:url("../images/mission-9.jpg");}
/* Images Actualités */
#actus .g3 .mission:nth-child(1) .mission-img{background-image:url("../images/actus-1.jpg");}
#actus .g3 .mission:nth-child(2) .mission-img{background-image:url("../images/actus-2.jpg");}
#actus .g3 .mission:nth-child(3) .mission-img{background-image:url("../images/actus-3.jpg");}

/* Images Outils - Section Simulateurs (1ère section) */
#outils section:nth-of-type(1) .g3 .mission:nth-child(1) .mission-img{background-image:url("../images/outil-4.jpg");}
#outils section:nth-of-type(1) .g3 .mission:nth-child(2) .mission-img{background-image:url("../images/mission-3.jpg");}
#outils section:nth-of-type(1) .g3 .mission:nth-child(3) .mission-img{background-image:url("../images/facture-1.jpg");}
#outils section:nth-of-type(1) .g3 .mission:nth-child(4) .mission-img{background-image:url("../images/facture-2.jpg");}
#outils section:nth-of-type(1) .g3 .mission:nth-child(5) .mission-img{background-image:url("../images/facture-1.jpg");}
#outils section:nth-of-type(1) .g3 .mission:nth-child(6) .mission-img{background-image:url("../images/outil-6.jpg");}

/* Images Outils - Section Ressources (2ème section) */
#outils section:nth-of-type(2) .g3 .mission:nth-child(1) .mission-img{background-image:url("../images/facture-1.jpg");}
#outils section:nth-of-type(2) .g3 .mission:nth-child(2) .mission-img{background-image:url("../images/outil-1.jpg");}
#outils section:nth-of-type(2) .g3 .mission:nth-child(3) .mission-img{background-image:url("../images/facture-2.jpg");}
#outils section:nth-of-type(2) .g3 .mission:nth-child(4) .mission-img{background-image:url("../images/outil-5.jpg");}
#outils section:nth-of-type(2) .g3 .mission:nth-child(5) .mission-img{background-image:url("../images/outil-2.jpg");}
#outils section:nth-of-type(2) .g3 .mission:nth-child(6) .mission-img{background-image:url("../images/outil-3.jpg");}
#facture-electronique .g3 .mission:nth-child(1) .mission-img{background:url("../images/facture-1.jpg") center/cover no-repeat !important;}
#facture-electronique .g3 .mission:nth-child(2) .mission-img{background:url("../images/facture-2.jpg") center/cover no-repeat !important;}
#facture-electronique .g3 .mission:nth-child(3) .mission-img{background:url("../images/facture-3.jpg") center/cover no-repeat !important;}

/* === IMAGES ACTUALITÉS === */
#actus .mission:nth-child(1) .mission-img {
    background-image: url('../images/actus-1.jpg?v=20241221');
}

#actus .mission:nth-child(2) .mission-img {
    background-image: url('../images/actus-2.jpg?v=20241221');
}

#actus .mission:nth-child(3) .mission-img {
    background-image: url('../images/actus-3.jpg?v=20241221');
}

/* === IMAGES FACTURE ÉLECTRONIQUE === */
#facture-electronique .facture-img {
    background-image: url('../images/facture-electronique.jpg?v=20241221');
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: 6px;
}

.facture-element-img {
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 6px;
}

.facture-element:nth-child(1) .facture-element-img {
    background-image: url('../images/facture-1.jpg?v=20241221');
}

.facture-element:nth-child(2) .facture-element-img {
    background-image: url('../images/facture-2.jpg?v=20241221');
}

/* === IMAGES OUTILS === */
.outil-img {
    background-size: cover;
    background-position: center;
    height: 200px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.outil:nth-child(1) .outil-img {
    background-image: url('../images/outil-1.jpg?v=20241221');
}

.outil:nth-child(2) .outil-img {
    background-image: url('../images/outil-2.jpg?v=20241221');
}

.outil:nth-child(3) .outil-img {
    background-image: url('../images/outil-3.jpg?v=20241221');
}

.outil:nth-child(4) .outil-img {
    background-image: url('../images/outil-4.jpg?v=20241221');
}

.outil:nth-child(5) .outil-img {
    background-image: url('../images/outil-5.jpg?v=20241221');
}
