/**
 * Styles pour les accompagnements
 */

/* Section conteneur d'accompagnements sur la page territoire */
.accompagnements-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.accompagnement-item {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

.accompagnement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.accompagnement-icon {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accompagnement-icon img {
    max-width: 100px;
    max-height: 100px;
}

.accompagnement-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.accompagnement-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
    height: 2px;
    background-color: var(--primary-color);
  }

.accompagnement-content h3 {
    position: relative;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.accompagnement-description {
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

.accompagnement-description p:last-child {
    margin-bottom: 0;
}



/* Styles pour la page d'accompagnement - Hero par défaut en blanc */
.accompagnement-page .accompagnement-hero-section {
    background-color: #fff;
    color: #333;
    padding: 40px 0;
    margin-bottom: 0;
    text-align: left;
}

/* Styles pour la page d'accompagnement individuelle (avec slug) - Hero en bleu */
.accompagnement-page.has-slug .accompagnement-hero-section {
    background-color: #003399;
    color: #fff;
}

.accompagnement-content-section {
    padding: 50px 0;
}

/* Section accompagnements avec fond bleu */
.accompagnement-section-blue {
    background-color: #003399;
    color: white;
    padding: 60px 0;
    width: 100%;
}

.accompagnement-hero-section h1 {
    margin-bottom: 20px;
}

.accompagnement-section-blue h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
}

.accompagnement-section-blue .section-description {
    color: white;
    margin-bottom: 30px;
    font-size: 16px;
}

.accompagnement-full-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.accompagnement-back-section {
    padding: 30px 0 50px;
    border-top: 1px solid #eee;
}

/* Styles pour la grille d'accompagnements - Harmonisés avec les risques */
.accompagnement-card-link {
    text-decoration: none;
    color: inherit;
    display: flex; /* Pour que le lien prenne toute la hauteur de la carte */
}

.accompagnement-card-link:hover {
    text-decoration: none;
}

.accompagnements-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
}

.accompagnement-card {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 27.7px rgba(0, 12, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.accompagnement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 12, 36, 0.15);
}

.accompagnement-card h3 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.accompagnement-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
    height: 2px;
    background-color: var(--primary-color);
}

.accompagnement-card .accompagnement-description {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
}

.accompagnement-card .en-savoir-plus {
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accompagnement-card .en-savoir-plus:hover {
    background-color: #002970;
    transform: translateY(-2px);
}

.accompagnement-card .en-savoir-plus::before {
    content: '+';
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.1em;
}

/* Désactiver l'effet de survol sur les appareils tactiles */
@media (hover: none) {
    .accompagnement-card:hover {
        transform: none;
        box-shadow: 0 4px 27.7px rgba(0, 12, 36, 0.1);
    }
    .accompagnement-card .en-savoir-plus:hover {
        transform: none;
    }
}

/* Responsive pour la grille d'accompagnements */
@media (max-width: 768px) {
    .accompagnements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .accompagnement-card {
        padding: 20px;
    }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-arrow {
    margin-right: 8px;
    font-size: 18px;
}

.btn-back:hover {
    background-color: #e5e5e5;
    color: #222;
}

/* Adaptation pour les écrans mobiles */
@media (max-width: 768px) {
    .accompagnement-item {
        flex: 1 1 100%;
    }
}

/**
 * Styles pour les blocs des pages d'accompagnement
 * À ajouter à votre fichier accompagnements.css
 */

/* Styles généraux pour les pages d'accompagnement */
.accompagnement-full-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

/* Titre d'accompagnement avec couleur personnalisée */
.accompagnement-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.accompagnement-title span {
    color: #9ACA3C;
    /* Couleur par défaut, peut être remplacée par la couleur de l'accompagnement */
}



/* Layout à deux colonnes pour la section étapes */
.steps-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.steps-content-column {
    flex: 0 0 calc(50% - 20px);
    /* Exactement 50% moins la moitié du gap */
    max-width: calc(50% - 20px);
}

.steps-items-column {
    flex: 0 0 calc(50% - 20px);
    /* Exactement 50% moins la moitié du gap */
    max-width: calc(50% - 20px);
}



.steps-content {
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

/* Version mobile: passage en colonne complète */
@media (max-width: 768px) {
    .steps-flex-container {
        flex-direction: column;
        gap: 20px;
    }

    .steps-content-column,
    .steps-items-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Style pour le premier mot du titre en vert */
.title-first-word {
    color: #9ACA3C;
    /* Vert comme demandé */
    font-weight: 700;
    /* Poids de police identique pour éviter tout saut visuel */
}


/* Style pour les étapes  */
.steps-section {
    padding: 50px 0;
    background-color: #fff;
}

/* Style pour les étapes avec numéro à gauche du bloc */
.step-card {
    background-color: #D5D7EE;
    border-radius: 18px;
    padding: 15px 40px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 50px;
    width: 100%;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    -ms-border-radius: 18px;
    -o-border-radius: 18px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: #003399;
    font-size: 36px;
    font-weight: bold;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    /* Centrer verticalement */
    left: -30px;
    /* Sortir du bloc */
    transform: translateY(-50%);
    /* Ajustement pour centrage parfait */
    z-index: 1;
}

/* Couleurs des numéros d'étape comme dans votre image */
.step-card.step-1 .step-number {
    background-color: #ECEFFA;
}

.step-card.step-2 .step-number {
    background-color: #ECEFFA;
}

.step-card.step-3 .step-number {
    background-color: #ECEFFA;
}


/* Section d'étapes numérotées */

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-content {
    margin-top: 0px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    padding: 3px 12px;
    background-color: #fff;
    margin-bottom: 10px;
    color: #9ACA3C;
}

.step-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.step-title {
    margin: 0;
}

.step-description {
    font-size: 14px;
    line-height: 1.5;
    color: #003399;
}

.step-description p {
    margin-bottom: 0.2rem;
}


.step-tag {
    color: #003399;
}


.step-time {
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    top: -2px;
    right: -7px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #9ACA3C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Section d'évaluation */
.evaluation-section {
    padding: 3rem 0;
}

.evaluation-section h2 {
    margin-bottom: 2rem;
}

/* Styles spécifiques quand la section parente a un fond bleu */
.section-background-blue .evaluation-section {
    background-color: #003399;
    color: white;
}

.section-background-blue .evaluation-section h2 {
    color: white;
}

/* Styles spécifiques quand la section parente a un fond blanc */
.section-background-white .evaluation-section h2 {
    color: #333;
}

/* Styles spécifiques quand la section parente a un fond gris */
.section-background-gray .evaluation-section h2 {
    color: #333;
}

.evaluation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.evaluation-card {
    flex: 1 1 45%;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.evaluation-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.evaluation-card h3 {
    position: relative;
}
.evaluation-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
    height: 2px;
    background-color: var(--primary-color);
}


.evaluation-content {
    margin-bottom: 20px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evaluation-content img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.evaluation-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #003399;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.evaluation-button:hover {
    background-color: #2d4b8e;
    color: white;
}

/* Section de chiffres clés */
.key-figures-section {
    margin: 3rem 0;
}

/* Centrer le titre de la section chiffres clés */
.key-figures-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.key-figures-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.key-figure-item {
    flex: 1 1 200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.key-figure-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.key-figure-text {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}


/* Section Information et Ressources combinées */
.info-resources-section {
    padding: 3rem 0;
    background-color: #003399;
    /* Fond bleu foncé comme dans votre image */
    color: white;
}

/* Style de base pour le titre info-resources */
.info-resources-section h2 {
    margin-bottom: 1.5rem;
    font-size: 37px;
    font-weight: 700;
}

/* Couleur du titre selon le background */
.section-background-white .info-resources-section h2 {
    color: #333;
}

.section-background-blue .info-resources-section h2 {
    color: white;
}

.section-background-gray .info-resources-section h2 {
    color: #333;
}

.title-first-word {
    color: #9ACA3C;
    /* Vert comme demandé */
}

.info-resources-content {
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 16px;
    max-width: 900px;
}

.info-resources-main-button {
    margin-bottom: 3rem;
}

/* Cartes de ressources en deux colonnes */
.info-resources-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.info-resource-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 27.7px rgba(0, 12, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 12, 36, 0.15);
}

.info-resource-title {
    font-size: 1.1rem; /* 18px */
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px; /* Espace pour la ligne */
    margin-bottom: 15px;
}

.info-resource-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 88px;
    height: 2px;
    background-color: var(--primary-color);
}

.info-resource-description {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

.info-resource-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003399;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 14px;
}

.info-resource-button:hover {
    background-color: #093880;
    color: white;
}

.info-resource-button .plus-icon {
    margin-right: 5px;
}

/* Adaptations pour mobile */
@media (max-width: 768px) {
    .info-resource-card {
        flex: 1 1 100%;
    }
}



/* Section d'information avec fond coloré */
.info-section {
    padding: 3rem 0;
    background-color: #003399;
    color: white;
}

.info-section h2 {
    color: #9ACA3C;
    margin-bottom: 1.5rem;
}

.info-content {
    margin-bottom: 2rem;
}

.info-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #003399;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.info-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

/* Section de ressources avec cartes */

.resources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 1.5rem;
}

.resource-card {
    flex: 1 1 calc(50% - 30px);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.resource-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.resource-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #003399;
    text-decoration: none;
    border: 1px solid #003399;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.resource-button:hover {
    background-color: #003399;
    color: white;
}

.resource-button .plus-icon {
    margin-right: 5px;
}

/* Section partenaires */
.partners-section {
    margin: 3rem 0;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.partner-item {
    flex: 0 0 auto;
    max-width: 150px;
    margin: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-width: 100%;
    height: auto;
}

.partners-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
}

.partners-link a {
    display: inline-flex;
    align-items: center;
    color: #003399;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.partners-link a:hover {
    color: #2d4b8e;
}

.partners-link .arrow-icon {
    margin-left: 8px;
}

/* Adaptations pour mobile */
@media (max-width: 768px) {

    .step-card,
    .evaluation-card,
    .resource-card {
        flex: 1 1 100%;
    }

    .key-figure-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .key-figure-item {
        flex: 1 1 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Styles pour la pagination page par page */
.pagination-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.btn-pagination {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #003399;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 14px;
}

.btn-pagination:hover {
    background-color: #2d4b8e;
    color: white;
    transform: translateY(-2px);
}

.btn-pagination .arrow-icon {
    font-size: 16px;
    margin: 0 8px;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    font-size: 16px;
}

.pagination-info span {
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* Version mobile de la pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .btn-pagination {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .pagination-info {
        order: -1;
    }
}

/* ===== STYLES POUR LES COULEURS DE FOND DES SECTIONS ===== */

/* Section avec fond blanc (défaut) */
.section-background-white {
    background-color: #fff;
    color: #333;
}

/* Section avec fond bleu */
.section-background-blue {
    background-color: #003399;
    color: #fff;
}

.section-background-blue .step-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.section-background-blue .step-number {
    background-color: #fff;
    color: #003399;
}

.section-background-blue .step-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section-background-blue .evaluation-card {
    background-color: #fff;
    color: #333;
}

.section-background-blue .key-figures-card {
    background-color: #fff;
    color: #333;
}

.section-background-blue .resource-card {
    background-color: #fff;
    color: #333;
}

.section-background-blue .evaluation-card h3,
.section-background-blue .key-figures-card h3,
.section-background-blue .resource-card h3 {
    color: #333;
}

.section-background-blue .evaluation-card p,
.section-background-blue .key-figures-card p,
.section-background-blue .resource-card p {
    color: #666;
}

/* Spécifiquement pour les cartes de ressources/documents */
.section-background-blue .resource-item,
.section-background-blue .document-card,
.section-background-blue .fiche-card {
    background-color: #fff;
    color: #333;
}

/* Styles pour la section partenaires sur fond bleu */
.section-background-blue .section-title,
.section-background-blue.acc-partners-section .section-title {
    color: #fff !important;
}

.section-background-blue .partners-link a {
    color: #fff;
}

.section-background-blue .partners-link a:hover {
    color: #e6f2ff;
}

/* Styles pour le titre des missions CCI sur fond bleu */
.section-background-blue .cci-missions-title {
    color: #fff;
}

.section-background-blue .cci-missions-title .cci-title-first-words {
    color: #fff;
}

/* Styles pour le contenu des sections steps sur fond bleu */
.section-background-blue .steps-content,
.section-background-blue .steps-content p {
    color: #fff;
}

.section-background-blue .step-description,
.section-background-blue .step-description p {
    color: #fff;
}

.section-background-blue .resource-item h3,
.section-background-blue .document-card h3,
.section-background-blue .fiche-card h3,
.section-background-blue .resource-item h4,
.section-background-blue .document-card h4,
.section-background-blue .fiche-card h4 {
    color: #333;
}

.section-background-blue .resource-item p,
.section-background-blue .document-card p,
.section-background-blue .fiche-card p {
    color: #666;
}


/* Section avec fond gris */
.section-background-gray {
    background-color: #f5f5f5;
    color: #333;
}

.section-background-gray h2,
.section-background-gray h3,
.section-background-gray h4,
.section-background-gray h5,
.section-background-gray h6 {
    color: #333;
}

.section-background-gray .step-card {
    background-color: #D5D7EE;
    color: #333;
}

.section-background-gray .step-number {
    background-color: #003399;
    color: #fff;
}

.section-background-gray .step-tag {
    background-color: rgba(0, 51, 153, 0.1);
    color: #003399;
}

.section-background-gray .evaluation-card {
    background-color: #fff;
    color: #333;
}

.section-background-gray .key-figures-card {
    background-color: #fff;
    color: #333;
}

.section-background-gray .resource-card {
    background-color: #fff;
    color: #333;
}

/* Boutons dans les sections avec fond bleu - restent bleus */
.section-background-blue .btn,
.section-background-blue .button,
.section-background-blue .en-savoir-plus {
    background-color: #003399;
    color: #fff;
    border: 2px solid #003399;
    border-color: #ffff;
}

.section-background-blue .btn:hover,
.section-background-blue .button:hover,
.section-background-blue .en-savoir-plus:hover {
    background-color: #002970;
    color: #fff;
    border-color: #002970;
}

/* Boutons dans les sections avec fond gris */
.section-background-gray .btn,
.section-background-gray .button,
.section-background-gray .en-savoir-plus {
    background-color: #003399;
    color: #fff;
    border: 2px solid #003399;
}

.section-background-gray .btn:hover,
.section-background-gray .button:hover,
.section-background-gray .en-savoir-plus:hover {
    background-color: #002970;
    border-color: #002970;
}


/* Padding et espacement spécifique pour les différentes couleurs de fond */
.section-background-blue,
.section-background-gray,
.section-background-white {
    padding: 60px 0;
}

/* Adaptations responsive */
@media (max-width: 768px) {
    .section-background-blue,
    .section-background-gray,
    .section-background-white {
        padding: 40px 0;
    }
}

/* ===================================
   NOUVELLES SECTIONS ACCOMPAGNEMENTS
   =================================== */

/* Section Hero Accompagnement */
.accompagnement-hero-section {
    padding: 60px 0;
}

.accompagnement-hero-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.accompagnement-hero-content-column {
    flex: 1 1 50%;
    min-width: 300px;
}

.accompagnement-hero-image-column {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.accompagnement-hero-image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accompagnement-hero-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.accompagnement-hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.accompagnement-hero-button {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accompagnement-hero-button:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .accompagnement-hero-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .accompagnement-hero-section h2 {
        font-size: 28px;
    }

    .accompagnement-hero-description {
        font-size: 16px;
    }

    .accompagnement-hero-section {
        padding: 2rem 0;
    }
}

/* Styles spécifiques pour la section hero selon le background */
.section-background-white .accompagnement-hero-section h2 {
    color: #333;
}

.section-background-blue .accompagnement-hero-section h2 {
    color: #fff;
}

.section-background-gray .accompagnement-hero-section h2 {
    color: #333;
}

.section-background-white .accompagnement-hero-description {
    color: #666;
}

.section-background-blue .accompagnement-hero-description,
.section-background-blue .accompagnement-hero-description p {
    color: #fff;
}

.section-background-gray .accompagnement-hero-description,
.section-background-gray .accompagnement-hero-description p {
    color: #555;
}

/* Section Cartes Accompagnements */
.accompagnement-cards-section {
    padding: 60px 0;
}

.accompagnement-cards-section h2 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 20px;
}

.accompagnement-cards-section .accompagnement-cards-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.accompagnement-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.accompagnement-card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accompagnement-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.accompagnement-card-item:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.card-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.accompagnement-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accompagnement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.accompagnement-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.accompagnement-card-content {
    padding: 25px;
}

.accompagnement-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.accompagnement-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.accompagnement-card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003399;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.accompagnement-card-button:hover {
    background-color: #002970;
}

/* Section Simple Text */
.accompagnement-simple-text-section {
    padding: 60px 0;
}

.accompagnement-simple-text-section h2 {
    font-size: 37px;
    font-weight: 700;
    margin-bottom: 30px;
}

.accompagnement-simple-text-content {
    font-size: 18px;
    line-height: 1.8;
}

.accompagnement-simple-text-content p {
    margin-bottom: 20px;
}

.accompagnement-simple-text-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #333;
}

.accompagnement-simple-text-content ul,
.accompagnement-simple-text-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.accompagnement-simple-text-content li {
    margin-bottom: 10px;
}

/* Adaptations Simple Text selon background */
.section-background-white .accompagnement-simple-text-section h2,
.section-background-white .accompagnement-simple-text-content h3 {
    color: #333;
}

.section-background-blue .accompagnement-simple-text-section h2,
.section-background-blue .accompagnement-simple-text-content h3,
.section-background-blue .accompagnement-simple-text-content {
    color: #fff;
}

.section-background-gray .accompagnement-simple-text-section h2,
.section-background-gray .accompagnement-simple-text-content h3 {
    color: #333;
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
    .accompagnement-hero-section .hero-content {
        flex-direction: column;
    }

    .accompagnement-hero-section .hero-text h1 {
        font-size: 32px;
    }

    .accompagnement-cards {
        grid-template-columns: 1fr;
    }

    .accompagnement-cards-section h2,
    .accompagnement-simple-text-section h2 {
        font-size: 28px;
    }
}