/* CSS Document */

        /* RESET + BASE MOBILE */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        a {
            color: inherit;
            text-decoration: none;
        }
        
        /* CONTENEUR PRINCIPAL */
        #conteneur {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* HEADER RESPONSIVE */
        #header {
            background: #000;
            color: white;
            text-align: center;
            padding: 2rem 1rem;
            flex-shrink: 0;
        }
        
        #header h1 {
            font-size: clamp(1.5rem, 5vw, 3rem);
            margin: 0;
        }
        
        /* CONTENU PRINCIPAL - GALLERIE MOBILE */
        #contenu2 {
            flex: 1;
            padding: 1rem;
            max-width: 100%;
        }
        
        /* CARDS RESPONSIVES (remplace la table) */

        /* Galerie en colonne pleine largeur sur mobile */

@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem 0.5rem !important; /* 32px entre lignes, 8px entre colonnes */
    width: 100% !important;
    max-width: 95vw; /* Limite le débordement */
    margin: 0 auto !important; /* Centre parfaitement */
    padding: 0 0.5rem !important;
  }

  .photo-card {
    width: 100% !important;
    padding: 0.25rem !important;
  }

  .photo-card img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}



        .gallery {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .photo-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
            padding: 1rem;
            border-radius: 8px;
            transition: transform 0.3s ease;
        }
        

        /* LIENS CONTACT */
        .contact {
            text-align: center;
            margin: 2rem 0;
        }
        
        .contact a {
            display: inline-block;
            background: #333;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            font-weight: bold;
            transition: background 0.3s;
        }
        
        .contact a:hover {
            background: #555;
        }
        
        /* FOOTER */
        #pied {
            background: #222;
            color: white;
            text-align: center;
            padding: 1.5rem;
            flex-shrink: 0;
        }
        
        #bas {
            background: #000;
            padding: 1rem;
            text-align: center;
        }
        
        #bas img {
            height: 30px;
            margin: 0 0.5rem;
        }
        
        /* BREAKPOINTS MOBILES 2026 */

        @media (min-width: 360px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (min-width: 390px) {
            .photo-card td {
                font-size: 1.2rem;
            }
        }
        
        @media (min-width: 430px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
        }
        
        /* TABLETTE */
        @media (min-width: 768px) {
            #contenu2 {
                padding: 2rem;
                max-width: 1200px;
                margin: 0 auto;
            }
            
            .gallery {
                grid-template-columns: repeat(3, 1fr);
                gap: 2rem;
            }
            
            .photo-card {
                padding: 1.5rem;
            }
        }
        
        /* DESKTOP */
        @media (min-width: 1024px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (min-width: 1440px) {
            .gallery {
                grid-template-columns: repeat(4, 1fr);
            }
        }
