/* ===== SECTION HERO ===== */
.hero-section {
    background-color: #f5f5fe;
    width: 100%;
}

.hero-section .hero-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-section .hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section .hero-title {
    color: #000091;
    line-height: 1.2;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    color: #666666;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-section .hero-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-section .hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-section .hero-badge-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.hero-section .hero-badge-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.hero-section .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Bouton primaire hero en bleu avec texte blanc - Styles renforcés */
.hero-section .hero-buttons .fr-btn:not(.fr-btn--secondary) {
    background-color: #000091 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem !important;
}

.hero-section .hero-buttons .fr-btn:not(.fr-btn--secondary):hover {
    background-color: #1212ff !important;
    color: #ffffff !important;
}

.hero-section .hero-buttons .fr-btn:not(.fr-btn--secondary) span {
    color: #ffffff !important;
}

.hero-section .hero-buttons .fr-btn:not(.fr-btn--secondary) .fr-icon-file-add-line::before {
    color: #ffffff !important;
}

/* Tous les boutons hero section - centrage du contenu renforcé */
.hero-section .hero-buttons .fr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    min-height: 2.5rem !important;
}

.hero-section .hero-buttons .fr-btn > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-section .hero-buttons .fr-btn span[class^="fr-icon-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* Reset des styles DSFR qui pourraient interférer */
.hero-section .hero-buttons .fr-btn::before,
.hero-section .hero-buttons .fr-btn::after {
    display: none !important;
}

/* CTA Section - Styles renforcés et isolés pour les boutons */
.fr-callout .fr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 2.5rem !important;
    white-space: nowrap !important;
    gap: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    font-weight: 500 !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.3s ease !important;
}

/* Bouton primaire CTA */
.fr-callout .fr-btn:not(.fr-btn--secondary) {
    background-color: #000091 !important;
    color: #ffffff !important;
    border: 2px solid #000091 !important;
}

.fr-callout .fr-btn:not(.fr-btn--secondary):hover {
    background-color: #1212ff !important;
    border-color: #1212ff !important;
    color: #ffffff !important;
}

/* Bouton secondaire CTA (téléphone) */
.fr-callout .fr-btn.fr-btn--secondary {
    background-color: #ffffff !important;
    color: #000091 !important;
    border: 2px solid #000091 !important;
    margin-left: 0.5rem !important;
}

.fr-callout .fr-btn.fr-btn--secondary:hover {
    background-color: #f5f5fe !important;
    color: #000091 !important;
    border-color: #000091 !important;
}

/* Reset complet des pseudo-éléments et styles DSFR */
.fr-callout .fr-btn::before,
.fr-callout .fr-btn::after,
.fr-callout .fr-btn > *::before,
.fr-callout .fr-btn > *::after {
    display: none !important;
    content: none !important;
}

/* S'assurer que le texte reste centré */
.fr-callout .fr-btn > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix pour les icônes si présentes */
.fr-callout .fr-btn [class^="fr-icon-"],
.fr-callout .fr-btn [class*=" fr-icon-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin: 0 !important;
}

/* Styles pour les cartes de références légales */
.fr-card--no-arrow .fr-card__title a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    width: 100% !important;
    text-align: center !important;
}

.fr-card--no-arrow .fr-card__title a:hover {
    text-decoration: underline !important;
}

/* Suppression du soulignement sur l'icône externe */
.fr-card--no-arrow .fr-card__title a::after {
    text-decoration: none !important;
    margin-left: 0.25rem !important;
}

/* ===== ALERTE CUSTOM ===== */
.custom-alert-info {
    display: flex;
    align-items: center;
    background-color: #e3e3fd;
    border-left: 3px solid #000091;
    padding: 1rem;
    margin-top: 2rem;
}

.custom-alert-icon {
    background-color: #000091;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.custom-alert-text-wrapper {
    flex: 1;
}

.custom-alert-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    color: #161616;
}

.custom-alert-text {
    margin: 0;
    color: #3a3a3a;
}

/* ===== CENTRAGE VERTICAL DU SVG DANS FR-ALERT--INFO ===== */
.fr-alert--info::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
}

/* ===== TABS WRAPPER ===== */
.tabs-wrapper {
    margin-left: calc(-1 * var(--xl-gap));
    margin-right: calc(-1 * var(--xl-gap));
    margin-top: 2rem;
}

/* ===== STYLES TABS DSFR ===== */
.fr-tabs {
    position: relative;
}

.fr-tabs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    border-bottom: 2px solid #000091;
    overflow: hidden;
    position: relative;
}

.fr-tabs__list li {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 200px;
}

.fr-tabs__tab {
    display: block;
    width: 100%;
    padding: 0.75rem 0.25rem;
    text-decoration: none;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    color: #161616;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.2s ease;
    font-weight: 500;
    border-top: 3px solid transparent;
    margin-bottom: -2px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fr-tabs__tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000091;
    transition: opacity 0.2s ease;
}

.fr-tabs__tab:hover {
    background-color: #e8e8e8;
    color: #000091;
}

.fr-tabs__tab[aria-selected="true"] {
    color: #ffffff !important;
    font-weight: 700;
    background-color: #000091;
    border-top: 3px solid #000091;
    z-index: 10;
    position: relative;
}

.fr-tabs__tab[aria-selected="true"]::after {
    display: none;
}

.fr-tabs__tab[aria-selected="true"]:hover {
    background-color: #000091;
    color: #ffffff !important;
}

.fr-tabs__panel {
    display: none;
    padding: 2rem;
    background-color: #ffffff;
    border: none;
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.fr-tabs__panel--selected {
    display: block;
}

/* ===== CONTENU DES PANELS ===== */
.panel-content-wrapper h3 {
    background-color: #f5f5fe;
    padding: 1rem 1.5rem;
    margin: -2rem 0 1.5rem 0;
    border-bottom: 3px solid #000091;
    color: #000091;
    font-weight: 700;
}

.panel-content-wrapper h3:not(:first-child) {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Fix pour les sous-titres dans les accordéons */
.tarif-content h4 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    color: #000091;
    font-weight: 700;
}

/* ===== TUILES ===== */
.fr-tile {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.fr-tile:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #000091;
}

.fr-tile__title a {
    text-decoration: none;
    color: #000091;
    font-weight: 600;
}

.fr-tile__desc {
    color: #161616;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== ACCORDÉONS TARIFS ===== */
.tarifs-accordion .fr-accordion {
    margin-bottom: 0;
    border: 1px solid #e5e5e5;
}

.tarifs-accordion .fr-accordion + .fr-accordion {
    border-top: none;
}

.tarifs-accordion .fr-accordion__btn {
    background-color: #f6f6f6;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarifs-accordion .fr-accordion__btn:hover {
    background-color: #eee;
}

.tarifs-accordion .fr-accordion__btn[aria-expanded="true"] {
    background-color: #e5e5e5;
    font-weight: 700;
}

.tarifs-accordion .fr-accordion__title {
    margin: 0;
}

.tarifs-accordion .accordion-title-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.tarifs-accordion .accordion-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tarifs-accordion .accordion-text h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #161616;
}

.tarifs-accordion .accordion-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #666666;
}

.tarifs-accordion .accordion-price {
    text-align: right;
    margin-left: 2rem;
}

.tarifs-accordion .accordion-price-label {
    font-size: 0.75rem;
    color: #666666;
    margin: 0;
}

.tarifs-accordion .accordion-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.tarifs-accordion .fr-collapse {
    background-color: #ffffff;
    padding: 0;
}

.tarifs-accordion .tarif-content {
    padding: 2rem;
}

.tarifs-accordion .tarif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tarifs-accordion .tarif-item {
    background-color: #f6f6f6;
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tarifs-accordion .tarif-item-label {
    flex: 1;
    margin-right: 1rem;
}

.tarifs-accordion .tarif-item-label strong {
    display: block;
    color: #161616;
    margin-bottom: 0.25rem;
}

.tarifs-accordion .tarif-item-label span {
    font-size: 0.875rem;
    color: #666666;
}

.tarifs-accordion .tarif-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.tarifs-accordion .tarif-notice {
    background-color: #e3e3fd;
    padding: 1rem 1.5rem;
    border-left: 3px solid #000091;
    margin-top: 1.5rem;
}

.tarifs-accordion .tarif-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: #3a3a3a;
}

/* Fix alignement tableau tarifs caractère */
.fr-table td.fr-text--right,
.fr-table th.fr-text--right {
    text-align: right !important;
}

.fr-table td.fr-text--bold {
    font-weight: 700;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1248px) {
    .tabs-wrapper {
        margin-left: calc(-1 * var(--w-gap));
        margin-right: calc(-1 * var(--w-gap));
    }
    
    .fr-tabs__panel {
        padding-left: var(--w-gap);
        padding-right: var(--w-gap);
    }
}

@media (max-width: 992px) {
    .fr-tabs__list {
        gap: 1px;
    }
    
    .fr-tabs__tab {
        font-size: 0.813rem;
        padding: 0.75rem 0.125rem;
    }
}

@media (max-width: 768px) {
    /* Hero section */
    .hero-section .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section .hero-badges {
        gap: 1.5rem;
    }
    
    .hero-section .hero-badge-text {
        font-size: 0.875rem;
    }
    
    .hero-section .hero-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .hero-section .hero-buttons .fr-btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
        padding: 0.75rem 1rem !important;
        min-height: 3rem !important;
    }
    
    /* Alerte custom */
    .custom-alert-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-alert-text-wrapper {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .custom-alert-content .fr-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Masquer les 2 derniers onglets sur mobile */
    .fr-tabs__list li:nth-child(7),
    .fr-tabs__list li:nth-child(8) {
        display: none;
    }
    
    /* Grille 3x2 pour les 6 onglets restants */
    .fr-tabs__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
        border-bottom: 2px solid #000091;
    }
    
    .fr-tabs__tab {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
        text-align: center;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        margin-bottom: 0;
        height: 100%;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        line-height: 1.2;
    }
    
    /* Fix pour le texte blanc sur mobile */
    .fr-tabs__tab[aria-selected="true"] {
        border-left: 3px solid #000091;
        border-top: none;
        background-color: #000091 !important;
        color: #ffffff !important;
    }
    
    .fr-tabs__panel {
        padding: 1rem;
        margin-top: 0;
        border-top: none;
    }
    
    /* Fix pour éviter le chevauchement des titres */
    .panel-content-wrapper h3 {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
        margin-top: -1rem;
    }
    
    .panel-content-wrapper h3:not(:first-child) {
        margin-top: 2rem;
    }
    
    /* Accordéons tarifs */
    .tarifs-accordion .accordion-title-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tarifs-accordion .accordion-text h4 {
        font-size: 1rem;
    }
    
    .tarifs-accordion .accordion-text p {
        font-size: 0.75rem;
    }
    
    .tarifs-accordion .accordion-price {
        margin-left: 0;
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .tarifs-accordion .tarif-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tarifs-accordion .tarif-content {
        padding: 1rem;
    }
    
    .tarifs-accordion .tarif-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .tarifs-accordion .tarif-item-price {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
    
    /* Tableaux responsive */
    .fr-table__wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fr-table table {
        min-width: 100%;
    }
    
    /* Section tarifs au caractère */
    .fr-table td, .fr-table th {
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Cards tarifs principaux */
    .fr-card__content {
        padding: 1rem;
    }
    
    .fr-card__title {
        font-size: 1.125rem;
    }
    
    .fr-card__desc {
        font-size: 0.875rem;
    }
    
    /* Tuiles */
    .fr-tile__title {
        font-size: 0.875rem;
    }
    
    .fr-tile__desc {
        font-size: 0.875rem;
    }
    
    /* CTA final - Centrage correct et isolation complète */
    .fr-callout {
        text-align: center !important;
    }
    
    .fr-callout .fr-btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 0.5rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-decoration: none !important;
        padding: 0.75rem 1rem !important;
        min-height: 3rem !important;
        box-sizing: border-box !important;
        font-family: inherit !important;
        font-size: 1rem !important;
        line-height: 1.5rem !important;
        font-weight: 500 !important;
        border-radius: 0.25rem !important;
    }
    
    .fr-callout .fr-btn:not(.fr-btn--secondary) {
        background-color: #000091 !important;
        color: #ffffff !important;
        border: 2px solid #000091 !important;
    }
    
    .fr-callout .fr-btn.fr-btn--secondary {
        background-color: #ffffff !important;
        color: #000091 !important;
        border: 2px solid #000091 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Titres */
    h2.fr-h2 {
        font-size: 1.75rem;
    }
    
    h3.fr-h3 {
        font-size: 1.375rem;
    }
    
    h4.fr-h4 {
        font-size: 1.125rem;
    }
    
    /* Espacement général */
    .fr-mt-8w {
        margin-top: 3rem !important;
    }
    
    .fr-mt-6w {
        margin-top: 2rem !important;
    }
    
    .fr-mt-4w {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .fr-tabs__tab {
        font-size: 0.813rem;
        padding: 0.875rem;
    }
    
    /* Accordéons tarifs encore plus compacts */
    .tarifs-accordion .fr-accordion__btn {
        padding: 1rem;
    }
}

/* Tablette spécifique */
@media (min-width: 769px) and (max-width: 992px) {
    /* Tabs sur tablette */
    .fr-tabs__list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
    .fr-tabs__list li {
        max-width: none;
    }
    
    .fr-tabs__tab {
        font-size: 0.875rem;
        padding: 0.875rem 0.5rem;
    }
    
    /* Grilles sur tablette */
    .tarifs-accordion .tarif-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1248px) {
    .fr-tabs__panel {
        padding-left: var(--xl-gap);
        padding-right: var(--xl-gap);
    }
}

@media (min-width: 769px) and (max-width: 1247px) {
    .fr-tabs__panel {
        padding-left: var(--w-gap);
        padding-right: var(--w-gap);
    }
}
</style>

/* ===== SERVICES COMPACTS - STYLE DSFR ===== */
.services-wrapper {
    margin: 3rem auto;
    max-width: 1000px;
}

.services-label {
    font-size: 1.125rem;
    color: #161616;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-card-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    background: #f5f5fe;
    border: 1px solid #000091;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 90px;
    text-align: center;
    position: relative;
}

.service-card-compact:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,145,0.12);
    border-width: 2px;
    margin: -1px;
}

.service-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000091;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #161616;
}

.service-subtitle {
    font-size: 0.75rem;
    color: #666666;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .services-grid-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .service-card-compact {
        padding: 1rem 0.5rem;
        min-height: 85px;
    }
}

@media (max-width: 768px) {
    .services-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-title {
        font-size: 0.813rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-wrapper {
        margin: 2rem auto;
    }
    
    .services-label {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .services-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-card-compact {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem;
        min-height: 100px;
        text-align: center;
        position: relative;
    }
    
    .service-title {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .service-price {
        margin-left: 0;
        font-size: 1rem;
    }
    
    .service-subtitle {
        position: static;
        font-size: 0.625rem;
        color: #666666;
        margin-top: 0.125rem;
    }
}