/* =========================================================
   AGAPE SHOP — GLOBAL
   ========================================================= */


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;
    padding: 0;

    background: var(--color-white-soft);
    color: var(--color-black);

    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

.main-content {
    width: 100%;
    min-height: 60vh;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   TITRES
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--color-black);

    font-family: var(--font-heading);
    font-weight: 700;

    line-height: 1.2;
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}


/* =========================================================
   PARAGRAPHES
   ========================================================= */

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
}


/* =========================================================
   LIENS
   ========================================================= */

a {
    color: var(--color-black);
    text-decoration: none;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

a:hover {
    color: var(--color-red);
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: var(--color-red);
    color: var(--color-white);
}


/* =========================================================
   TEXTE UTILITAIRE
   ========================================================= */

.text-red {
    color: var(--color-red);
}

.text-black {
    color: var(--color-black);
}

.text-white {
    color: var(--color-white);
}

.text-night {
    color: var(--color-night);
}


/* =========================================================
   FOND UTILITAIRE
   ========================================================= */

.bg-red {
    background: var(--color-red);
}

.bg-black {
    background: var(--color-black);
}

.bg-night {
    background: var(--color-night);
}

.bg-white {
    background: var(--color-white);
}


/* =========================================================
   ESPACEMENTS
   ========================================================= */

.section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 3px;
}