/******************************************************************************
 * Fichier : about.css
 * Projet  : SkinZenitude
 * Module  : About
 * Description : Mise en page et style de la page About / 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
================================================================================================*/

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

    margin: 0 auto;

    padding: 20px 30px 40px;

    box-sizing: border-box;
}


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

.about-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;
}

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


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

.about-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.
 */

.about-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
================================================================================================*/

.about-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
================================================================================================*/

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

    color: #384632;

    font-family: "Abyssinica SIL", serif;

    font-weight: 400;

    text-align: center;
}

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

    line-height: 1.15;

    margin-bottom: 0;
}

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

    line-height: 1.2;

    margin-bottom: 8px;
}


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

.about-olive {
    display: block;

    width: 220px;
    height: auto;

    margin: -18px auto -16px;

    position: relative;
    z-index: 1;
}


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

.about-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;
}

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


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

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

    margin-bottom: 8px;
}


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

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

    font-size: 1.05em !important;

    text-align: left;
}


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

@media (max-width: 768px) {

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

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

    .about-section {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 14px;

        margin-bottom: 30px;
    }

    .about-image {
        position: relative;

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

        display: flex;

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

        overflow: visible;
    }

    .about-image > img {
        position: static;

        transform: none;

        width: auto;
        height: auto;

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

        object-fit: contain;
    }

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

        padding: 18px 20px;

        border-radius: 14px;

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

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

        line-height: 1.15;

        margin-bottom: 0;
    }

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

        line-height: 1.2;

        margin-bottom: 8px;
    }

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

    .about-olive {
        width: 160px;

        margin: -12px auto -12px;
    }

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

        line-height: 1.32;

        margin-bottom: 5px;
    }
}


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

@media (max-width: 480px) {

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

    .about-section {
        gap: 12px;

        margin-bottom: 25px;
    }

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

        border-radius: 12px;
    }

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

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

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

        line-height: 1.3;

        margin-bottom: 5px;
    }

    .about-olive {
        width: 140px;

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

/*=============================================================================================
  OPTIMISATION CELL — SkinZenitude EN
================================================================================================*/

@media (max-width: 767px) {

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

    #about-page {
        width: 100%;
        max-width: 560px;
        padding:
            max(12px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            calc(28px + env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .about-section {
        width: 100%;
        gap: 14px;
        margin-bottom: 28px;
    }

    .about-image {
        width: 100%;
        min-height: 0;
    }

    .about-image > img {
        width: auto;
        height: auto;
        max-width: 88%;
        max-height: none;
        object-fit: contain;
    }

    /* The first portrait of Saphyia benefits from a larger presence. */
    .about-section-intro .about-image > img {
        max-width: 78%;
    }

    .about-glass-panel {
        padding: 18px 18px;
        border-radius: 16px;
    }

    .about-glass-panel h1 {
        font-size: clamp(1.45rem, 6.2vw, 1.7rem);
    }

    .about-glass-panel h2 {
        font-size: clamp(1.12rem, 5vw, 1.3rem);
    }

    .about-glass-panel p {
        font-size: 15px;
        line-height: 1.48;
        margin-bottom: 8px;
    }

    .about-olive {
        width: min(180px, 55vw);
        margin: -12px auto -10px;
    }
}

@media (max-width: 480px) {

    #about-page {
        padding-left: 9px;
        padding-right: 9px;
    }

    .about-section {
        gap: 11px;
        margin-bottom: 24px;
    }

    .about-image > img {
        max-width: 94%;
    }

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

    .about-glass-panel {
        padding: 16px 15px;
        border-radius: 14px;
    }

    .about-glass-panel p {
        font-size: 15px;
        line-height: 1.46;
    }
}
