/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth auto;
}

/* Base font settings */
.site-3d {
    font-family: var(--font-secondary);
    background-color: var(--gray-light);
    color: var(--black);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:1024px) {
}

/* Lock scroll sans décaler la page */
.scroll-lock {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Contents */
header, main, footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Headings */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.2;
    margin: 1.5rem 0 1rem;
}
h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}
h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }
h5 { font-size: var(--font-size-sm); }
h6 { font-size: var(--font-size-xs); text-transform: uppercase; }

/* Paragraphs & text */
p {
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
}
.lead {
    font-size: var(--font-fluid-lg);
    font-weight: 400;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.small {
    font-size: var(--font-size-xs);
    color: var(--gray-medium);
}

/* Emphasis */
strong {
    font-weight: 700;
}
em {
    font-style: italic;
}

/* Blockquotes */
blockquote {
    font-style: italic;
    font-size: var(--font-fluid-lg);
    border-left: 4px solid var(--blue-main);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--blue-dark);
}
cite {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
    margin-top: 0.5rem;
    text-align: right;
}

/* Code blocks */
code {
    font-family: var(--font-code);
    background-color: var(--gray-light);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--blue-dark);
}
pre {
    font-family: var(--font-code);
    background-color: var(--gray-light);
    padding: 1rem;
    overflow-x: auto;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

/* Buttons */
button {
    background-image: linear-gradient(135deg, var(--violet-electrical), var(--cyan-electrical));
    background-size: 100% 100%;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ui);
    font-size: var(--font-size-md);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: var(--font-size-md);
}
.btn,
input[type="email"],
textarea {
    max-width: 100%;
    box-sizing: border-box;
    font: inherit;
}
.btn-primary {
    background-color: var(--blue-main);
    color: var(--white);
    border: none;
}
.btn-primary:hover {
    background-color: var(--blue-main-hover);
}
.btn-secondary {
    background-color: var(--white);
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
}
.btn-secondary:hover {
    background-color: var(--blue-light);
    color: var(--blue-main);
}

/* Utility text styles */
.text-muted {
    color: var(--gray-medium);
}
.text-accent {
    color: var(--blue-accent);
}
.text-uppercase {
    text-transform: uppercase;
}
.text-center {
    text-align: center;
}
/* Base commune */
.text-animated {
    display: inline-block;
    transition:
        animation-duration 0.3s ease,
        transform 0.4s ease;
    animation: textGradientFlow 8s ease infinite;
}
/* Zoom et animation plus rapide au hover */
.text-animated:hover {
    animation-duration: 2s;
}
/* Hiérarchie des vitesses */
h1.text-animated                  { animation-duration: 12s; }
h2.text-animated                  { animation-duration: 9s; }
h3.text-animated                  { animation-duration: 7s; }
/* Zoom par niveau */
h1.text-animated:hover           { transform: scale(1.015); }
h2.text-animated:hover           { transform: scale(1.02); }
h3.text-animated:hover           { transform: scale(1.025); }

.section {
    padding-block: clamp(3rem, 8vw, 6rem);
}