/* =========================================================
   DOUBLE CONTENT
   Pages à double contenu
   ========================================================= */


/* #region Structure générale */


/*
 * Conteneur principal
 * 20px de marge sur les côtés
 */

.double-content-page {

    width: calc(100% - 40px);

    margin: 0 20px;

    box-sizing: border-box;

    color: var(--color-text);

}


/*
 * Tous les textes de la page
 */

.double-content-page p,
.double-content-page li,
.double-content-page strong {

    color: var(--color-text);

}


/*
 * Tous les titres de la page
 */

.double-content-page h1,
.double-content-page h2,
.double-content-page h3,
.double-content-page h4,
.double-content-page h5,
.double-content-page h6 {

    color: var(--color-title);

}


/*
 * Tous les liens
 */

.double-content-page a {

    color: var(--color-text);

    text-decoration: underline;

    transition: color 0.2s ease;

}


/*
 * Survol des liens
 */

.double-content-page a:hover {

    color: var(--color-primary);

}


/* #endregion */


/* #region Titre principal */


/*
 * Titre :
 * Adhésions et cotisations
 */

.double-content-title {

    color: var(--color-title);

    text-align: center;

    font-size: 32px;

    line-height: 1.2;

    margin: 30px 0 40px;

}


/* #endregion */


/* #region Introduction */


/*
 * Section d'introduction
 */

.double-content-intro {

    width: 100%;

    box-sizing: border-box;

}


/*
 * Titre de l'introduction
 */

.double-content-intro h3 {

    color: var(--color-title);

    text-align: center;

    font-size: 24px;

    line-height: 1.3;

    margin: 0 0 25px;

}


/*
 * Paragraphes
 */

.double-content-intro p {

    color: var(--color-text);

    line-height: 1.6;

    margin: 0 0 15px;

}


/* #endregion */


/* #region Séparateurs */


/*
 * Séparateur général
 */

.double-content-separator {

    border: 0;

    height: 2px;

    background-color: var(--color-primary);

    margin: 30px auto;

    width: 90%;

}


/*
 * Séparateur pleine largeur
 */

.double-content-separator-full {

    width: 100%;

}


/* #endregion */


/* #region Colonnes */


/*
 * Conteneur des deux zones
 */

.double-content-columns {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 30px;

    align-items: stretch;

    width: 100%;

    margin: 0;

    box-sizing: border-box;

}


/* #endregion */


/* #region Zones */


/*
 * Chaque zone
 */

.double-content-zone {

    position: relative;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    width: 100%;

    padding: 30px;

    background-color: var(--color-bg);

    border: 2px solid var(--color-primary);

    border-radius: 10px;

}


/*
 * Titres des zones
 */

.double-content-zone h3 {

    color: var(--color-title);

    text-align: center;

    font-size: 22px;

    line-height: 1.3;

    margin: 0 0 25px;

}


/*
 * Paragraphes des zones
 */

.double-content-zone p {

    color: var(--color-text);

    line-height: 1.6;

    margin: 0 0 15px;

}


/*
 * Listes
 */

.double-content-zone ul {

    margin: 0 0 20px;

    padding-left: 25px;

}


/*
 * Éléments des listes
 */

.double-content-zone li {

    color: var(--color-text);

    line-height: 1.5;

    margin-bottom: 10px;

}


/*
 * Dernier élément de liste
 */

.double-content-zone li:last-child {

    margin-bottom: 0;

}


/*
 * Liens des zones
 */

.double-content-zone a {

    color: var(--color-text);

    text-decoration: underline;

    transition: color 0.2s ease;

}


/*
 * Survol des liens
 */

.double-content-zone a:hover {

    color: var(--color-primary);

}


/* #endregion */


/* #region Nouvelle adhésion */


/*
 * Liste des documents
 *
 * Réduction des espaces spécifiques
 * à la carte "Nouvel adhérent"
 */

.double-content-zone-2 ul {

    margin: 0 0 20px;

    padding-left: 25px;

}


/*
 * Éléments de la liste
 */

.double-content-zone-2 li {

    line-height: 1.4;

    margin-bottom: 8px;

}


/*
 * Dernier élément de la liste
 */

.double-content-zone-2 li:last-child {

    margin-bottom: 0;

}


/*
 * Titre :
 * Séance d'essai gratuite
 */

.double-content-zone-2 h4 {

    color: var(--color-title);

    font-size: 20px;

    line-height: 1.3;

    margin: 20px 0 10px;

}


/*
 * Paragraphes d'information
 */

.double-content-zone-2 p {

    color: var(--color-text);

    line-height: 1.5;

    margin: 0 0 10px;

}


/*
 * Dernier paragraphe
 */

.double-content-zone-2 p:last-child {

    margin-bottom: 0;

}


/* #endregion */


/* #region Vidéo */


/*
 * Conteneur vidéo
 */

.double-content-video {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin-top: 25px;

    overflow: hidden;

}


/*
 * Vidéo YouTube
 */

.double-content-video iframe {

    display: block;

    width: 100%;

    height: 100%;

    border: 0;

    border-radius: 6px;

}


/* #endregion */


/* #region Contenu commun */


/*
 * Section contenant les informations communes
 */

.double-content-common {

    width: 100%;

    box-sizing: border-box;

}


/*
 * Paragraphes
 */

.double-content-common p {

    color: var(--color-text);

    line-height: 1.6;

    margin: 0 0 15px;

}


/*
 * Texte important
 */

.double-content-common strong {

    color: var(--color-text);

}


/*
 * Listes
 */

.double-content-common ul {

    margin: 15px 0 20px;

    padding-left: 25px;

}


/*
 * Éléments des listes
 */

.double-content-common li {

    color: var(--color-text);

    line-height: 1.5;

    margin-bottom: 12px;

}


/*
 * Liens
 */

.double-content-common a {

    color: var(--color-text);

    text-decoration: underline;

    transition: color 0.2s ease;

}


/*
 * Survol des liens
 */

.double-content-common a:hover {

    color: var(--color-primary);

}


/* #endregion */


/* #region Image commune */


/*
 * Section image
 */

.double-content-image {

    width: 100%;

    box-sizing: border-box;

}


/*
 * Conteneur des images
 */

.double-content-image picture {

    display: block;

    width: 100%;

}


/*
 * Images
 */

.double-content-image img {

    display: block;

    width: 100%;

    height: auto;

    margin: 0 auto;

    border-radius: 8px;

}


/*
 * Par défaut :
 * affichage de l'image du mode clair
 */

.double-content-image-dark {

    display: none !important;

}


/*
 * Mode sombre :
 * on cache l'image claire
 * et on affiche l'image sombre
 */

html[data-theme="dark"] .double-content-image-light {

    display: none !important;

}


html[data-theme="dark"] .double-content-image-dark {

    display: block !important;

}


/* #endregion */


/* =========================================================
   RESPONSIVE — MOBILE
   Pages à double contenu
   ========================================================= */


@media screen and (max-width: 767px) {


    /* #region Structure générale */


    .double-content-page {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        margin: 0;

        padding-left: 5px;

        padding-right: 5px;

        box-sizing: border-box;

        overflow-x: hidden;

    }


    /* #endregion */


    /* #region Titre principal */


    .double-content-title {

        font-size: 26px;

        line-height: 1.2;

        margin: 25px 0 30px;

    }


    /* #endregion */


    /* #region Introduction */


    .double-content-intro {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;

    }


    .double-content-intro h3 {

        font-size: 21px;

        line-height: 1.3;

    }


    .double-content-intro p {

        overflow-wrap: anywhere;

        word-break: break-word;

    }


    /* #endregion */


    /* #region Séparateurs */


    .double-content-separator {

        width: 90%;

        max-width: 100%;

    }


    .double-content-separator-full {

        width: 100%;

    }


    /* #endregion */


    /* #region Zones Renouvellement / Nouvel adhérent */


    /*
     * Passage des deux zones en une seule colonne
     *
     * Ordre :
     * 1. Renouvellement de licence
     * 2. Nouvel adhérent
     */

    .double-content-columns {

        display: flex;

        flex-direction: column;

        width: 100%;

        max-width: 100%;

        min-width: 0;

        gap: 20px;

        box-sizing: border-box;

    }


    /*
     * Chaque zone garde sa bordure
     */

    .double-content-zone {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        padding: 20px;

        box-sizing: border-box;

        border: 2px solid var(--color-primary);

        border-radius: 10px;

    }


    /*
     * Ordre explicite
     */

    .double-content-zone-1 {

        order: 1;

    }


    .double-content-zone-2 {

        order: 2;

    }


    /* #endregion */


    /* #region Titres des zones */


    .double-content-zone h3 {

        font-size: 20px;

        line-height: 1.3;

        margin: 0 0 20px;

    }


    .double-content-zone h4 {

        font-size: 18px;

    }


    /* #endregion */


    /* #region Listes */


    .double-content-zone ul {

        max-width: 100%;

        box-sizing: border-box;

        padding-left: 25px;

    }


    .double-content-zone li {

        overflow-wrap: anywhere;

        word-break: break-word;

    }


    /* #endregion */


    /* #region Vidéo */


    .double-content-video {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        aspect-ratio: 16 / 9;

        box-sizing: border-box;

        overflow: hidden;

    }


    .double-content-video iframe {

        display: block;

        width: 100%;

        max-width: 100%;

        height: 100%;

        border: 0;

    }


    /* #endregion */


    /* #region Contenu commun */


    .double-content-common {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;

    }


    .double-content-common p,

    .double-content-common li {

        overflow-wrap: anywhere;

        word-break: break-word;

    }


    .double-content-common ul {

        padding-left: 25px;

    }


    /* #endregion */


    /* #region Image */


    .double-content-image {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;

        overflow: hidden;

    }


    .double-content-image picture {

        display: block;

        width: 100%;

        max-width: 100%;

        min-width: 0;

    }


    .double-content-image img {

        display: block;

        width: 100%;

        max-width: 100%;

        height: auto;

        margin: 0 auto;

        box-sizing: border-box;

        border-radius: 8px;

        object-fit: contain;

    }


    /* #endregion */


}
