/* ======================================================
   FRANCIS HUBIN
   DESSINS & CARICATURES
====================================================== */


.page-dessins {
    background: #f7f5f2;
}


/* ======================================================
   CONTENU
====================================================== */

.dessins-main {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}


/* ======================================================
   INTRODUCTION
====================================================== */

.dessins-introduction {
    max-width: 900px;

    margin: 0 auto;

    padding:
        clamp(75px, 10vw, 125px)
        30px
        85px;

    text-align: center;
}


.dessins-introduction h1 {
    margin: 0 0 20px;

    color: #302d2a;

    font-size: clamp(48px, 8vw, 86px);
    font-weight: normal;

    line-height: 1.05;
}


.dessins-introduction > p:not(.sur-titre) {
    max-width: 760px;

    margin: 0 auto;

    color: #625e59;

    font-size: 20px;
    line-height: 1.8;
}


.dessins-introduction .intro-secondaire {
    margin-top: 22px !important;

    font-size: 17px !important;
}


/* ======================================================
   SECTIONS
====================================================== */

.section-dessins {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto;

    padding:
        20px
        35px
        120px;
}


.titre-section {
    max-width: 780px;

    margin: 0 auto 60px;

    text-align: center;
}


.titre-section h2 {
    margin: 0 0 18px;

    color: #302d2a;

    font-size: clamp(37px, 5vw, 58px);
    font-weight: normal;

    line-height: 1.1;
}


.titre-section > p:not(.sur-titre) {
    color: #6a655f;

    font-size: 17px;
    line-height: 1.8;
}


/* ======================================================
   ARTISTES REVISITÉS
====================================================== */

.mur-artistes {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: start;

    gap: 55px 32px;
}


.carte-artiste {
    margin: 0;

    min-width: 0;
}


.carte-artiste > a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 380px;
    max-height: 560px;

    overflow: hidden;

    background: #e9e5df;

    box-shadow:
        0 13px 36px
        rgba(40, 34, 29, 0.11);
}


.carte-artiste img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 560px;

    object-fit: contain;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}


.carte-artiste a:hover img {
    transform: scale(1.025);

    filter: brightness(0.96);
}


.carte-artiste figcaption {
    padding: 20px 8px 0;

    text-align: center;
}


.carte-artiste h3 {
    margin: 0 0 10px;

    color: #302d2a;

    font-size: 24px;
    font-weight: normal;
}


.carte-artiste p {
    margin: 0;

    color: #625e59;

    font-size: 15px;
    line-height: 1.65;
}


/* ======================================================
   ACADÉMIE
====================================================== */

.section-academie {
    max-width: none;

    padding-top: 100px;

    background: #eeeae5;
}


.section-academie .titre-section,
.section-academie .grille-academie {
    max-width: 1260px;

    margin-right: auto;
    margin-left: auto;
}


.grille-academie {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 45px 28px;
}


.carte-academie {
    margin: 0;

    overflow: hidden;

    background: white;

    border:
        1px solid
        rgba(48, 45, 42, 0.08);

    box-shadow:
        0 12px 32px
        rgba(40, 34, 29, 0.08);
}


.carte-academie > a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 400px;

    overflow: hidden;

    background: #ded9d3;
}


.carte-academie img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.4s ease;
}


.carte-academie a:hover img {
    transform: scale(1.025);
}


.carte-academie figcaption {
    padding: 22px;

    text-align: center;
}


.carte-academie h3 {
    margin: 0 0 8px;

    font-size: 22px;
    font-weight: normal;
}


.carte-academie p {
    margin: 0;

    color: #68625c;

    font-size: 15px;
    line-height: 1.6;
}


.carte-large {
    grid-column: span 2;
}


/* ======================================================
   PANORAMIQUES
====================================================== */

.panoramiques {
    padding-top: 105px;
}


.videos-panorama {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 35px;
}


.video-panorama {
    min-width: 0;

    padding: 25px;

    background: #302d2a;

    box-shadow:
        0 15px 42px
        rgba(32, 27, 23, 0.16);
}


.video-panorama h3 {
    margin: 0 0 18px;

    color: white;

    font-size: 22px;
    font-weight: normal;
}


.video-panorama video {
    display: block;

    width: 100%;
    height: auto;

    background: black;
}


/* ======================================================
   PERSONNALITÉS
====================================================== */

.section-personnalites {
    max-width: none;

    padding-top: 105px;

    background: #eeeae5;
}


.section-personnalites .titre-section,
.section-personnalites .grille-personnalites {
    max-width: 1260px;

    margin-right: auto;
    margin-left: auto;
}


.grille-personnalites {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 45px 30px;
}


.carte-personnalite {
    margin: 0;

    background: white;

    box-shadow:
        0 12px 32px
        rgba(40, 34, 29, 0.08);
}


.carte-personnalite > a {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 390px;

    overflow: hidden;

    background: #ddd8d2;
}


.carte-personnalite img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.4s ease;
}


.carte-personnalite a:hover img {
    transform: scale(1.025);
}


.carte-personnalite figcaption {
    padding: 22px;

    text-align: center;
}


.carte-personnalite h3 {
    margin: 0 0 8px;

    font-size: 22px;
    font-weight: normal;
}


.carte-personnalite p {
    margin: 0;

    color: #68625c;

    font-size: 15px;
    line-height: 1.6;
}


/* ======================================================
   TABLETTE
====================================================== */

@media (max-width: 1000px) {

    .mur-artistes,
    .grille-academie,
    .grille-personnalites {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .carte-large {
        grid-column: span 2;
    }


    .videos-panorama {
        grid-template-columns: 1fr;
    }

}


/* ======================================================
   TÉLÉPHONE
====================================================== */

@media (max-width: 650px) {

    .dessins-introduction {
        padding:
            60px
            20px
            65px;
    }


    .dessins-introduction > p:not(.sur-titre) {
        font-size: 17px;
    }


    .section-dessins {
        padding:
            10px
            18px
            80px;
    }


    .titre-section {
        margin-bottom: 40px;
    }


    .titre-section > p:not(.sur-titre) {
        font-size: 16px;
    }


    .mur-artistes,
    .grille-academie,
    .grille-personnalites {
        grid-template-columns: 1fr;
    }


    .carte-artiste > a {
        min-height: 280px;
    }


    .carte-academie > a,
    .carte-personnalite > a {
        height: auto;

        min-height: 280px;
        max-height: 520px;
    }


    .carte-academie img,
    .carte-personnalite img {
        height: auto;

        max-height: 500px;
    }


    .carte-large {
        grid-column: span 1;
    }


    .section-academie,
    .section-personnalites,
    .panoramiques {
        padding-top: 75px;
    }


    .video-panorama {
        padding: 15px;
    }

}

/* ======================================================
   CORRECTIONS — DESSINS & CARICATURES
====================================================== */


/* ------------------------------------------------------
   1. EMPÊCHER LES TITRES DE RESTER FIXES AU DÉFILEMENT
------------------------------------------------------ */

.page-dessins .titre-section,
.page-dessins .dessins-introduction,
.page-dessins .section-dessins .titre-section {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    z-index: auto !important;

    transform: none !important;
}


/* ------------------------------------------------------
   2. RÉDUIRE LES GROS ESPACES ENTRE LES SECTIONS
------------------------------------------------------ */

.page-dessins .section-dessins {
    padding-top: 55px !important;
    padding-bottom: 65px !important;
}

.page-dessins .section-dessins + .section-dessins {
    margin-top: 0 !important;
}


/* Titres des sections : moins de vide en dessous */

.page-dessins .titre-section {
    margin-bottom: 38px !important;
}


/* ------------------------------------------------------
   3. BLOCS ACADÉMIE / PERSONNALITÉS / PANORAMIQUES
------------------------------------------------------ */

.page-dessins .section-academie,
.page-dessins .section-personnalites,
.page-dessins .panoramiques {
    padding-top: 60px !important;
    padding-bottom: 65px !important;
}


/* ------------------------------------------------------
   4. RÉDUIRE L'ESPACE ENTRE LES CARTES ET LA SECTION SUIVANTE
------------------------------------------------------ */

.page-dessins .mur-artistes,
.page-dessins .grille-academie,
.page-dessins .grille-personnalites,
.page-dessins .videos-panorama {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------
   TÉLÉPHONE
------------------------------------------------------ */

@media (max-width: 650px) {

    .page-dessins .section-dessins,
    .page-dessins .section-academie,
    .page-dessins .section-personnalites,
    .page-dessins .panoramiques {
        padding-top: 40px !important;
        padding-bottom: 45px !important;
    }

    .page-dessins .titre-section {
        margin-bottom: 28px !important;
    }

}

