/* ==========================================================================
   1. BASES & CONFIGURATION GÉNÉRALE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', Arial, sans-serif !important;
}

body { 
    background-color: #fff; 
    color: #000; 
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Bannière collante au scroll)
   ========================================================================== */
.header {
    width: 100%;
    background-color: #ffffff;
    position: -webkit-sticky; 
    position: sticky;         
    top: 0;                   
    z-index: 9999;            
    border-bottom: 1px solid #f0f0f0; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 4%; 
    box-sizing: border-box;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin: 0;  
    padding: 0; 
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500; 
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    text-decoration: underline; 
}

/* SOUS-MENU PROJETS */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 10px; 
    margin-bottom: -10px;
}

.submenu {
    display: none;             
    position: absolute;
    top: 100%;                 
    left: 0;
    background: #ffffff;
    padding: 20px;             
    list-style: none;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #eee;    
    min-width: 200px;
    z-index: 2000;
}

.dropdown:hover .submenu {
    display: flex;             
}

.submenu li a {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666 !important;
    text-transform: uppercase;
}

.submenu li a:hover {
    color: #000 !important;
}

/* ==========================================================================
   3. GRILLE DE PROJETS (Index / Portfolio)
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 50px;
    row-gap: 120px;
    padding: 160px 40px 80px;
    width: 100%;
    align-items: start;
}

.project-item {
    width: 100%;
    display: block;
    grid-column: span 2; /* Comportement par défaut (Medium/Small) */
}

.project-item.small  { grid-column: span 2; }
.project-item.medium { grid-column: span 3; }
.project-item.large  { grid-column: span 4; }
.project-item.xl     { grid-column: span 6; }

.project-item a {
    text-decoration: none !important;
    color: #000 !important;
}

.project-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    /* Nettoyé : on ne garde que la transition du filtre de luminosité */
    transition: filter 0.4s ease; 
}

/* MODIFIÉ : Plus de scale(1.03), l'image reste fixe et change juste de luminosité */
.project-item:hover img {
    filter: brightness(0.8);
}

.project-info {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    margin-top: 25px;       /* MODIFIÉ : Augmenté pour décoller le texte de la photo */
    color: #000;
    text-align: center;     /* AJOUTÉ : Centre le texte sur l'axe de la photo */
}

.project-info h3 {
    font-weight: 400; 
    margin: 0;        
    font-size: 1rem;  
}

.project-item:hover .project-info { 
    opacity: 1; 
    transform: translateY(0); 
}

/* PAGE DÉTAIL PRODUIT */
.project-detail {
    display: block;
    position: relative;
    z-index: 1; 
    padding: 40px; 
}

/* ==========================================================================
   4. PAGE ACTUS (3 colonnes)
   ========================================================================== */
.actus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 40px;                        
    padding: 40px 0;
}

.actu-item {
    display: flex;
    flex-direction: column;                
    gap: 15px;                             
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.actu-item:hover {
    opacity: 0.6;
}

.actu-date {
    font-weight: 500;
    color: #000;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.actu-content {
    color: #222;
    text-align: justify;                   
}

.actu-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   5. PAGE MÉDIAS / PRESSE (Corrigé & Centralisé)
   ========================================================================== */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.press-item {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.press-item:hover {
    opacity: 0.85; 
}

/* Couvertures physiques (Magazines) */
.press-cover-wrapper {
    width: 100%;
    display: block;
    margin-bottom: 15px;
}

.press-cover-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
}

/* FUSION ET NETTOYAGE COMPLET DU BUG DIGITAL-LINK-BOX */
.digital-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    background: none; 
    border: none;
    min-height: 220px; 
    transition: opacity 0.3s;
}

.digital-link-box img {
    max-height: 50px; /* Taille optimale sur Desktop */
    width: auto;
    object-fit: contain;
    margin-bottom: 15px; 
    display: block;
}

.digital-link-box:hover {
    background-color: transparent;
    opacity: 0.7; 
}

/* Textes de la section Presse */
.press-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.press-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #000000;
}

.press-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #000000; 
    padding: 30px 40px;            
}

.footer-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    max-width: 100%;
    margin: 0 auto;
}

.footer-address p, 
.footer-contact a {
    font-size: 0.95rem;
    color: #000000;
    margin: 0;
    text-decoration: none;
    font-weight: 500; 
    letter-spacing: 0.3px;
}

.footer-address .separator {
    color: #ccc;
    margin: 0 10px;
    font-weight: normal;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 15px; 
    align-items: center;
}

.social-icon {
    width: 26px;  
    height: 26px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover .social-icon {
    opacity: 0.6; 
}


/* ==========================================================================
   7. CONFIGURATION RESPONSIVE (Strictement en fin de fichier)
   ========================================================================== */

/* --- TABLETTE & ÉCRANS MOYENS (< 1024px) --- */
@media (max-width: 1024px) {
    .actus-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* --- SMARTPHONES & PORTRAITS (< 768px) --- */
@media (max-width: 768px) {
    
    .navbar {
        padding: 15px 20px;
        flex-direction: column; 
        gap: 15px;
    }

    .logo img {
        height: 60px; 
    }

    .nav-links {
        gap: 25px; 
    }

    .nav-links a {
        font-size: 0.95rem; 
    }

    /* Grille d'index de projets sur mobile */
    .project-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
        padding: 120px 20px 60px;
    }

    .project-item,
    .project-item.small,
    .project-item.medium,
    .project-item.large,
    .project-item.xl {
        grid-column: span 1;
    }

    /* Boîtes de texte projet à double langue */
    .project-content-wrapper {
        display: block !important; 
    }
    
    .scroll-text-box {
        display: block !important;
        height: 300px !important; 
        overflow-y: scroll !important; 
        -webkit-overflow-scrolling: touch !important; 
        border: 1px solid #eee; 
        padding: 15px;
        margin-top: 30px;
    }

    /* Section Presse / Média Mobile */
    .press-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        row-gap: 30px;
        column-gap: 20px;
        padding: 15px; 
    }

    .press-cover-wrapper {
        height: auto; 
        padding: 0px;
    }

    .digital-link-box {
        min-height: 160px;
        padding: 15px 10px;
    }

    .digital-link-box img {
        max-height: 40px !important; /* Forcé pour éviter l'écrasement desktop */
    }

    .digital-link-box span {
        font-size: 0.85rem;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

/* --- TRÈS PETITS SMARTPHONES (< 670px) --- */
@media (max-width: 670px) {
    .actus-grid {
        grid-template-columns: 1fr; 
        gap: 40px 0;
    }
}