/* Ce fichier est relié sur toutes les pages, il permet d'initialiser la base de toutes les pages */

:root {
    /* Couleurs principales */
    --bleu-logo: #333399;
    --vert-logo: #00FF00;
    --bleu: #566AAD;
    --fond-blanc: #F4F4F4;
    --gris: #ECECEC;
    --noir: #072d07;
    --rouge-erreur: #ff0000;

    /* Typos */
    --titre: 'Raleway', serif;
    --texte: 'Montserrat', sans-serif;
    --header-h: 78px;

    /* Largeurs utiles sur écrans larges / 2K (surchargées dans large-screen.css) */
    --site-max: 1680px;
    --site-content: 1440px;
    --site-gutter: clamp(32px, 4vw, 120px);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--fond-blanc);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 0 0 auto;
    width: 100%;
}

footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

html {
    min-height: 100%;
    /* Même teinte que le footer : évite une bande claire sous le pied de page (grands écrans, overscroll) */
    background: var(--bleu-logo);
    cursor: url("../images/curseur.png"), default;
    scroll-behavior: smooth;
}


/* Bouton pour retourner en haut */
.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: none;
    background-color: var(--vert-logo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 999;
    box-shadow: 0 4px 12px var(--bleu-logo);
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

.back-to-top:focus-visible {
    outline: 2px solid var(--bleu-logo);
    outline-offset: 3px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Personnalisation de al couleur de surlignage */

::selection {
    background: var(--vert-logo);
    color: var(--bleu-logo);
}

/* --- PERSONNALISATION SCROLLBAR GLOBALE (PC) --- */
/* Pour Chrome, Edge et Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #101a23;
}

::-webkit-scrollbar-thumb {
    background: var(--vert-logo);
    border-radius: 10px;
}

/* Pour Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--vert-logo) #101a23;
}

/* Animation au hover de chaque boutons dans le site */
.btn-hover {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-hover:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Boutons « contact » : vert, coins 32px, bleu qui remplit depuis la gauche au survol */
.btn-contact-slide {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    border: 1px solid var(--vert-logo);
    background-color: var(--vert-logo);
    color: var(--noir);
    box-sizing: border-box;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        color 0.32s ease 0.08s;
}

.btn-contact-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--bleu-logo);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-contact-slide .contact-lien-bouton-icon,
.btn-contact-slide .contact-lien-bouton-label,
.btn-contact-slide .article-partner-cta-btn-icon,
.btn-contact-slide .article-partner-cta-btn-label,
.btn-contact-slide .btn-contact-slide-inner {
    position: relative;
    z-index: 1;
}

.btn-contact-slide svg {
    display: block;
    stroke: currentColor;
}

.btn-contact-slide:hover {
    transform: translateY(-3px);
    border-color: var(--bleu-logo);
    box-shadow: 0 12px 28px rgba(51, 51, 153, 0.35);
    color: var(--fond-blanc);
}

.btn-contact-slide:hover::before {
    transform: scaleX(1);
}

.btn-contact-slide:focus-visible {
    outline: 2px solid var(--vert-logo);
    outline-offset: 3px;
}

button.btn-contact-slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .btn-contact-slide {
        transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    }

    .btn-contact-slide::before {
        transition: none;
    }

    .btn-contact-slide:hover {
        transform: none;
    }

    .btn-contact-slide:hover::before {
        transform: scaleX(1);
    }
}