:root {
    --blue: #1E3A8A;
    --orange: #F97316;
    --pink: #e2007a;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #fff;
    --bg-dark: #1a1a1a;
    --transition-speed: 0.3s;
}

/* style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* style des thèmes */
body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* style de la bannière */
.banner {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    padding: 2rem 1rem;
    position: relative;
    text-align: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.banner h1 {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
}

.banner h2 {
    color: white;
    font-size: clamp(1rem, 3vw, 1.8rem);
    margin: 0;
    opacity: 0.9;
}

/*  Section textes */
.text-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.text-section h2 {
    color: var(--blue);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
}

.text-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-dark);
}

.final-text {
    padding: 0;
}

.dark-mode .text-section h2 {
    color: var(--orange);
}

.dark-mode .text-section p {
    color: var(--text-light);
}

/* Theme switch */
.theme-switch {
    position: absolute;
    top: 5.5rem;
    right: 1rem;
}

#themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: transform var(--transition-speed);
}

#themeToggle:hover {
    transform: scale(1.1);
}

/* Hero image */
.hero-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 2rem 0;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Liens externes */
.button-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.button-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .final-button {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Boutons d'actions */
.action-button {
    background-color: white;
    border: 2px solid var(--blue);
    border-radius: 8px;
    color: var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-button:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Dark mode */
.dark-mode .action-button {
    background-color: var(--bg-dark);
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 10px 10px rgba(131, 128, 128, 0.1);
}

.dark-mode .action-button:hover {
    box-shadow: 0 10px 10px rgba(131, 128, 128, 0.3);
}

.icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.text {
    font-weight: 600;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--blue);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
