/**
 * 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 {
    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 individuelle */
.accompagnement-page .titre-principal {
    background-color: #4367AE;
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.accompagnement-page .titre-principal h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.accompagnement-content-section {
    padding: 0 0 50px;
}

.accompagnement-full-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.accompagnement-back-section {
    padding: 30px 0 50px;
    border-top: 1px solid #eee;
}

.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: #97C12B;
    /* 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: flex-start;
}

.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: #97C12B;
    /* Vert comme demandé */
    font-weight: 700;
    /* Poids de police identique pour éviter tout saut visuel */
}


/* Style pour les étapes (code existant modifié) */
.steps-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

/* Style pour les étapes avec numéro à gauche du bloc */
.step-card {
    background-color: white;
    border-radius: 10px;
    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-bottom: 20px;
    margin-left: 50px;
    /* Espace pour le numéro */
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: white;
    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: #4367AE;
}

.step-card.step-2 .step-number {
    background-color: #97C12B;
}

.step-card.step-3 .step-number {
    background-color: #FF5722;
}


/* Section d'étapes numérotées */

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-content {
    margin-top: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.step-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.step-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.step-description p {
    margin-bottom: 0.5rem;
}


.step-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(67, 103, 174, 0.1);
    color: #4367AE;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

/* Section d'évaluation */
.evaluation-section {
    padding: 3rem 0;
    background-color: #0D47A1;
    color: white;
}

.evaluation-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.evaluation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.evaluation-card {
    flex: 1 1 45%;
    background-color: white;
    border-radius: 10px;
    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;
    border-bottom: 1px solid #eee;
}

.evaluation-content {
    margin-bottom: 20px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evaluation-content img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.evaluation-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4367AE;
    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;
}

.key-figures-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.key-figure-item {
    flex: 1 1 200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.key-figure-number {
    font-size: 41px;
    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: #0D47A1;
    /* Fond bleu foncé comme dans votre image */
    color: white;
}

.info-resources-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 28px;
    font-weight: 700;
}

.title-first-word {
    color: #97C12B;
    /* 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: white;
    border-radius: 10px;
    padding: 30px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-resource-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.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: #0D47A1;
    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 {
    margin: 3rem 0;
    padding: 3rem 0;
    background-color: #4367AE;
    color: white;
}

.info-section h2 {
    color: #97C12B;
    margin-bottom: 1.5rem;
}

.info-content {
    margin-bottom: 2rem;
}

.info-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #4367AE;
    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-section {
    margin: 3rem 0;
}

.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: #4367AE;
    text-decoration: none;
    border: 1px solid #4367AE;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.resource-button:hover {
    background-color: #4367AE;
    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: #4367AE;
    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: #4367AE;
    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;
    }
}