/* Page d'accueil - Amélioration des boîtes de statistiques */

/* Container principal avec CSS Grid pour réorganiser */
.home main .info .wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 1.5rem !important;
    max-width: var(--theJdrSize) !important;
    margin: 0 auto !important;
}

/* Les 4 boîtes de statistiques en grille 2x2 */
.home main .info .wrapper .number:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.home main .info .wrapper .number:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.home main .info .wrapper .number:nth-child(4) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.home main .info .wrapper .number:nth-child(5) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Amélioration des boîtes de statistiques */
.home main .info .number {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Taille uniforme pour toutes les boîtes */
    height: 140px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home main .info .number:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.home main .info .number strong {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    display: block;
}

.home main .info .number div {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive - améliorations mobile */
@media (max-width: 768px) {
    /* Hero section - amélioration mobile */
    .jumbo {
        height: auto !important;
        min-height: 400px !important;
        padding: 2rem 0 3rem 0 !important;
    }
    
    .jumbo .inner-wrapper {
        max-width: 95vw !important;
        padding: 1rem;
    }
    
    .jumbo .inner {
        padding: 1.5rem 1rem !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .jumbo .inner h2 {
        font-size: 1.75rem !important;
        margin: 1rem 0 !important;
        line-height: 1.3 !important;
    }
    
    .jumbo .inner h3 {
        font-size: 1.25rem !important;
        margin: 1rem 0 !important;
        line-height: 1.4 !important;
    }
    
    .jumbo .inner p {
        font-size: 1rem !important;
        margin: 1rem 0 !important;
        line-height: 1.5 !important;
    }
    
    /* Logo jumbo - réduction mobile */
    .jumbo-logo {
        max-width: 280px !important;
        width: 80vw !important;
        height: auto !important;
    }
    
    /* Réorganisation mobile - tout en une colonne */
    .home main .info .wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto auto !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    /* Repositionnement des boîtes sur mobile */
    .home main .info .wrapper .number:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .home main .info .wrapper .number:nth-child(3) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .home main .info .wrapper .number:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    .home main .info .wrapper .number:nth-child(5) {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
    
    .home main .info .number {
        padding: 1.25rem 1rem !important;
        height: 130px !important;
        margin: 0 !important;
    }
    
    .home main .info .number strong {
        font-size: 2.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .home main .info .number div {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    /* Section expertise en une seule colonne sur mobile */
    .home main .info .inner {
        grid-column: 1 !important;
        grid-row: 5 !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 2rem 1rem !important;
        margin-top: 1rem !important;
    }
    
    /* Titres et contenus empilés verticalement sur mobile */
    .home main .info .inner > * {
        grid-column: 1 !important;
        width: 100% !important;
    }
    
    /* Ajustements typographiques mobile pour cette section */
    .home main .info .inner h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .home main .info .inner > p:first-of-type {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    .home main .info .inner h3 {
        font-size: 1.3rem !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }
    
    /* Premier h3 sans marge supérieure */
    .home main .info .inner h3:first-of-type {
        margin-top: 0 !important;
    }
    
    /* Sections principales - padding mobile */
    .home main > section {
        margin: 2rem 0 !important;
        padding: 2rem 1rem !important;
    }
    
    /* Section statistiques - espacement spécial après hero */
    .home main .info {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
    }
    
    .home main > section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Boutons plus grands sur mobile */
    .btn, a.btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        display: block !important;
        text-align: center !important;
        margin: 1rem auto !important;
        max-width: 280px !important;
    }
}

/* Responsive très petit écran */
@media (max-width: 480px) {
    .jumbo {
        height: auto !important;
        min-height: 350px !important;
        padding: 1.5rem 0 2.5rem 0 !important;
    }
    
    .jumbo .inner {
        padding: 1rem 0.75rem !important;
    }
    
    .jumbo .inner h2 {
        font-size: 1.5rem !important;
    }
    
    .jumbo .inner h3 {
        font-size: 1.125rem !important;
    }
    
    .jumbo-logo {
        max-width: 240px !important;
        width: 75vw !important;
    }
    
    .home main .info .number {
        height: 110px !important;
        padding: 1rem 0.75rem !important;
    }
    
    .home main .info .number strong {
        font-size: 2.25rem !important;
    }
    
    .home main .info .number div {
        font-size: 0.8rem !important;
    }
    
    .home main > section {
        padding: 1.5rem 0.75rem !important;
    }
    
    /* Section statistiques - espacement réduit sur très petit écran */
    .home main .info {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }
    
    .home main > section h2 {
        font-size: 1.5rem !important;
    }
    
    /* Section expertise - ajustements très petit écran */
    .home main .info .inner {
        padding: 1.5rem 0.75rem !important;
    }
    
    .home main .info .inner h2 {
        font-size: 1.75rem !important;
    }
    
    .home main .info .inner h3 {
        font-size: 1.2rem !important;
    }
    
    .home main .info .inner li {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* Effets de bordure pour chaque boîte */
.home main .info .number:nth-child(2) {
    border-left: 3px solid #10B981;
}

.home main .info .number:nth-child(3) {
    border-left: 3px solid #3B82F6;
}

.home main .info .number:nth-child(4) {
    border-left: 3px solid #F59E0B;
}

.home main .info .number:nth-child(5) {
    border-left: 3px solid #EF4444;
}

/* Section expertise en 2 colonnes - placée en 3ème ligne avec bordure globale */
.home main .info .inner {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    max-width: none !important;
    margin-top: 2rem !important;
    
    /* Bordure globale autour de toute la section */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.home main .info .inner h2 {
    grid-column: 1 / -1; /* Le titre prend toute la largeur */
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home main .info .inner > p:first-of-type {
    grid-column: 1 / -1; /* La description prend toute la largeur */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}


/* Supprimer les bordures individuelles - la bordure globale suffit */
.home main .info .inner h3,
.home main .info .inner h3 + ul {
    background: none;
    border: none;
    backdrop-filter: none;
    padding-left: 0;
    padding-right: 0;
}

.home main .info .inner h3 {
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 1rem;
}

.home main .info .inner h3 + ul {
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Ajuster les propriétés du h3 sans dupliquer */
.home main .info .inner h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.home main .info .inner ul {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.home main .info .inner li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    list-style: none;
}

.home main .info .inner li:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.home main .info .inner strong {
    color: #ffffff;
    font-weight: 600;
}

/* Section subscribe - Call to Action */
.home main .subscribe {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 3rem !important;
    backdrop-filter: blur(10px) !important;
    text-align: center !important;
    margin: 2rem auto !important;
    max-width: var(--theJdrSize) !important;
}

.home main .subscribe h2 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.home main .subscribe p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

.home main .subscribe ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}

.home main .subscribe li {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 1rem 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.2s ease !important;
    min-width: 250px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.home main .subscribe li strong {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: none !important;
    display: block !important;
}

/* Corriger le lien email qui crée une boîte dans la boîte */
.home main .subscribe li a {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    display: inline !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transform: none !important;
}

.home main .subscribe li a:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: underline !important;
}

.home main .subscribe li:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.home main .subscribe a {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.home main .subscribe a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Cacher le bouton Subscribe automatique du thème */
.home main .subscribe > a.btn {
    display: none !important;
}

/* Améliorations de la section jumbo/hero */
.home .jumbo {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .jumbo .jumbo-cover {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

.home .jumbo .jumbo-cover::after {
    background: linear-gradient(135deg, 
        rgba(25, 118, 210, 0.7) 0%, 
        rgba(25, 118, 210, 0.5) 50%, 
        rgba(25, 118, 210, 0.8) 100%);
    opacity: 0.9;
}

.home .jumbo .inner-wrapper {
    z-index: 10;
    position: relative;
}

.home .jumbo .jumbo-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.home .jumbo .inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home .jumbo .inner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home .jumbo .inner h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 1rem 0 2rem 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home .jumbo .inner small {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: block;
    margin-top: 1rem;
}

/* Animation d'entrée */
.home .jumbo .inner {
    animation: slideInUp 1s ease-out;
}

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

/* Responsive pour mobile */
@media (max-width: 768px) {
    .home .jumbo .inner {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .home .jumbo .inner h1 {
        font-size: 2.5rem;
    }
    
    .home .jumbo .inner h2 {
        font-size: 1.5rem;
    }
    
    .home .jumbo .jumbo-logo {
        max-width: 120px;
    }
}

