/* =====================================================
   REC°LIVE — DESIGN SYSTEM GLOBAL
   À CHARGER SUR TOUTES LES PAGES

   Ce fichier contient :
   01. Variables
   02. Reset général
   03. Socle commun
   04. Boutons communs
   05. Accessibilité
===================================================== */


/* =====================================================
   01 — VARIABLES
===================================================== */

:root {
    /* Couleurs principales */
    --rec-black: #0b0b0b;
    --rec-black-soft: #151515;

    --rec-white: #ffffff;
    --rec-white-soft: #f7f7f4;

    --rec-grey: #666157;
    --rec-grey-muted: #8b8579;
    --rec-grey-light: #deded8;

    --rec-gold: #c8a24a;
    --rec-gold-dark: #8e6b1f;
    --rec-gold-soft: rgba(200, 162, 74, 0.12);

    /* Fonds */
    --rec-bg: #f7f4ed;
    --rec-bg-soft: #efe8d9;
    --rec-surface: rgba(255, 255, 255, 0.74);
    --rec-surface-solid: #ffffff;

    /* Bordures */
    --rec-border: rgba(23, 22, 18, 0.1);
    --rec-border-gold: rgba(200, 162, 74, 0.3);

    /* Largeurs */
    --rec-hero-container: 1440px;
    --rec-content-container: 1180px;

    /* Rayons */
    --rec-radius-small: 15px;
    --rec-radius-medium: 24px;
    --rec-radius-large: 34px;

    /* Ombres */
    --rec-shadow:
        0 24px 70px
        rgba(54, 45, 28, 0.08);

    --rec-shadow-hover:
        0 34px 95px
        rgba(54, 45, 28, 0.14);

    /* Animation */
    --rec-transition:
        0.38s
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =====================================================
   02 — RESET GÉNÉRAL
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    color: var(--rec-black);
    background: transparent;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


body.menu-open {
    overflow: hidden;
}


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


a {
    color: inherit;
    text-decoration: none;
}


a,
button,
input,
textarea,
select {
    font: inherit;
}


button,
input,
textarea,
select {
    color: inherit;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline:
        3px solid
        rgba(200, 162, 74, 0.5);

    outline-offset: 4px;
}


/* =====================================================
   03 — SOCLE COMMUN
===================================================== */

#main-content {
    width: 100%;
    overflow-x: clip;
}


.home-container,
.solutions-container,
.realisation-container,
.contact-container,
.system-container {
    width:
        min(
            calc(100% - 48px),
            var(--rec-content-container)
        );

    margin-inline: auto;
}


/* =====================================================
   04 — BOUTONS COMMUNS
===================================================== */

#main-content .btn,
#main-content .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding:
        13px
        23px;

    border:
        1px solid transparent;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 750;
    line-height: 1;

    text-align: center;

    transition:
        color var(--rec-transition),
        background-color var(--rec-transition),
        border-color var(--rec-transition),
        box-shadow var(--rec-transition),
        transform var(--rec-transition);
}


#main-content .btn {
    color: #211b0f;

    border-color: var(--rec-gold);
    background: var(--rec-gold);

    box-shadow:
        0 14px 36px
        rgba(200, 162, 74, 0.2);
}

#main-content .btn:hover,
#main-content .btn:focus-visible {
    color: var(--rec-gold);

    background: transparent;
    box-shadow: none;

    transform: translateY(-3px);
}


#main-content .btn-secondary {
    color: var(--rec-black);

    border-color:
        rgba(23, 22, 18, 0.18);

    background:
        rgba(255, 255, 255, 0.7);
}


#main-content .btn-secondary:hover,
#main-content .btn-secondary:focus-visible {
    color: var(--rec-gold-dark);

    border-color: var(--rec-gold);
    background: var(--rec-white);

    transform: translateY(-3px);
}


/* =====================================================
   05 — RESPONSIVE COMMUN
===================================================== */

@media (max-width: 680px) {

    .home-container,
    .solutions-container,
    .realisation-container,
    .contact-container,
    .system-container {
        width:
            min(
                calc(100% - 32px),
                var(--rec-content-container)
            );
    }

}


@media (max-width: 420px) {

    .home-container,
    .solutions-container,
    .realisation-container,
    .contact-container,
    .system-container {
        width:
            min(
                calc(100% - 26px),
                var(--rec-content-container)
            );
    }

}


/* =====================================================
   06 — MOUVEMENTS RÉDUITS
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}