/**
 * AMÉLIORATIONS HERO ET LAYOUT - v3.8
 * 
 * Modifications pour :
 * - Repositionnement du bouton "Qui est INOVATIO?" sur index.php
 * - Alignement des titres en bas à gauche sur toutes les pages hero
 * - Réduction des marges générales du site (30-40%)
 * - Layout personnalisé pour les projets highlights
 * 
 * @author MiniMax Agent
 * @version 3.8
 */

/* ================================
   ÉQUILIBRAGE DES MARGES GÉNÉRALES
   ================================ */

/* CORRECTION ÉQUILIBRÉE : Marges réduites mais avec respiration visuelle */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    padding-left: 12px !important;   /* ÉQUILIBRÉ - plus de contenu mais avec respiration */
    padding-right: 12px !important;  /* ÉQUILIBRÉ - plus de contenu mais avec respiration */
    max-width: none !important;      /* Utiliser plus de largeur */
    width: calc(100% - 24px) !important;
}

/* Mobile - marges réduites mais lisibles */
@media (max-width: 575.98px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 8px !important;
        padding-right: 8px !important;
        width: calc(100% - 16px) !important;
    }
}

/* Tablet - marges équilibrées */
@media (min-width: 576px) and (max-width: 991.98px) {
    .container,
    .container-sm,
    .container-md {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: calc(100% - 20px) !important;
    }
}

/* Desktop - marges optimisées */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: calc(100% - 30px) !important;
    }
}

/* Large screens - marges confortables */
@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: calc(100% - 40px) !important;
    }
}

/* ====================================
   HERO SECTIONS - ALIGNEMENT GÉNÉRAL
   ==================================== */

/* Positionnement des textes en bas à gauche pour toutes les pages hero */
.hero-content-bottom-left {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 600px;
    z-index: 10;
}

.hero-content-bottom-left h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.hero-content-bottom-left .lead,
.hero-content-bottom-left p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 0;
}

/* Responsive pour mobile */
@media (max-width: 991.98px) {
    .hero-content-bottom-left {
        bottom: 30px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .hero-content-bottom-left h1 {
        font-size: 2.2rem;
    }
    
    .hero-content-bottom-left .lead,
    .hero-content-bottom-left p {
        font-size: 1.1rem;
    }
}

/* =====================================
   INDEX.PHP - BOUTON "QUI EST INOVATIO?"
   ===================================== */

/* Positionnement en bas à droite pour grands écrans */
.hero-button-bottom-right {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
}

.hero-button-bottom-right .btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-button-bottom-right .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    color: #333;
}

/* Masquer sur mobile */
@media (max-width: 991.98px) {
    .hero-button-bottom-right {
        display: none !important;
    }
}

/* =====================================
   INDEX.PHP - PROJETS HIGHLIGHTS LAYOUT
   ===================================== */

/* Layout personnalisé pour les 6 projets highlights */
.projects-custom-layout .project-row-1 .col-custom-7 {
    flex: 0 0 58.33333333%;
    max-width: 58.33333333%;
}

.projects-custom-layout .project-row-1 .col-custom-5 {
    flex: 0 0 41.66666667%;
    max-width: 41.66666667%;
}

.projects-custom-layout .project-row-2 .col-custom-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.projects-custom-layout .project-row-3 .col-custom-5 {
    flex: 0 0 41.66666667%;
    max-width: 41.66666667%;
}

.projects-custom-layout .project-row-3 .col-custom-7 {
    flex: 0 0 58.33333333%;
    max-width: 58.33333333%;
}

/* Responsive mobile - retour à 1 par ligne */
@media (max-width: 991.98px) {
    .projects-custom-layout .col-custom-7,
    .projects-custom-layout .col-custom-6,
    .projects-custom-layout .col-custom-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ====================================
   PORTFOLIO.PHP - LAYOUT SPÉCIALISÉ
   ==================================== */

/* Highlights : 2 colonnes (col-6) */
.portfolio-highlights .project-item {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Archives : 3 colonnes (col-4) */
.portfolio-archives .project-item {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Responsive mobile pour portfolio */
@media (max-width: 991.98px) {
    .portfolio-highlights .project-item,
    .portfolio-archives .project-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   MOBILE - RÉDUCTION HAUTEUR IMAGES PROJETS
   ======================================== */

/* Réduction hauteur images projets "Nos réalisations" sur mobile uniquement */
@media (max-width: 767.98px) {
    /* Page d'accueil - projets highlights */
    .projects-custom-layout .project-image img {
        height: 210px !important; /* 60% de 350px = 210px */
    }
    
    /* Portfolio page - projets highlights si nécessaire */
    .portfolio-highlights .project-image img {
        height: 210px !important; /* 60% de 350px = 210px */
    }
}

/* =======================================
   AMÉLIORATIONS HERO SECTION EXISTANTE
   ======================================= */

/* Amélioration de l'overlay hero */
.hero-overlay {
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.3) 100%
    );
}

/* Style pour les textes hero avec fond semi-transparent */
.hero-text-with-bg {
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Amélioration des transitions */
.hero-content-bottom-left,
.hero-button-bottom-right {
    transition: all 0.3s ease;
}

.hero-content-bottom-left:hover {
    transform: translateY(-2px);
}
