
/* ==========================================================
   FLICKR PERSO — FEUILLE DE STYLE PRINCIPALE
   Fichier : app/public/style.css

   Rôle :
   - Définir l'apparence générale du site.
   - Organiser les éléments de la page d'accueil.
   - Adapter l'affichage aux ordinateurs, tablettes et mobiles.

   Organisation :
   1. Variables et couleurs
   2. Réinitialisation et règles générales
   3. En-tête et navigation
   4. Boutons
   5. Présentation principale (Hero)
   6. Galerie
   7. Albums
   8. Pied de page
   9. Adaptation aux petits écrans
   ========================================================== */



/* ==========================================================
   1. IDENTITÉ VISUELLE — PANTERAD PHOTOGRAPHIES

   Palette B : lin, olive et moutarde.
   Le fond reste clair, mais n'utilise pas de blanc froid.
   Les couleurs sont centralisées ici pour faciliter
   les modifications ultérieures.
   ========================================================== */

:root {
    /* Fonds : lin et crème */
    --color-background: #F2E8D8;
    --color-background-soft: #E9DFC9;
    --color-surface: #FBF8F2;
    --color-background-dark: #29271F;

    /* Textes : brun profond, plus chaleureux que le noir */
    --color-text: #3E392F;
    --color-text-muted: #716A5C;

    /* Couleurs de l'identité */
    --color-primary: #777852;
    --color-primary-hover: #5E6042;
    --color-accent: #D1A64D;
    --color-olive-light: #A2A078;

    /* Bordures discrètes */
    --color-border: #DED4C3;

    /* Largeur et marges de la page */
    --page-width: 1200px;
    --page-padding: 32px;

    /* Arrondis des éléments */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;

    /* Ombre légère et naturelle */
    --shadow-soft: 0 12px 35px rgba(62, 57, 47, 0.10);
}



/* ==========================================================
   LOGO PANTERAD PHOTOGRAPHIES

   Le logo est une image PNG située dans le dossier img.
   Sa largeur est limitée pour conserver un en-tête équilibré.
   La hauteur reste automatique afin de respecter ses
   proportions originales.
   ========================================================== */

.site-logo {
    display: block;
    border-radius: 8px;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Logo plus compact dans le pied de page */
.footer-logo .site-logo {
    width: 100px;
}

/* Adaptation aux petits écrans */
@media (max-width: 640px) {
    .site-logo {
        width: 155px;
    }

    .footer-logo .site-logo {
        width: 140px;
    }
}




/* ==========================================================
   2. RÉINITIALISATION ET RÈGLES GÉNÉRALES

   box-sizing: border-box simplifie le calcul des dimensions :
   les bordures et marges internes sont incluses dans la taille.
   ========================================================== */

* {
    box-sizing: border-box;
}

/* Défilement doux lors d'un clic sur un lien interne */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Apparence générale de la page */
body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);

    /* Police système : rapide et lisible sur tous les appareils */
    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

/* Les liens héritent de la couleur du texte */
a {
    color: inherit;
    text-decoration: none;
}

/* Les images ne dépassent pas leur conteneur */
img {
    display: block;
    max-width: 100%;
}

/* Titres : suppression des marges supérieures par défaut */
h1,
h2,
h3,
p {
    margin-top: 0;
}

/* Contour visible pour les utilisateurs qui naviguent au clavier */
a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}


/* ==========================================================
   3. EN-TÊTE ET NAVIGATION

   L'en-tête reste visible pendant le défilement.
   display: flex aligne le logo, le menu et le bouton.
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 82px;
    padding: 16px var(--page-padding);

    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);

    /* Léger flou derrière l'en-tête, si pris en charge */
    backdrop-filter: blur(12px);
}

/* Logo composé d'une icône et du nom du site */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: -0.6px;
}

/* Le mot Photographies est mis en évidence */
.logo strong {
    font-weight: 700;
}

/* Carré contenant la lettre F */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 11px;
    background-color: var(--color-primary);
    color: #FBF8F2;

    font-size: 21px;
    font-weight: 700;
}

/* ==========================================================
   NAVIGATION — CENTRAGE DU MENU

   Le menu est centré par rapport à la largeur de l'en-tête,
   indépendamment de la largeur du logo.
   ========================================================== */

.site-header {
    position: sticky;
}

/* Centre le menu horizontalement dans l'en-tête */
.main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}


/* Liens du menu */
.nav-link {
    position: relative;

    padding: 8px 0;
    color: var(--color-text-muted);

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

/* Couleur au survol */
.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

/* Petit trait sous la rubrique active */
.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;
    border-radius: 2px;

    background-color: var(--color-primary);
    content: "";
}


/* ==========================================================
   4. BOUTONS

   Les classes communes définissent la forme.
   Les variantes définissent les couleurs.
   ========================================================== */

.button,
.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 20px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-size: 14px;
    font-weight: 700;
    text-align: center;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Petit mouvement au survol */
.button:hover,
.header-button:hover {
    transform: translateY(-1px);
}

/* Bouton bleu principal */
.button-primary,
.header-button {
    background-color: var(--color-primary);
    color: #FBF8F2;
}

.button-primary:hover,
.header-button:hover {
    background-color: var(--color-primary-hover);
}

/* Bouton secondaire, plus discret */
.button-secondary {
    border-color: var(--color-border);
    background-color: #FBF8F2;
    color: var(--color-text);
}

.button-secondary:hover {
    border-color: #C5BBA7;
    background-color: var(--color-background-soft);
}


/* ==========================================================
   5. PRÉSENTATION PRINCIPALE — HERO

   Le Hero est la grande zone de présentation en haut de page.
   Grid crée deux colonnes : texte à gauche, image à droite.
   ========================================================== */

.hero {
    display: grid;

    /* Le texte prend un peu plus de place que l'image */
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;

    width: 100%;
    max-width: var(--page-width);
    min-height: 590px;

    margin: 0 auto;
    padding: 72px var(--page-padding);
}

/* Colonne de présentation */
.hero-content {
    max-width: 560px;
}

/* Petit texte introductif au-dessus des titres */
.eyebrow {
    margin-bottom: 16px;

    color: var(--color-primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
}

/* Grand titre de la page d'accueil */
.hero h1 {
    margin-bottom: 24px;

    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

/* Deuxième ligne du titre */
.hero h1 span {
    color: var(--color-primary);
}

/* Texte descriptif sous le titre */
.hero-description {
    max-width: 480px;
    margin-bottom: 32px;

    color: var(--color-text-muted);

    font-size: 17px;
    line-height: 1.8;
}

/* Boutons placés côte à côte */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Conteneur de la future photographie à la une */
.hero-image {
    min-width: 0;
    overflow: hidden;

    aspect-ratio: 4 / 5;
    border-radius: var(--radius-large);

    background-color: #DED9C8;
    box-shadow: var(--shadow-soft);
}

/* Placeholder affiché tant qu'aucune photo n'est installée */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    height: 100%;
    min-height: 360px;
    padding: 24px;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(255, 255, 255, 0.9),
            transparent 45%
        ),
        linear-gradient(145deg, #E9DFC9, #B9B69A);

    color: #3E392F;
    text-align: center;
}

/* Texte principal du placeholder */
.image-placeholder span {
    font-size: 17px;
    font-weight: 700;
}

/* Texte secondaire du placeholder */
.image-placeholder small {
    font-size: 13px;
    opacity: 0.8;
}


/* ==========================================================
   6. GALERIE ET SECTIONS DE CONTENU

   Les sections utilisent la même largeur maximale pour
   conserver un alignement cohérent sur toute la page.
   ========================================================== */

.content-section {
    width: 100%;
    max-width: var(--page-width);

    margin: 0 auto;
    padding: 76px var(--page-padding);
}

/* En-tête d'une section : titre à gauche, description à droite */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    margin-bottom: 36px;
}

/* Le titre de section */
.section-heading h2 {
    margin-bottom: 0;

    font-size: clamp(30px, 3vw, 40px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1.3px;
}

/* Description courte à côté du titre */
.section-description {
    max-width: 390px;
    margin-bottom: 4px;

    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Zone affichée tant que les photos ne sont pas importées */
.empty-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 280px;
    padding: 40px 24px;

    border: 1px dashed #C9BEAA;
    border-radius: var(--radius-medium);

    background-color: var(--color-background-soft);
    text-align: center;
}

/* Symbole décoratif de la galerie vide */
.empty-gallery-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin-bottom: 18px;

    border-radius: 16px;
    background-color: #E9DFC9;
    color: var(--color-primary);

    font-size: 30px;
}

/* Titre de la galerie vide */
.empty-gallery h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

/* Texte explicatif de la galerie vide */
.empty-gallery p {
    max-width: 460px;
    margin-bottom: 0;

    color: var(--color-text-muted);
    font-size: 14px;
}


/* ==========================================================
   GALERIE PUBLIQUE — MOSAÏQUE JUSTIFIÉE
   ========================================================== */

#galerie:not(.empty-gallery) {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Une rangée de photographies */
.photo-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

/* Chaque photographie conserve ses proportions */
.photo-card {
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 2px;
}

/* Image entièrement visible, sans déformation */
.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

/* Pas de titre ni de description sous les photos */
.photo-card-content {
    display: none;
}

/* ==========================================================
   7. ALBUMS

   Cette section possède un fond légèrement différent afin
   de séparer visuellement les albums de la galerie.
   ========================================================== */

.albums-section {
    max-width: none;
    padding-right: max(var(--page-padding), calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2));
    padding-left: max(var(--page-padding), calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2));

    background-color: var(--color-background-soft);
}

/* Message temporaire en attendant la création des albums */
.empty-albums {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 150px;
    padding: 28px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    background-color: #FBF8F2;
    text-align: center;
}

/* Texte de la zone des albums */
.empty-albums p {
    max-width: 500px;
    margin-bottom: 0;

    color: var(--color-text-muted);
    font-size: 14px;
}


/* ==========================================================
   8. PIED DE PAGE

   Sépare les informations générales du contenu photographique.
   ========================================================== */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    padding: 32px var(--page-padding);

    border-top: 1px solid var(--color-border);
    background-color: #FBF8F2;
}

/* Le logo du pied de page est légèrement plus petit */
.footer-logo {
    font-size: 17px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;

    border-radius: 9px;
    font-size: 18px;
}

/* Texte général du pied de page */
.site-footer p {
    margin-bottom: 0;

    color: var(--color-text-muted);
    font-size: 12px;
}

/* Copyright */
.site-footer .copyright {
    white-space: nowrap;
}


/* ==========================================================
   9. ADAPTATION AUX TABLETTES

   Une media query permet d'appliquer des règles spécifiques
   quand la largeur de l'écran est inférieure à 900 pixels.
   ========================================================== */

@media (max-width: 900px) {

    /* Réduction de l'espace entre les colonnes du Hero */
    .hero {
        gap: 36px;
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    /* Réduction de la taille du titre */
    .hero h1 {
        font-size: clamp(36px, 5vw, 48px);
        letter-spacing: -1.8px;
    }

    /* Le menu reste plus compact */
    .main-navigation {
        gap: 20px;
    }

    /* L'en-tête prend moins de place */
    .site-header {
        gap: 16px;
    }

    /* Sections un peu moins espacées */
    .content-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}


/* ==========================================================
   10. ADAPTATION AUX MOBILES

   Sous 640 pixels, les colonnes deviennent verticales.
   Les boutons et les sections sont adaptés au petit écran.
   ========================================================== */

@media (max-width: 640px) {

    :root {
        --page-padding: 20px;
    }

    /* En-tête sur deux lignes si nécessaire */
    .site-header {
        position: relative;

        flex-wrap: wrap;
        justify-content: space-between;
        gap: 14px;

        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* Logo légèrement réduit */
    .logo {
        font-size: 19px;
    }

    /* Le menu occupe toute la largeur disponible */
    .main-navigation {
        order: 3;

        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
    }

    /* Le bouton Explorer est plus compact */
    .header-button {
        min-height: 40px;
        padding: 8px 12px;

        font-size: 12px;
    }

    /* Le Hero passe sur une seule colonne */
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;

        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Titre adapté aux petits écrans */
    .hero h1 {
        font-size: clamp(36px, 10vw, 46px);
        letter-spacing: -1.5px;
    }

    /* Texte légèrement réduit */
    .hero-description {
        font-size: 15px;
    }

    /* Les boutons peuvent passer à la ligne */
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    /* Image moins haute sur mobile */
    .hero-image {
        aspect-ratio: 4 / 3;
    }

    .image-placeholder {
        min-height: 240px;
    }

    /* Les titres de section s'empilent verticalement */
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;

        margin-bottom: 26px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-description {
        font-size: 13px;
    }

    .content-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Pied de page empilé pour éviter les débordements */
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;

        padding-top: 26px;
        padding-bottom: 26px;
    }
}




/* ==========================================================
   11. ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS

   Certains utilisateurs préfèrent limiter les animations.
   On respecte leur préférence système.
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    /* Supprime les animations et défilements doux */
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   ACCUEIL — BANDEAUX HORIZONTAUX GALERIE ET ALBUMS
   ========================================================== */

.home-section {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 48px var(--page-padding);
}

/* Séparation visuelle de la galerie */
.home-gallery {
    max-width: none;
    border-top: 1px solid var(--color-border);

    background: linear-gradient(
        180deg,
        var(--color-background) 0%,
        #F6EEE2 100%
    );
}

/* Les albums disposent d'un fond plus soutenu */
.home-albums {
    max-width: none;

    padding-right: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    padding-left: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    border-top: 1px solid var(--color-border);

    background: linear-gradient(
        180deg,
        var(--color-background-soft) 0%,
        #E3D7BF 100%
    );
}

.home-section .section-heading {
    align-items: center;
    margin-bottom: 24px;
}

.home-section .section-heading h2 {
    margin-bottom: 0;
}

/* Conteneur des flèches et de la rangée horizontale */
.home-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Rangée défilante */
.home-gallery-track,
.home-albums-track {
    display: flex;
    flex: 1;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-gallery-track::-webkit-scrollbar,
.home-albums-track::-webkit-scrollbar {
    display: none;
}

/* Flèches de navigation */
/* Flèches de navigation minimalistes */
.carousel-arrow {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;
    color: var(--color-text-muted);

    font-size: 0;
    cursor: pointer;

    transition: color 0.2s ease;
}

/* Dessin de la flèche avec deux traits fins */
.carousel-arrow::before {
    content: "";
    display: block;

    width: 14px;
    height: 14px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;

    transition: border-color 0.2s ease;
}

/* Flèche gauche */
.carousel-prev::before {
    transform: rotate(-135deg);
}

/* Flèche droite */
.carousel-next::before {
    transform: rotate(45deg);
}

/* Survol discret */
.carousel-arrow:hover {
    background: transparent;
    color: var(--color-primary);
}

/* Adaptation aux petits écrans */
@media (max-width: 640px) {
    .home-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .home-carousel {
        gap: 8px;
    }

    .carousel-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .home-gallery-track,
    .home-albums-track {
        gap: 10px;
    }
}

/* ==========================================================
   ACCUEIL — HARMONISATION DES TROIS SECTIONS
   ========================================================== */

/* 1. À LA UNE : conserver la présentation actuelle,
   mais délimiter visuellement le grand pavé */

.hero {
    max-width: none;

    padding-right: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    padding-left: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background);
}


/* 2. GALERIE : bandeau pleine largeur, fond légèrement
   plus clair que celui de la présentation principale */

.home-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 48px var(--page-padding);
}

.home-gallery {
    width: 100%;
    max-width: none;

    padding-right: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    padding-left: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    border-bottom: 1px solid var(--color-border);

    background: linear-gradient(
        180deg,
        #F6EEE2 0%,
        #EFE2CC 100%
    );
}


/* 3. ALBUMS : bandeau pleine largeur, fond plus soutenu */

.home-albums {
    width: 100%;
    max-width: none;

    padding-right: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    padding-left: max(
        var(--page-padding),
        calc((100% - var(--page-width) + 2 * var(--page-padding)) / 2)
    );

    background: linear-gradient(
        180deg,
        #E9DFC9 0%,
        #E3D7BF 100%
    );
}


/* En-têtes des bandeaux */

.home-section .section-heading {
    align-items: center;
    margin-bottom: 28px;
}

.home-section .section-heading h2 {
    margin-bottom: 0;
}


/* Rangées horizontales */

.home-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.home-gallery-track,
.home-albums-track {
    display: flex;
    flex: 1;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-gallery-track::-webkit-scrollbar,
.home-albums-track::-webkit-scrollbar {
    display: none;
}


/* Flèches fines et discrètes */

.carousel-arrow {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: none;
    background: transparent;
    color: var(--color-text-muted);

    font-size: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.carousel-arrow::before {
    content: "";
    display: block;

    width: 14px;
    height: 14px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.carousel-prev::before {
    transform: rotate(-135deg);
}

.carousel-next::before {
    transform: rotate(45deg);
}

.carousel-arrow:hover {
    color: var(--color-primary-hover);
}


/* Adaptation mobile */

@media (max-width: 640px) {
    .home-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .home-carousel {
        gap: 8px;
    }

    .carousel-arrow {
        flex-basis: 28px;
        width: 28px;
        height: 36px;
    }

    .home-gallery-track,
    .home-albums-track {
        gap: 10px;
    }
}

/* ==========================================================
   ACCUEIL — ÉLARGISSEMENT DES SECTIONS GALERIE ET ALBUMS
   ========================================================== */

.home-gallery,
.home-albums {
    padding-right: 50px;
    padding-left: 50px;
}

/* Sur les écrans plus petits, on conserve des marges adaptées */
@media (max-width: 640px) {
    .home-gallery,
    .home-albums {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Boutons de la galerie et des albums sur l'accueil */
.home-gallery .section-heading .button,
.home-albums .section-heading .button {
    padding: 8px 12px;
    font-size: 12px;
}

/* Boutons principaux de l'accueil : plus discrets */
.hero .button {
    padding: 8px 18px;
    font-size: 14px;
    line-height: 1.2;
    min-height: auto;
}

/* Vignettes du bandeau aléatoire de la galerie d’accueil. */
.home-gallery-card {
    display: block;
    flex: 0 0 230px;
    height: 155px;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--color-background-soft);
    box-shadow: var(--shadow-soft);
}

.home-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-gallery-card:hover img {
    transform: scale(1.04);
}

@media (max-width: 640px) {
    .home-gallery-card {
        flex-basis: 175px;
        height: 120px;
    }
}

/* Toutes les photos ont la même hauteur et gardent leurs proportions. */
.home-gallery-track {
    --home-gallery-height: 155px;
}

.home-gallery-card {
    display: block;
    flex: 0 0 auto;
    height: var(--home-gallery-height);
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--color-background-soft);
    box-shadow: var(--shadow-soft);
}

.home-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.home-gallery-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .home-gallery-track {
        --home-gallery-height: 120px;
    }
}