/******************************************************************************
 * Fichier : apropos.css
 * Projet  : SkinZenitude
 * Module  : About
 * Description : Mise en page et style de la page À propos / About
 ******************************************************************************/

/*=============================================================================================
  BASE
================================================================================================*/

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background: #f6f3ed;

    color: #384632;

    font-family: "Abyssinica SIL", serif;
}

body {
    overflow-x: hidden;
}


/*=============================================================================================
  PAGE
================================================================================================*/

#apropos-page {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 20px 30px 40px;

    box-sizing: border-box;
}


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

.apropos-section {
    display: grid;

    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);

    /*
     * Le panneau de verre détermine la hauteur de la ligne.
     * L'image est positionnée à l'intérieur de cette hauteur.
     */
    align-items: stretch;

    gap: 22px;

    width: 100%;

    margin: 0 auto 32px;
}

.apropos-section:last-child {
    margin-bottom: 0;
}


/*=============================================================================================
  COLONNE IMAGE
================================================================================================*/

.apropos-image {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 0;

    display: block;

    overflow: hidden;
}


/*
 * L'image est sortie du calcul de hauteur de la grille.
 *
 * Le panneau détermine donc la hauteur de la ligne.
 * L'image reçoit ensuite exactement cette hauteur.
 *
 * width: auto + height: 100%
 * = proportions originales conservées.
 */

.apropos-image > img {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    display: block;

    width: auto;
    height: 100%;

    max-width: none;
    max-height: 100%;

    object-fit: contain;

    border-radius: 2px;
}


/*=============================================================================================
  PANNEAU DE VERRE
================================================================================================*/

.apropos-glass-panel {
    box-sizing: border-box;

    width: 100%;

    padding: 18px 28px;

    background: rgba(255, 255, 255, 0.48);

    border: 1px solid rgba(255, 255, 255, 0.78);

    border-radius: 16px;

    box-shadow:
        0 8px 22px rgba(56, 70, 50, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
}


/*=============================================================================================
  TITRES
================================================================================================*/

.apropos-glass-panel h1,
.apropos-glass-panel h2 {
    margin: 0;

    color: #384632;

    font-family: "Abyssinica SIL", serif;

    font-weight: 400;

    text-align: center;
}

.apropos-glass-panel h1 {
    font-size: 1.7rem;

    line-height: 1.15;

    margin-bottom: 0;
}

.apropos-glass-panel h2 {
    font-size: 1.35rem;

    line-height: 1.2;

    margin-bottom: 8px;
}


/*=============================================================================================
  BRANCHE D'OLIVIER
================================================================================================*/

.apropos-olive {
    display: block;

    width: 220px;
    height: auto;

    margin: -18px auto -16px;

    position: relative;
    z-index: 1;
}


/*=============================================================================================
  TEXTE
================================================================================================*/

.apropos-glass-panel p {
    margin: 0 0 5px;

    color: #384632;

    font-family: "Abyssinica SIL", serif;

    font-size: 14px;

    line-height: 1.32;

    font-weight: 400;

    text-align: left;
}

.apropos-glass-panel p:last-child {
    margin-bottom: 0;
}


/*=============================================================================================
  SOUS-TITRE DU PREMIER BLOC
================================================================================================*/

.apropos-section-intro .apropos-glass-panel h2 {
    font-size: 1.2rem;

    margin-bottom: 8px;
}


/*=============================================================================================
  SIGNATURE
================================================================================================*/

.apropos-signature {
    margin-top: 10px !important;

    font-size: 1.05em !important;

    text-align: left;
}


/*=============================================================================================
  TABLETTES / MOBILE
================================================================================================*/

@media (max-width: 768px) {

    #apropos-page {
        padding: 18px 14px 35px;
    }

    /*
     * Sur mobile, les éléments sont empilés.
     * L'image redevient indépendante du panneau.
     */

    .apropos-section {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 14px;

        margin-bottom: 30px;
    }

    .apropos-image {
        position: relative;

        width: 100%;
        height: auto;
        min-height: 0;

        display: flex;

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

        overflow: visible;
    }

    .apropos-image > img {
        position: static;

        transform: none;

        width: auto;
        height: auto;

        max-width: 65%;
        max-height: 48vh;

        object-fit: contain;
    }

    .apropos-glass-panel {
        width: 100%;

        padding: 18px 20px;

        border-radius: 14px;

        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
    }

    .apropos-glass-panel h1 {
        font-size: 1.7rem;

        line-height: 1.15;

        margin-bottom: 0;
    }

    .apropos-glass-panel h2 {
        font-size: 1.25rem;

        line-height: 1.2;

        margin-bottom: 8px;
    }

    .apropos-section-intro .apropos-glass-panel h2 {
        font-size: 1.15rem;
    }

    .apropos-olive {
        width: 160px;

        margin: -12px auto -12px;
    }

    .apropos-glass-panel p {
        font-size: 14px;

        line-height: 1.32;

        margin-bottom: 5px;
    }
}


/*=============================================================================================
  PETITS CELLULAIRES
================================================================================================*/

@media (max-width: 480px) {

    #apropos-page {
        padding: 15px 10px 30px;
    }

    .apropos-section {
        gap: 12px;

        margin-bottom: 25px;
    }

    .apropos-glass-panel {
        padding: 15px 16px;

        border-radius: 12px;
    }

    .apropos-glass-panel h1 {
        font-size: 1.55rem;
    }

    .apropos-glass-panel h2 {
        font-size: 1.2rem;
    }

    .apropos-glass-panel p {
        font-size: 14px;

        line-height: 1.3;

        margin-bottom: 5px;
    }

    .apropos-olive {
        width: 140px;

        margin: -10px auto -10px;
    }
}

/*=============================================================================================
  MOBILE — OPTIMISATION FINALE
================================================================================================*/

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #apropos-page {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /*
     * L'image de Saphyia est verticale : on lui laisse davantage
     * de largeur sur téléphone pour qu'elle reste bien lisible.
     */
    .apropos-section-intro .apropos-image > img {
        width: 78%;
        max-width: 78%;
        height: auto;
        max-height: none;
    }

    /*
     * Les trois autres visuels sont horizontaux.
     * Ils peuvent utiliser presque toute la largeur disponible.
     */
    .apropos-section:not(.apropos-section-intro) .apropos-image > img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    /*
     * Ava reste liée à l'image et ne peut pas devenir disproportionnée
     * sur un petit écran.
     */
    .apropos-image > #ava {
        max-width: 58px;
        height: auto;
    }

    /*
     * Le texte respire mieux sur les petits écrans.
     */
    .apropos-glass-panel {
        box-sizing: border-box;
        width: 100%;
    }
}

@media (max-width: 480px) {

    #apropos-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .apropos-section-intro .apropos-image > img {
        width: 82%;
        max-width: 82%;
    }

    .apropos-section:not(.apropos-section-intro) .apropos-image > img {
        width: 100%;
        max-width: 100%;
    }

    .apropos-image > #ava {
        max-width: 52px;
    }
}
