/**
 * Styles pour le bloc Academy Levrard
 */

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */

   .academy-block {
    width: 97%;
    position: relative;
    margin: 0 auto 60px;
}

.academy-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.academy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ============================================
   POSITION DE L'IMAGE
   ============================================ */

/* Image à droite (par défaut) */
.academy-image-right {
    grid-template-areas: "content image";
}

.academy-image-right .academy-content-col {
    grid-area: content;
}

.academy-image-right .academy-image-col {
    grid-area: image;
}

/* Image à gauche */
.academy-image-left {
    grid-template-areas: "image content";
}

.academy-image-left .academy-content-col {
    grid-area: content;
}

.academy-image-left .academy-image-col {
    grid-area: image;
}

/* ============================================
   COLONNES
   ============================================ */

.academy-image-col,
.academy-content-col {
    position: relative;
}

/* ============================================
   IMAGE
   ============================================ */

.academy-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;

}

.academy-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.academy-image-wrapper:hover .academy-image {
    transform: scale(1.05);
}

/* ============================================
   CONTENU TEXTUEL
   ============================================ */

.academy-content {
    max-width: 600px;
}

.academy-surtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E73331;
    background: rgba(231, 51, 49, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.academy-title {
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.academy-subtitle {
    font-size: 20px;
    color: #666666;
    margin: 0 0 25px 0;
    line-height: 1.4;
    font-weight: 500;
}

.academy-description {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.academy-description p {
    margin: 0 0 15px 0;
}

.academy-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LISTE DES FEATURES
   ============================================ */

.academy-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.academy-feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    color: #333333;
    border-bottom: 1px solid #e5e5e5;
}

.academy-feature-item:last-child {
    border-bottom: none;
}

.academy-feature-item i {
    color: #E73331;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.academy-feature-item span {
    flex: 1;
}

/* ============================================
   BOUTON CTA
   ============================================ */

.academy-cta {
    margin-top: 35px;
}

.academy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.academy-btn i {
    transition: transform 0.3s ease;
}

.academy-btn:hover i {
    transform: translateX(5px);
}

/* Bouton principal (rouge) */
.academy-btn-primary {
    background: #E73331;
    color: #ffffff;
    border: 2px solid #E73331;
}

.academy-btn-primary:hover {
    background: #d42927;
    border-color: #d42927;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 51, 49, 0.3);
}

/* Bouton secondaire (blanc) */
.academy-btn-secondary {
    background: #ffffff;
    color: #E73331;
    border: 2px solid #E73331;
}

.academy-btn-secondary:hover {
    background: #E73331;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 51, 49, 0.3);
}

/* ============================================
   COULEURS DE FOND
   ============================================ */

/* Fond blanc (par défaut) */
.academy-bg-white {
    background: #ffffff;
}

.academy-bg-white .academy-title {
    color: #333333;
}

.academy-bg-white .academy-subtitle,
.academy-bg-white .academy-description {
    color: #555555;
}

/* Fond gris clair */
.academy-bg-gray {
    background: #f8f8f8;
}

.academy-bg-gray .academy-title {
    color: #333333;
}

.academy-bg-gray .academy-subtitle,
.academy-bg-gray .academy-description {
    color: #555555;
}

/* Fond gris foncé */
.academy-bg-dark {
    background: linear-gradient(135deg, #2c2c2c 0%, #3d3d3d 100%);
}

.academy-bg-dark .academy-surtitle {
    background: rgba(231, 51, 49, 0.2);
    color: #ffffff;
}

.academy-bg-dark .academy-title {
    color: #ffffff;
}

.academy-bg-dark .academy-subtitle,
.academy-bg-dark .academy-description {
    color: rgba(255, 255, 255, 0.9);
}

.academy-bg-dark .academy-feature-item {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.academy-bg-dark .academy-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.academy-bg-dark .academy-btn-secondary:hover {
    background: #ffffff;
    color: #E73331;
}

/* ============================================
   ESPACEMENTS VERTICAUX
   ============================================ */

.academy-spacing-small {
    padding: 40px 0;
}

.academy-spacing-medium {
    padding: 80px 0;
}

.academy-spacing-large {
    padding: 120px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 992px) {
    .academy-container {
        gap: 40px;
    }
    
    .academy-title {
        font-size: 36px;
    }
    
    .academy-subtitle {
        font-size: 18px;
    }
    
    .academy-spacing-medium {
        padding: 60px 0;
    }
    
    .academy-spacing-large {
        padding: 90px 0;
    }
}

/* Tablette portrait et mobile */
@media (max-width: 768px) {
    .academy-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Forcer l'image en haut en mobile */
    .academy-image-right,
    .academy-image-left {
        grid-template-areas: 
            "image"
            "content";
    }
    
    .academy-title {
        font-size: 32px;
    }
    
    .academy-subtitle {
        font-size: 17px;
    }
    
    .academy-description {
        font-size: 15px;
    }
    
    .academy-feature-item {
        font-size: 15px;
    }
    
    .academy-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
    }
    
    .academy-spacing-small {
        padding: 30px 0;
    }
    
    .academy-spacing-medium {
        padding: 50px 0;
    }
    
    .academy-spacing-large {
        padding: 70px 0;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .academy-wrapper {
        padding: 0 15px;
    }
    
    .academy-title {
        font-size: 28px;
    }
    
    .academy-subtitle {
        font-size: 16px;
    }
    
    .academy-surtitle {
        font-size: 11px;
        padding: 5px 14px;
    }
    
    .academy-description {
        font-size: 14px;
    }
    
    .academy-feature-item {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .academy-feature-item i {
        font-size: 16px;
        margin-right: 12px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.academy-content {
    animation: fadeInUp 0.8s ease-out;
}

.academy-image-right .academy-image-wrapper {
    animation: fadeInRight 0.8s ease-out;
}

.academy-image-left .academy-image-wrapper {
    animation: fadeInLeft 0.8s ease-out;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

.academy-btn:focus {
    outline: 3px solid rgba(231, 51, 49, 0.5);
    outline-offset: 3px;
}

/* Améliorer le contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    .academy-subtitle,
    .academy-description {
        color: #000000;
    }
    
    .academy-bg-dark .academy-subtitle,
    .academy-bg-dark .academy-description {
        color: #ffffff;
    }
}

/* Mode sombre système */
@media (prefers-color-scheme: dark) {
    .academy-bg-white {
        background: #1a1a1a;
    }
    
    .academy-bg-white .academy-title {
        color: #ffffff;
    }
    
    .academy-bg-white .academy-subtitle,
    .academy-bg-white .academy-description {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .academy-bg-white .academy-feature-item {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .academy-block {
        break-inside: avoid;
    }
    
    .academy-btn {
        display: none;
    }
}