:root {
    --vert-gazon: #4CAF50;
    --bleu-ciel: #87CEEB;
    --blanc: #FFFFFF;
    --gris-clair: #f5f5f5;
    --gris-fonce: #333;
    --noir: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimisations de performance */
img, video {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* Lazy loading animation */
img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

/* Images critiques (logo, hero) - afficher immédiatement */
img.nav-logo-img,
.hero img,
img[loading="eager"] {
    opacity: 1;
}

/* Images dans le viewport initial - charger immédiatement */
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

/* Éviter le layout shift */
img, video {
    display: block;
}

/* Optimisation du rendu */
img, video {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

body {
    background-color: var(--blanc);
    color: var(--gris-fonce);
    line-height: 1.6;
}

.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 160px 15px 100px;
    color: var(--blanc);
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    flex: 1;
    max-width: 800px;
    z-index: 2;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

.hero-text {
    margin-bottom: 20px;
}

.hero-cta {
    margin-top: 0;
    padding-top: 20px;
}

.site-title {
    font-size: 3.8em;
    font-weight: 800;
    margin-bottom: 60px;
    margin-top: 0;
    color: var(--blanc);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-image {
    display: none;
}

.hero h2 {
    color: var(--blanc);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2em;
    margin: 0;
    padding: 0;
    color: var(--blanc);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2em;
    margin: 20px 0;
    color: var(--blanc);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Titres */
h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--noir);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--noir);
    text-align: center;
    position: relative;
    font-weight: 700;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--vert-gazon);
    margin: 15px auto;
}

/* Apprentissage Section */
.apprentissage-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2em;
}

.apprentissage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.apprentissage-item {
    text-align: center;
    padding: 30px;
    background: var(--gris-clair);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.apprentissage-item:hover {
    transform: translateY(-5px);
}

.apprentissage-item i {
    font-size: 2.5em;
    color: var(--vert-gazon);
    margin-bottom: 20px;
}

.apprentissage-item h3 {
    margin: 15px 0;
    color: var(--noir);
    font-size: 1.3em;
}

@media (min-width: 1200px) {
    .apprentissage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .apprentissage-item:last-child:nth-child(3n-1) {
        grid-column: 2;
    }
    .apprentissage-item:nth-last-child(2):nth-child(3n+1) ~ .apprentissage-item:last-child {
        grid-column: 2;
    }
    .apprentissage-item-centered {
        grid-column: 2;
    }
}

/* Galerie */
.galerie {
    background-color: var(--gris-clair);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.galerie-item:hover {
    transform: scale(1.02);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galerie-item:hover img {
    transform: scale(1.1);
}

.galerie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-overlay {
    opacity: 1;
}

.galerie-overlay h3 {
    margin: 0;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.galerie-overlay p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Modal de la galerie */
.galerie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1101;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(0,0,0,0.5);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1101;
}

.modal-nav button {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-nav button:hover {
    transform: scale(1.2);
    background: rgba(0,0,0,0.5);
}

@media (max-width: 1200px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-nav button {
        font-size: 1.5em;
        padding: 10px 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 2em;
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        display: flex;
        font-size: 1.2em;
    }

    .nav-logo::before {
        display: none;
    }

    .nav-menu {
        top: 50px;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-logo {
        flex-grow: 1;
    }

    .nav-logo-text {
        font-size: 1.2em;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--vert-gazon);
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }

    .galerie-overlay {
        padding: 15px;
    }

    .galerie-overlay h3 {
        font-size: 1.1em;
    }

    .galerie-overlay p {
        font-size: 0.8em;
    }

    .modal-content {
        padding: 10px;
    }

    .modal-nav button {
        padding: 8px 15px;
        font-size: 1.2em;
    }
}

@media (min-width: 1200px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .galerie-item:last-child:nth-child(3n-1) {
        grid-column: 2;
    }
    .galerie-item:nth-last-child(2):nth-child(3n+1) ~ .galerie-item:last-child {
        grid-column: 2;
    }
}

/* Témoignages */
.testimonials {
    background-color: var(--gris-clair);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-item {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-item .quote {
    font-style: italic;
    color: #333;
    margin: 1rem 0;
    line-height: 1.6;
}

.testimonial-item .author {
    font-weight: bold;
    color: #4CAF50;
    margin-top: 1rem;
}

.testimonials-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.rating-container {
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.stars i {
    margin: 0 2px;
    filter: drop-shadow(0 0 1px rgba(255, 215, 0, 0.3));
}

.stars:hover i {
    animation: starTwinkle 0.5s ease-in-out;
}

@keyframes starTwinkle {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.testimonial-item .rating {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.testimonial-item .rating strong {
    color: #4CAF50;
}

.medoucine-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.medoucine-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.testimonial-item .verified {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 12px 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }

    .testimonials-footer {
        padding: 1.5rem;
    }
    
    .stars {
        font-size: 1.3rem;
    }
    
    .testimonial-item .rating {
        font-size: 1.1rem;
    }
    
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Programme */
.programme {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.programme-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.programme-item:hover {
    transform: translateY(-5px);
}

.programme-item h3 {
    color: var(--vert-gazon);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.programme-item p {
    margin: 10px 0;
}

.programme-item i {
    color: var(--bleu-ciel);
    margin-right: 10px;
}

/* Prix et Inscription */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.pricing-item.featured {
    transform: scale(1.05);
    border: 2px solid var(--vert-gazon);
}

.pricing-item h3 {
    font-size: 1.8em;
    color: var(--noir);
    margin-bottom: 20px;
}

.price {
    font-size: 2.5em;
    color: var(--vert-gazon);
    margin: 20px 0;
    font-weight: bold;
}

.pricing-item ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-item li {
    margin: 15px 0;
    font-size: 1.1em;
}

.pricing-item i {
    color: var(--vert-gazon);
    margin-right: 10px;
}

/* Formulaire */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--vert-gazon);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background: white;
    transform: translateY(-1px);
}

input:invalid:not(:placeholder-shown), 
textarea:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
    background: rgba(255, 68, 68, 0.02);
}

input:valid:not(:placeholder-shown), 
textarea:valid:not(:placeholder-shown) {
    border-color: var(--vert-gazon);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background: rgba(76, 175, 80, 0.02);
}

.error-message {
    display: none;
    color: #ff4444;
    font-size: 0.85em;
    margin-top: 8px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 4px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.error-message::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1.1em;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease-out, shake 0.5s ease-in-out 0.3s;
}

.success-message {
    display: none;
    color: var(--vert-gazon);
    font-size: 0.85em;
    margin-top: 8px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--vert-gazon);
    border-radius: 4px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.success-message::before {
    content: "✅";
    margin-right: 8px;
    font-size: 1.1em;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
    background: rgba(255, 68, 68, 0.02);
}

.form-group.success input {
    border-color: var(--vert-gazon);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    background: rgba(76, 175, 80, 0.02);
}

.form-group.error::after {
    content: "⚠️";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: pulse 1s infinite;
}

.form-group.success::after {
    content: "✅";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: bounce 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
}

@keyframes bounce {
    0% { transform: translateY(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Style du bouton de soumission */
.contact-form .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Animation de chargement pour le bouton */
.contact-form .btn-primary.loading {
    background: linear-gradient(45deg, var(--vert-gazon), #45a049);
    background-size: 200% 200%;
    animation: gradientShift 1.5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes highlight {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
        transform: scale(1);
    }
}

/* Styles pour les cases à cocher */
.checkbox-label {
    display: block;
    font-weight: 600;
    color: var(--gris-fonce);
    margin-bottom: 12px;
    font-size: 1em;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: var(--vert-gazon);
    background: rgba(76, 175, 80, 0.05);
    transform: translateY(-1px);
}

.checkbox-item input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--vert-gazon);
    transform: scale(1.2);
}

.checkbox-item input[type="radio"]:checked + label {
    color: var(--vert-gazon);
    font-weight: 600;
}

.checkbox-item input[type="radio"]:checked {
    accent-color: var(--vert-gazon);
}

.checkbox-item label {
    cursor: pointer;
    font-size: 1em;
    color: var(--gris-fonce);
    transition: color 0.3s ease;
    flex: 1;
    margin: 0;
}

.form-group.error .checkbox-group {
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 68, 68, 0.02);
}

.form-group.success .checkbox-group {
    border: 2px solid var(--vert-gazon);
    border-radius: 8px;
    padding: 8px;
    background: rgba(76, 175, 80, 0.02);
}

.form-group.error .checkbox-label {
    color: #ff4444;
}

.form-group.success .checkbox-label {
    color: var(--vert-gazon);
}

/* Styles pour le captcha */
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.captcha-question {
    font-weight: 600;
    color: var(--gris-fonce);
    font-size: 1.1em;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.captcha-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.captcha-group input[type="number"]:focus {
    outline: none;
    border-color: var(--vert-gazon);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group.error .captcha-group {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.02);
}

.form-group.success .captcha-group {
    border-color: var(--vert-gazon);
    background: rgba(76, 175, 80, 0.02);
}

/* Champ honeypot - complètement caché */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.honeypot input {
    display: none !important;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--vert-gazon);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bleu-ciel);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--vert-gazon);
    font-size: 1.2em;
    padding: 18px 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--vert-gazon);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--bleu-ciel);
}

/* Media Queries optimisées */
@media (max-width: 1200px) {
    .section {
        padding: 80px 15px;
    }
    
    .hero-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 15px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero {
        padding: 200px 15px 100px;
        min-height: 100vh;
    }

    .hero-content {
        min-height: calc(100vh - 300px);
    }

    .hero-text {
        margin-bottom: auto;
    }

    .hero-cta {
        margin-top: auto;
        padding-top: 30px;
    }

    .site-title {
        font-size: 2.8em;
        margin-bottom: 40px;
    }

    .hero h2 {
        font-size: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
        margin: 0;
    }

    .hero-description {
        font-size: 1em;
    }

    .apprentissage-grid,
    .testimonials-grid,
    .programme {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-item.featured {
        transform: none;
    }

    .contact-form {
        padding: 20px;
    }

    input, textarea, select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.9em;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 40px 20px 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
        background: var(--vert-gazon);
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
        background: var(--vert-gazon);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .nav-container {
        padding: 8px 15px;
    }

    .nav-logo {
        font-size: 1em;
    }

    .nav-menu {
        top: 50px;
    }

    .hero {
        padding-top: 160px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 10px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero {
        padding: 250px 10px 80px;
        min-height: 100vh;
    }

    .hero-content {
        min-height: calc(100vh - 350px);
    }

    .hero-text {
        margin-bottom: auto;
    }

    .hero-cta {
        margin-top: auto;
        padding-top: 20px;
    }

    .site-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .testimonial-item {
        padding: 20px;
    }

    .testimonial-img {
        width: 100px;
        height: 100px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-subtitle {
        font-size: 1em;
        margin: 0;
    }

    .nav-container {
        padding: 5px 10px;
    }

    .nav-logo {
        font-size: 0.9em;
    }

    .nav-menu {
        top: 45px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.7em;
    }

    .back-to-top {
        bottom: 30px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* Optimisations de performance pour les animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimisations pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-content {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    .stars {
        color: #FFD700;
        text-shadow: 0 0 3px rgba(255, 215, 0, 0.2);
    }
}

/* Optimisations pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 15px;
    }

    .hero-content {
        padding: 0;
    }
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--vert-gazon);
    font-weight: 700;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logo::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-image: url('img/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.nav-logo-img {
    width: 30px;
    height: 30px;
}

.nav-logo-text {
    display: inline-block;
    z-index: 1001;
    color: var(--vert-gazon);
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    color: var(--gris-fonce);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--vert-gazon);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--vert-gazon);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background-color: var(--vert-gazon);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background-color: var(--bleu-ciel);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    position: relative;
    z-index: 1001;
    color: var(--vert-gazon);
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    color: var(--bleu-ciel);
    transform: rotate(15deg);
}

.nav-toggle.active {
    color: var(--bleu-ciel);
    transform: rotate(180deg);
}

.nav-toggle img {
    width: 30px;
    height: 30px;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--vert-gazon);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

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

.back-to-top:hover {
    background-color: var(--bleu-ciel);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 30px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* Suppression des anciens styles du hamburger */
.hamburger,
.hamburger::before,
.hamburger::after {
    display: none;
}

@media (max-width: 768px) {
    .nav-logo::before {
        display: none;
    }

    .nav-toggle {
        display: flex; /* S'assurer qu'il est visible sur mobile */
    }

    .nav-logo {
        flex-grow: 1; /* Permet au logo de prendre l'espace disponible */
    }

    .nav-logo-text {
        font-size: 1.2em;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--vert-gazon);
        font-weight: 700;
    }
}

/* Styles déplacés depuis <style> de index.html */
.pricing-item .sublist {
    list-style-type: none;
    padding-left: 1.5em;
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #666;
}
.pricing-item .sublist li {
    position: relative;
    margin-bottom: 0.3em;
}
.pricing-item .sublist li:before {
    content: "•";
    position: absolute;
    left: -1em;
    color: #4CAF50;
}

.video-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .video-section {
        padding: 2rem 1rem;
    }
    .video-container {
        max-width: 90%;
    }
    .video-container video {
        max-height: 300px;
    }
    .hero {
        padding-top: 4rem !important;
    }
} 
