@charset "UTF-8";

/* ==========================================================
   BASE
   (Bootstrap Reboot fait déjà le reset : pas besoin d'un
   second reset ici)
========================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-family);
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary-color);
    color: var(--on-primary);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Scrollbar */
html {
    scrollbar-color: var(--primary-color) var(--background-color);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* Accessibilité : focus clavier visible */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--on-primary);
    font-weight: 600;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
    color: var(--on-primary);
}

/* ==========================================================
   LAYOUT
========================================================== */

.container {
    max-width: 1240px;
}

section {
    --section-bg: var(--background-color);
    position: relative;
    padding: var(--section-padding) 0;
}

/* Sections qui alternent avec le fond de page */
.section-alt {
    --section-bg: var(--surface-color);
    background: var(--section-bg);
}

.section-title {
    margin-bottom: 64px;
    text-align: center;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 50px;
    background: var(--primary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================
   BOUTONS (on redéfinit les variables Bootstrap : pas de
   !important ni de conflit de spécificité)
========================================================== */

.btn {
    --bs-btn-padding-x: 1.6rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-border-radius: var(--radius-md);
    --bs-btn-font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .25s ease, box-shadow .25s ease,
        background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-sm {
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-padding-y: .55rem;
}

.btn-primary {
    --bs-btn-color: var(--on-primary);
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: var(--on-primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-active-color: var(--on-primary);
    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: var(--on-primary);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: var(--on-primary);
    --bs-btn-active-bg: var(--primary-hover);
    --bs-btn-active-border-color: var(--primary-hover);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }

    .btn-primary:hover {
        box-shadow: 0 12px 25px rgba(54, 92, 125, .25);
    }
}

/* ==========================================================
   ANIMATIONS D'APPARITION
   Masquées seulement si JavaScript est actif (classe .js
   posée sur <html>) : sans JS, tout reste visible.
========================================================== */

.js .fade-in,
.js .slide-left,
.js .slide-right,
.js .zoom-in,
.js .timeline-item {
    opacity: 0;
}

.js .fade-in,
.js .timeline-item { transform: translateY(32px); }
.js .slide-left    { transform: translateX(-40px); }
.js .slide-right   { transform: translateX(40px); }
.js .zoom-in       { transform: scale(.92); }

.js .fade-in.visible,
.js .slide-left.visible,
.js .slide-right.visible,
.js .zoom-in.visible,
.js .timeline-item.visible {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s);
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
    padding: 40px 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
}

footer a {
    color: var(--text-light);
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-color);
}

/* ==========================================================
   BOUTON RETOUR EN HAUT
========================================================== */

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1020;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--on-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease, background-color .25s ease;
    box-shadow: 0 12px 30px rgba(54, 92, 125, .25);
}

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

.scroll-top:hover {
    background: var(--primary-hover);
    color: var(--on-primary);
}
/* ==========================================================
   STYLE DELAY POUR LES ANIMATIONS
========================================================== */

.delay000{
    --delay: 0.00s;
}

.delay005{
    --delay: 0.05s;
}

.delay010{
    --delay: 0.10s;
}

.delay015{
    --delay: 0.15s;
}

.delay020{
    --delay: 0.20s;
}


.delay100{
    --delay: 1.00s;
}

.delay200{
    --delay: 2.00s;
}