/* Ajoutez ceci au début de votre fichier custom.css */
:root {
    --primary-font: 'Poppins', sans-serif;
}

/* Appliquer la police globalement */
body,
html {
    font-family: var(--primary-font);
}

/* Appliquer la police aux titres */
h1, h2, h3, h4, h5, h6,
.site-title,
.main-navigation,
.wp-block-button {
    font-family: var(--primary-font);
}



/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2; /* Place le contenu en dessous */
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .main-navigation {
        display: none;
    }

    .header-container {
        padding: 0.5rem;
    }

    .contact-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .hero-image {
        order: 1; /* Place l'image au-dessus */
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Style de base des boutons */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    max-width: 100%;
}

.primary-button,
.secondary-button {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex: 0 1 auto; /* Ne pas étirer les boutons */
}

.primary-button {
    background-color: #E5B460;
    color: white;
}

.secondary-button {
    border: 2px solid #E5B460;
    color: #E5B460;
}

/* Hover effects */
.primary-button:hover {
    background-color: #d4a14f;
}

.secondary-button:hover {
    background-color: #E5B460;
    color: white;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 300px; /* Limiter la largeur maximale sur mobile */
        margin: 0 auto;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 300px; /* Largeur maximale des boutons */
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 480px) {
    .hero-buttons {
        max-width: 250px; /* Largeur encore plus limitée pour les petits écrans */
    }

    .primary-button,
    .secondary-button {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

/* Ajustements pour la section hero */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-content p {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Additional Styles */

.primary-button:hover,
.contact-button:hover {
    background-color: #d4a14f;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background-color: #E5B460;
    color: white;
    transition: all 0.3s ease;
}

.site-footer {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.footer-logo {
    flex: 0 0 auto;
}

.main-logo {
    height: 50px;
    width: auto;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.certification-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 300px;
}

.cert-logo {
    height: 60px;
    width: auto;
}

.qualiopi-text {
    max-width: 300px;
    font-size: 0.8rem;
    color: #666;
}

.footer-pages {
    flex: 0 0 auto;
}

.footer-pages h3 {
    color: #E5B460;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-pages ul li {
    margin-bottom: 0.5rem;
}

.footer-pages ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-pages ul li a:hover {
    color: #E5B460;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #E5B460;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .certification-logos {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.feature-item {
    flex: 1;
    text-align: center;
    max-width: 360px;
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-icon img {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }
}

.elearning-section {
    background-color: #E5B460;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.elearning-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.elearning-illustration {
    flex: 1;
    max-width: 100%;
}

.illustration-image {
    width: 100%;
    height: auto;
    display: block;
}

.elearning-content {
    flex: 1;
    color: white;
    max-width: 500px;
}

.elearning-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.2;
}

.elearning-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #E5B460;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .elearning-container {
        flex-direction: column;
        text-align: center;
    }

    .elearning-illustration {
        order: 2;
        margin-top: 40px;
    }

    .elearning-content {
        order: 1;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        max-width: 300px; /* Limitation de la largeur sur tablette */
        width: auto;
    }
}

@media (max-width: 576px) {
    .elearning-section {
        padding: 60px 0;
    }

    .elearning-content h2 {
        font-size: 36px;
    }

    .elearning-content p {
        font-size: 16px;
    }

    .cta-button {
        max-width: 250px; /* Limitation de la largeur sur mobile */
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

.about-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
   
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    order: 2;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
    max-width: 500px;
    order: 1;
}

.about-content h2 {
    font-size: 42px;
    color: #333;
    margin-bottom: 30px;
}

.about-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-cta {
    display: inline-block;
    color: #E5B460;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #E5B460;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-cta:hover {
    background-color: #E5B460;
    color: white;
}

/* Section Statistiques */
.stats-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.stats-header {
    margin-bottom: 60px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.stats-header sup {
    font-size: 12px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.stat-item {
    flex: 1;
    max-width: 300px;
}

.stat-number {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus {
    color: #E5B460;
    margin-left: 4px;
}

.divider {
    margin: 0 4px;
    color: #666;
}

.stat-label {
    color: #E5B460;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }

    .about-content {
        text-align: center;
        max-width: 600px;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .about-content h2 {
        font-size: 36px;
    }

    .about-text {
        font-size: 15px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* Styles pour la section formations sur la front page */
.formations-section {
    padding: 40px 20px;
    background-color: #ffffff;
}

.formations-header {
    text-align: center;
    margin-bottom: 40px;
}

.formations-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.formations-header p {
    font-size: 18px;
    color: #666;
}

.formations-section .categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.formations-section .category-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formations-section .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.formations-section .category-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.formations-section .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.formations-section .category-card:hover .category-image img {
    transform: scale(1.05);
}

.formations-section .category-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.formations-section .category-description {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .formations-section .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .formations-section .categories-grid {
        grid-template-columns: 1fr;
    }
}

#formation_category_image_preview {
    margin: 10px 0;
    max-width: 300px;
}

#formation_category_image_preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.hidden {
    display: none !important;
}

/* Styles pour les notifications */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Animation pour faire disparaître les notifications */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.alert.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}