/* ==========================================================
   FRANCIS HUBIN
   Feuille de style commune
   Compatible avec index.html et peintures.html
========================================================== */


/* ==========================================================
   RÉGLAGES GÉNÉRAUX
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;

    color: #333;
    background: #f7f5f2;

    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ==========================================================
   EN-TÊTE COMMUN
========================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(247, 245, 242, 0.97);
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(8px);
}


/* Logo présent sur les pages intérieures */

.logo {
    padding: 14px 20px 4px;

    text-align: center;
}

.logo a {
    color: #302d2a;

    font-size: 25px;
    font-weight: normal;
    letter-spacing: 3px;

    text-decoration: none;
    text-transform: uppercase;
}


/* Navigation de l'index et des pages intérieures */

nav {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 14px 25px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px 26px;
}


/* Liste présente dans peintures.html */

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px 26px;

    list-style: none;
}


/* Liens directs de l'index et liens contenus dans la liste */

nav a {
    position: relative;

    display: inline-block;

    padding: 4px 0;

    color: #45413d;

    font-size: 16px;
    text-decoration: none;

    transition: color 0.25s ease;
}

nav a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;

    height: 1px;

    background: #8a684d;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

nav a:hover,
nav a.active {
    color: #7a5c45;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}


/* ==========================================================
   PAGE D'ACCUEIL
========================================================== */

.hero {
    position: relative;

    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);

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

    padding: 60px 25px;

    overflow: hidden;

    background-image:
        url("../img/sculptures/20190224_175102_edited_edited.jpg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    text-align: center;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.28);
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 950px;

    color: white;
}

.hero h1 {
    margin-bottom: 20px;

    font-size: clamp(42px, 8vw, 78px);
    font-weight: normal;
    letter-spacing: clamp(3px, 1vw, 7px);
    line-height: 1.1;
}

.hero h2 {
    margin-bottom: 38px;

    font-size: clamp(20px, 3vw, 30px);
    font-weight: normal;
    line-height: 1.4;
}

.bouton {
    display: inline-block;

    padding: 14px 30px;

    color: white;

    border: 2px solid white;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.bouton:hover {
    color: #333;
    background: white;
}


/* Texte sous l'image de l'accueil */

body > main {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 70px 30px;
}

body > main > h2 {
    margin-bottom: 16px;

    color: #302d2a;

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


/* ==========================================================
   TITRE DE LA PAGE PEINTURES
========================================================== */

.page-title {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;
    padding: 20px 20px 65px;

    text-align: center;
}

.page-title .sur-titre {
    margin-bottom: 8px;

    color: #8a684d;

    font-size: 13px;
    letter-spacing: 4px;

    text-transform: uppercase;
}

.page-title h1 {
    margin-bottom: 22px;

    color: #302d2a;

    font-size: clamp(48px, 8vw, 80px);
    font-weight: normal;
    line-height: 1.05;
}

.page-title > p:last-child {
    max-width: 730px;

    margin: 0 auto;

    color: #625e59;

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


/* ==========================================================
   GALERIE DE PEINTURES
========================================================== */

.gallery {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

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

    gap: 42px 28px;
}

.gallery-item {
    min-width: 0;

    overflow: hidden;

    background: #fff;
    border: 1px solid rgba(51, 51, 51, 0.09);
    box-shadow: 0 12px 35px rgba(36, 31, 27, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);

    box-shadow: 0 17px 42px rgba(36, 31, 27, 0.15);
}

.gallery-item > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 390px;

    padding: 12px;

    overflow: hidden;

    background: #e8e4df;

    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: contain;

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

.gallery-item > a:hover img {
    transform: scale(1.025);
    filter: brightness(0.96);
}

.gallery-item figcaption {
    padding: 22px 20px 26px;

    color: #4b4743;

    font-size: 15px;
    text-align: center;
}

.gallery-item h3 {
    margin-bottom: 14px;

    color: #302d2a;

    font-size: 22px;
    font-weight: normal;
    line-height: 1.3;
}

.gallery-item h4 {
    margin: 15px 0 9px;

    color: #4a4540;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.4;
}

.gallery-item p {
    margin: 5px 0;
}

.gallery-item hr {
    width: 65%;

    margin: 20px auto;

    border: 0;
    border-top: 1px solid rgba(51, 51, 51, 0.18);
}

.gallery-item .prix {
    margin-top: 15px;

    color: #7a5c45;

    font-size: 19px;
    font-weight: bold;
}


/* Icône de lecture de la vidéo */

.fa-circle-play {
    margin-right: 5px;

    color: #8a684d;
}


/* ==========================================================
   PIED DE PAGE
========================================================== */

footer {
    margin-top: 30px;
    padding: 35px 20px;

    color: #77716b;

    border-top: 1px solid rgba(51, 51, 51, 0.12);

    font-size: 14px;
    text-align: center;
}

/* ==========================================================
   TRIPTYQUE
========================================================== */

.gallery-item-triptyque {
    grid-column: span 3;
}

.triptyque-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    padding: 18px;

    background: #e8e4df;
}

.triptyque-images a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    height: 360px;

    overflow: hidden;

    background: #ddd8d2;
}

.triptyque-images img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

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

.triptyque-images a:hover img {
    transform: scale(1.025);
    filter: brightness(0.96);
}

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

@media (max-width: 1000px) {

    nav,
    nav ul {
        gap: 8px 20px;
    }

    nav a {
        font-size: 15px;
    }

    body > main {
        padding-right: 25px;
        padding-left: 25px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item > a {
        height: 380px;
    }
    .gallery-item-triptyque {
        grid-column: span 2;
    }

    .triptyque-images a {
        height: 300px;
    }
}


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

@media (max-width: 650px) {

    .logo {
        padding-top: 12px;
    }

    .logo a {
        font-size: 20px;
        letter-spacing: 2px;
    }

    nav {
        padding: 10px 12px 14px;

        gap: 5px 14px;
    }

    nav ul {
        gap: 5px 14px;
    }

    nav a {
        padding: 3px 0;

        font-size: 13px;
    }

    .hero {
        min-height: 78vh;
        min-height: 78svh;

        padding: 45px 20px;
    }

    .hero h1 {
        margin-bottom: 15px;

        font-size: clamp(38px, 13vw, 56px);
        letter-spacing: 3px;
    }

    .hero h2 {
        margin-bottom: 30px;

        font-size: 20px;
    }

    .bouton {
        padding: 12px 22px;
    }

    body > main {
        padding: 50px 18px;
    }

    .page-title {
        padding: 10px 4px 45px;
    }

    .page-title h1 {
        font-size: 48px;
    }

    .page-title > p:last-child {
        font-size: 16px;
        line-height: 1.7;
    }

    .gallery {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item > a {
        height: auto;
        min-height: 260px;
        max-height: 520px;

        padding: 10px;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        max-height: 500px;

        object-fit: contain;
    }

    .gallery-item figcaption {
        padding: 20px 16px 24px;
    }

    .gallery-item h3 {
        font-size: 21px;
    }
    .gallery-item-triptyque {
        grid-column: span 1;
    }

    .triptyque-images {
        grid-template-columns: 1fr;
    }

    .triptyque-images a {
        width: 100%;
        height: auto;
        min-height: 260px;
        max-height: 500px;
    }

    .triptyque-images img {
        width: 100%;
        height: auto;
        max-height: 480px;
    }
}


/* ==========================================================
   TRÈS PETITS ÉCRANS
========================================================== */

@media (max-width: 390px) {

    nav,
    nav ul {
        gap: 4px 11px;
    }

    nav a {
        font-size: 12px;
    }

    .logo a {
        font-size: 18px;
    }

    .page-title h1 {
        font-size: 42px;
    }
}