/*
|--------------------------------------------------------------------------
|   public/css/realisations.css
|--------------------------------------------------------------------------
|
|   Captures en grand format, la réalisation vedette de l'accueil et la
|   page « Mes réalisations ».
|
|   À charger APRÈS galerie.css : les captures restent des .vignette
|   (la visionneuse les reconnaît à cette classe), et on en défait ici
|   le format timbre-poste.
*/

/* --- Une capture en grand ---
   Un cadre de navigateur autour de l'image : on comprend tout de suite
   que c'est une application web, et la bordure ne coupe pas l'interface. */
.galerie-grande {
    display: grid;
    gap: 2.5rem;
}

.capture-grande {
    margin: 0;
}

.capture-grande .vignette {
    width: 100%;
    background: var(--nuit-2);
    border-color: var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre-forte);
}

.capture-grande .vignette:hover {
    transform: translateY(-3px);
}

.capture-grande .capture-barre {
    /* Le sélecteur porte .capture-grande : galerie.css habille déjà
       tout « .vignette span » en légende blanche. */
    display: flex;
    gap: .4375rem;
    padding: .625rem .875rem;
    background: var(--nuit-2);
    border-top: 0;
}

.capture-barre i {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    display: block;
}

.capture-barre i:nth-child(1) {
    background: var(--orange);
}

.capture-barre i:nth-child(2) {
    background: var(--or);
}

.capture-barre i:nth-child(3) {
    background: var(--teal);
}

/* L'image entière, à ses proportions : plus de recadrage. Les
   attributs width / height du HTML donnent le ratio, height:auto
   l'applique. */
.capture-grande .vignette img {
    width: 100%;
    height: auto;
    object-fit: initial;
    background: #fff;
}

.capture-grande figcaption {
    margin-top: .75rem;
    font-family: var(--police-code);
    font-size: .8125rem;
    color: var(--gris);
}

.capture-grande figcaption::before {
    content: "// ";
    color: var(--gris-clair);
}

/* ================================================================
   ACCUEIL : la réalisation vedette
   ================================================================ */
.projet-vedette {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 1.5rem;
}

.projet-vedette-texte {
    padding: .5rem .5rem .5rem 0;
}

.projet-vedette-texte h3 {
    font-size: 1.375rem;
}

.projet-vedette-suite {
    margin: 1.75rem 0 0;
}

/* Les textes des réalisations sont justifiés, à l'accueil comme sur la
   page « Mes réalisations » : le récit avant / après. Pas le résumé
   sous le titre : en gros caractères sur deux lignes, la justification
   y creusait de grands trous entre les mots. Un bloc aux deux bords droits se lit plus
   posément qu'un bord droit en dents de scie. La césure (lang="fr" sur
   <html>) évite les grands blancs entre les mots que la justification
   creuse sinon. */
.etape-projet p:not(.etiquette) {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* ================================================================
   PAGE « MES RÉALISATIONS »
   ================================================================ */
.page-entete {
    padding: 5rem 0 4rem;
}

.page-entete h1 {
    margin-bottom: 1rem;
}

.sommaire-projets {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    margin-top: 2rem;
}

.sommaire-projets a {
    font-family: var(--police-code);
    font-size: .8125rem;
    padding: .375rem .875rem;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / .15);
    text-decoration: none;
}

.fond-sombre .sommaire-projets a {
    color: #c9cfdd;
}

.fond-sombre .sommaire-projets a:hover {
    color: #fff;
    border-color: var(--teal-vif);
}

.realisation-entete {
    max-width: 46rem;
    margin-bottom: 1rem;
}

/* Avant et Aujourd'hui côte à côte, au-dessus des captures : on lit
   l'histoire, puis on la voit. */
.realisation-recit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    margin-bottom: 3rem;
}

.realisation-appel {
    text-align: center;
}

.realisation-appel .accroche {
    margin: 0 auto 2rem;
}

@media (max-width: 64rem) {
    .projet-vedette {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projet-vedette-texte {
        padding: 0 .25rem;
    }
}

@media (max-width: 48rem) {
    .galerie-grande {
        gap: 1.75rem;
    }

    .capture-grande .capture-barre {
        padding: .4375rem .625rem;
    }

    .capture-barre i {
        width: .5rem;
        height: .5rem;
    }

    .projet-vedette {
        padding: 1rem;
    }

    .page-entete {
        padding: 3.5rem 0 3rem;
    }

    .realisation-recit {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    .projet-vedette-suite .bouton {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .capture-grande .vignette:hover {
        transform: none;
    }
}