:root {
	--primary: #3498db;
	--secondary: #f1c40f;
	--accent: #2ecc71;
	--dark: #2c3e50;
	--light: #ecf0f1;
}

section[id] {
    scroll-margin-top: 20px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 90px;
    }
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	color: var(--dark);
	background-color: var(--light);
}

h1, h2, h3 {
	font-weight: 800;
	margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

.no-break {
    white-space: nowrap;
    display: inline-block;
}

/* --- Navigation --- */
nav {
	background: var(--dark);
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	transition: transform 0.3s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.logo { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--secondary); }

.nav-links { display: flex; gap: 20px; }
.nav-links a:hover { color: var(--secondary); text-decoration: underline; }

/* --- Hero Section --- */
.hero {
	background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('rex_vol.jpg'); 
	background-size: cover;
	background-position: center;
	height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
	padding: 20px;
}

.nav-hidden {
    transform: translateY(-100%);
}

.hero h1 { font-size: 3.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.5rem; margin-bottom: 2rem; max-width: 500px; }

.cta-btn {
	background: var(--secondary);
	color: var(--dark);
	padding: 15px 30px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 1.2rem;
	transition: transform 0.3s, box-shadow 0.3s;
	border: 2px solid var(--dark);
}

.cta-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	background: #f39c12;
}

/* --- A Propos --- */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.about { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.about-text { flex: 1; }
.about-img { 
	flex: 1; 
	border-radius: 20px; 
	overflow: hidden;
	border: 5px solid var(--primary);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	height: 400px; 
	display: flex;
	justify-content: center;
	align-items: center;
}

.about-img img {
	height: 100%;
	width: auto;
	object-fit: contain; 
	display: block;
	margin: auto;
}

.badge {
	background: var(--secondary);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.8rem;
	font-weight: bold;
	display: inline-block;
	margin-bottom: 10px;
}

/* --- Formules --- */
.courses { background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }

.card {
	background: var(--light);
	padding: 2rem;
	border-radius: 15px;
	text-align: center;
	transition: transform 0.3s;
	border: 1px solid #ddd;
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.price { font-size: 1.5rem; color: var(--primary); font-weight: bold; margin: 10px 0; }

.contact-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    clear: both;
    text-align: center;
}

.cta-btn-alt {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin: 0 auto; 
}

.cta-btn-alt:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.courses-container {
    padding-bottom: 60px;
}

/* --- Témoignages --- */
.testimonials { text-align: center; background: var(--primary); color: white; border-radius: 20px; margin-top: 40px; margin-bottom: 40px;}
.quote { font-style: italic; font-size: 1.2rem; }
.author { margin-top: 10px; font-weight: bold; color: var(--secondary); }

/* --- Footer --- */
footer {
	background: var(--dark);
	color: white;
	text-align: center;
	padding: 2rem;
	margin-top: auto;
}
.warning { font-size: 0.8rem; opacity: 0.7; margin-top: 10px; }


/* --- OPTIMISATION SMARTPHONE ET TABLETTE --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 15px;
    }

	footer p {
			font-size: 0.9rem;
			word-wrap: break-word;
		}

	.nav-links {
		display: flex;
		justify-content: center;
		gap: 15px;
		width: 100%;
	}

	.hero h1 {
			font-size: 1.8rem; 
			line-height: 1.2;
			margin-bottom: 10px;
	}

	.hero p {
		font-size: 1rem;
		padding: 0 10px;
	}

    .about {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .about-img {
        width: 100%;
        max-width: 350px;
        height: 200px;
        margin: 0 auto 20px auto;
        border-width: 3px;
    }

    .about-img img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }

    /* Grille et Boutons */
    .grid {
        grid-template-columns: 1fr;
    }

    .cta-btn-alt {
        width: 100%;
        box-sizing: border-box;
    }
}
