/* ===========================================================================================================
   css/facture-electronique.css
   Styles propres à la page facture-electronique-tunisie.php (classes préfixées "fe-")
   Reprend la charte du site : bleu #004891 / #005577, jaune #ff0, cartes ombrées 0 4px 8px rgba(0,0,0,.1)
   Created : 01/12/2026
   =========================================================================================================== */

.fe-section {
    padding: 48px 0;
}

.fe-section-alt {
    background-color: #f8f9fa;
}

.fe-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.fe-section-title {
    color: #004891;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.fe-section-subtitle {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 32px;
}

/* Bandeau principal
---------------------*/
.fe-hero {
    background-color: #fff;
    color: #222;
    padding: 56px 0 48px;
    border-bottom: 1px solid #e5e5e5;
}

.fe-hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.fe-hero-main {
    flex: 1 1 420px;
}

.fe-hero-badge {
    display: inline-block;
    background-color: rgba(0, 72, 145, .08);
    color: #004891;
    font-weight: 600;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fe-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 16px;
    color: #004891;
}

.fe-hero-tagline {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: #4a4a4a;
}

.fe-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.fe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all .3s;
    cursor: pointer;
}

.fe-btn-primary {
    background-color: #ff0;
    color: #003972;
}

.fe-btn-primary:hover {
    background-color: #fff;
    color: #003972;
}

.fe-btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.fe-btn-outline:hover {
    background-color: #fff;
    color: #004891;
}

/* Dans le bandeau principal (fond blanc) : les boutons ont besoin de leurs propres couleurs,
   différentes de celles utilisées sur fond bleu ailleurs sur la page */
.fe-hero .fe-btn-primary:hover {
    background-color: #004891;
    color: #fff;
}

.fe-hero .fe-btn-outline {
    background-color: transparent;
    color: #004891;
    border-color: #004891;
}

.fe-hero .fe-btn-outline:hover {
    background-color: #004891;
    color: #fff;
}

.fe-promo-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #ff0;
}

.fe-promo-note a {
    color: #ff0;
    text-decoration: underline !important;
}

.fe-hero .fe-promo-note {
    background-color: #fff3b0;
    color: #6b4e00;
    padding: 6px 14px;
    border-radius: 20px;
}

.fe-hero .fe-promo-note a {
    color: #6b4e00;
}

.fe-hero-box {
    flex: 1 1 320px;
    background-color: #f8f9fa;
    color: #222;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
}

.fe-hero-box-title {
    color: #004891;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.fe-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fe-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.fe-checklist i {
    color: #1a9e4b;
    margin-top: 3px;
}

/* Encadré "Obligation 2026"
-----------------------------*/
.fe-obligation {
    background-color: #fff8e1;
    border-left: 5px solid #ff9800;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 auto;
    max-width: 900px;
}

.fe-obligation-lead {
    color: #8a5a00;
}

/* Comment ça marche ?
-----------------------*/
.fe-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.fe-step {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 24px;
    text-align: center;
}

.fe-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #004891;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
}

.fe-step-title {
    color: #004891;
    font-weight: 700;
    margin-bottom: 8px;
}

.fe-steps-media {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.fe-step-figure {
    text-align: center;
    max-width: 420px;
}

.fe-step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    cursor: zoom-in;
}

.fe-step-caption {
    font-size: .85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Vidéo
---------*/
.fe-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    background-color: #000;
}

.fe-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Grilles de cartes (Pourquoi choisir / bien plus qu'une facture électronique)
---------------------------------------------------------------------------------*/
.fe-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fe-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 24px;
}

.fe-card-icon {
    color: #004891;
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: block;
}

.fe-card-title {
    color: #004891;
    font-weight: 700;
    margin-bottom: 8px;
}

.fe-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.fe-rating-score {
    font-size: 1.4rem;
    font-weight: 700;
    color: #004891;
}

.fe-features-link {
    text-align: center;
    margin-top: 32px;
}

/* Bloc prix
-------------*/
.fe-price-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #004891;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
}

.fe-price-badge {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
}

.fe-price-old {
    text-decoration: line-through;
    color: #888;
    font-size: 1.3rem;
    margin-right: 8px;
}

.fe-price-new {
    color: #004891;
    font-size: 2rem;
    font-weight: 700;
}

.fe-price-label {
    font-size: 1.1rem;
    color: #333;
    margin: 8px 0 16px;
}

.fe-price-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: left;
}

.fe-price-features li {
    margin-bottom: 8px;
}

.fe-price-features i {
    color: #1a9e4b;
    margin-right: 8px;
}

.fe-price-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff8e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    font-weight: 600;
    color: #8a5a00;
    text-align: left;
}

.fe-price-note {
    font-size: .85rem;
    color: #666;
    margin-top: 16px;
}

/* Ce qu'il vous faut
----------------------*/
.fe-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.fe-requirement-col {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 28px;
}

.fe-requirement-col h3 {
    color: #004891;
    font-weight: 700;
    margin-bottom: 16px;
}

.fe-requirement-col ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

/* FAQ
-------*/
.fe-faq-item {
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
}

.fe-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #004891;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.fe-faq-item summary::-webkit-details-marker {
    display: none;
}

.fe-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
}

.fe-faq-item[open] summary::after {
    content: "\2212";
}

.fe-faq-item p {
    margin-top: 12px;
    color: #333;
}

/* Contact
-----------*/
.fe-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.fe-contact-info ul {
    list-style: none;
    padding: 0;
}

.fe-contact-info li {
    margin-bottom: 14px;
}

.fe-contact-info i {
    width: 22px;
    color: #004891;
    margin-right: 8px;
}

.fe-social-links {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    font-size: 1.4rem;
}

.fe-social-links a {
    color: #004891;
}

.fe-form-row {
    margin-bottom: 18px;
}

.fe-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.fe-radio-group {
    display: flex;
    gap: 24px;
}

.fe-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Champ piège anti-robots : invisible pour un visiteur, mais présent dans le DOM */
.fe-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.fe-form-note {
    font-size: .85rem;
    color: #666;
    margin-top: 12px;
}

.fe-alert {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.fe-alert-success {
    background-color: #e6f4ea;
    color: #1a7a38;
    border: 1px solid #b7e1c3;
}

.fe-alert-error {
    background-color: #fdecea;
    color: #a52a1f;
    border: 1px solid #f3c6c0;
}

/* ---------------------------------------- 900 px ---------------------------------------- */
@media (max-width: 900px) {
    .fe-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .fe-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fe-contact-grid {
        grid-template-columns: 1fr;
    }

    .fe-requirements {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------- 600 px ---------------------------------------- */
@media (max-width: 600px) {
    .fe-steps {
        grid-template-columns: 1fr;
    }

    .fe-grid-3 {
        grid-template-columns: 1fr;
    }

    .fe-hero-title {
        font-size: 1.6rem;
    }

    .fe-hero-grid {
        flex-direction: column;
    }

    .fe-price-box {
        padding: 24px;
    }

    .fe-price-badge {
        top: -16px;
        right: -12px;
        width: 70px;
        height: 70px;
    }
}
