/*
 * assets/css/vitrine.css — LauréAkademy
 *
 * Repris tel quel du bloc <style> de la vitrine précédente
 * (reference/vitrine/index.html, lignes 28 à 653), à trois différences près :
 *
 *   - les règles de quantité (.formula-quantity, .quantity-input, .qty-btn)
 *     ont disparu avec les quantités multiples ; suivre deux fois la même
 *     matière, c'est s'inscrire à deux cours distincts ;
 *   - les styles qui vivaient en attribut style="..." dans le HTML sont
 *     descendus ici, sous des classes nommées, à la fin du fichier ;
 *   - s'y ajoute ce dont l'ancienne page n'avait pas besoin : l'état non
 *     réservable d'un cours, les messages d'erreur du formulaire, et le
 *     bandeau de consentement.
 *
 * Le défilement animé, qui occupait dix lignes de JavaScript, tient
 * maintenant dans une déclaration CSS (voir html { scroll-behavior }).
 */

html {
    scroll-behavior: smooth;
    /* Les ancres #services, #tarifs et #inscription passent sous l'en-tête
       fixe : on décale la cible plutôt que de compenser en JavaScript. */
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #6B1F87;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #6B1F87;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.location-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    display: inline-block;
}

.cta-button {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #E53E3E 0%, #FF6B35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: #6B1F87;
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: #FF6B35;
    transform: scale(1.05);
}

.popular-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 0.9rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: #6b7280;
}

/* Form Section */
.inscription {
    padding: 80px 0;
    background: #f8fafc;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6B1F87;
    box-shadow: 0 0 0 3px rgba(107, 31, 135, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.child-section {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f9fafb;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.add-child-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.add-child-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.remove-child-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.formula-selection {
    background: linear-gradient(135deg, rgba(107, 31, 135, 0.05) 0%, rgba(255, 140, 66, 0.05) 100%);
    border: 1px solid rgba(107, 31, 135, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.formula-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.formula-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.formula-info {
    flex: 1;
}

.total-price {
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(107, 31, 135, 0.3);
}

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 31, 135, 0.4);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: #fff;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107, 31, 135, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(107, 31, 135, 0.9) 0%, rgba(255, 107, 53, 0.9) 100%);
    color: white;
    padding: 1.5rem;
    transform: translateY(70%);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-hint {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-style: italic;
}

.gallery-hint i {
    color: #6B1F87;
    margin-right: 0.5rem;
}

/* Lightbox */
.lightbox {
    /* Plus de `display: none` ici : c'est Alpine qui montre et masque la
       visionneuse (x-show). Une règle de feuille de style reprendrait le
       dessus au moment de la réafficher. L'attribut x-cloak la garde invisible
       le temps qu'Alpine s'initialise. */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    color: white;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero div[style*="display: flex"] {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .formula-option {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lightbox-content {
        margin: 10% auto;
        max-width: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* ==========================================================================
   Ce qui vivait en attribut style="..."
   ========================================================================== */

.encart {
    background: linear-gradient(135deg, rgba(107, 31, 135, 0.08) 0%, rgba(255, 140, 66, 0.08) 100%);
    border: 2px solid rgba(107, 31, 135, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.encart h3 {
    color: #6B1F87;
    margin-bottom: 1rem;
}

.encart p {
    font-size: 1.1rem;
    color: #374151;
}

.encart .exemple {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
}

.encart--discret {
    background: linear-gradient(135deg, rgba(107, 31, 135, 0.05) 0%, rgba(255, 140, 66, 0.05) 100%);
    border: 1px solid rgba(107, 31, 135, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 600px;
}

.encart--discret p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

.mention {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Séance d'essai --------------------------------------------------------- */

.essai-bloc {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(107, 31, 135, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.essai-bloc h2 {
    color: #10b981;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.essai-bloc > p {
    font-size: 1.2rem;
    color: #374151;
    margin: 0 auto 2rem;
    max-width: 800px;
}

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

.essai-atout {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.essai-atout i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.cta-button--essai {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

/* Tarifs ----------------------------------------------------------------- */

.pricing-card ul {
    text-align: left;
    margin: 1rem 0;
    list-style: none;
}

.pricing-card li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.price small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.75;
}

.pricing-card .niveaux {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Formulaire ------------------------------------------------------------- */

.type-demande {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(107, 31, 135, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.type-demande h3 {
    margin-top: 0;
    color: #10b981;
}

.type-demande__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.type-demande__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s, background-color 0.3s;
}

.type-demande__option:has(input:checked) {
    border-color: #6B1F87;
    background: rgba(107, 31, 135, 0.05);
}

.type-demande__option:has(input[value="essai"]:checked) {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.type-demande__option small {
    display: block;
    color: #6b7280;
}

/* Une formule proposée à un niveau. `.formula-option` vient de l'ancienne
   feuille ; seuls l'état complet et le prix serveur sont nouveaux. */

.formula-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.formula-option--complet {
    background: #f3f4f6;
    border-style: dashed;
}

.formula-option--complet label {
    cursor: not-allowed;
    color: #6b7280;
}

.formula-tarif {
    font-weight: 700;
    color: #6B1F87;
    white-space: nowrap;
}

.badge-complet {
    display: inline-block;
    background: #6b7280;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.5rem;
}

.badge-attente {
    background: #EF9F27;
}

.recap {
    background: linear-gradient(135deg, #6B1F87 0%, #E53E3E 50%, #FF8C42 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.recap ul {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.95rem;
}

.recap li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
}

.recap__total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.recap__mention {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.erreurs {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.erreurs ul {
    margin: 0.5rem 0 0 1.25rem;
}

.form-group .aide {
    display: block;
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9rem;
}

.form-group--erreur input,
.form-group--erreur select {
    border-color: #dc2626;
}

.form-group .erreur {
    color: #991b1b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Le champ appât : invisible pour un humain, rempli par les robots.
   `display: none` serait trop lisible — on le sort du flux. */
.appat {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Confirmation ----------------------------------------------------------- */

.confirmation {
    max-width: 700px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.confirmation i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.confirmation ul {
    text-align: left;
    display: inline-block;
    margin: 1.5rem 0;
}

/* Pages légales ---------------------------------------------------------- */

.page-legale {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.page-legale h2 {
    margin: 2rem 0 0.75rem;
    color: #6B1F87;
    font-size: 1.3rem;
}

.page-legale p,
.page-legale li {
    margin-bottom: 0.75rem;
    color: #374151;
}

/* Consentement ----------------------------------------------------------- */

.consentement {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2000;
    background: #1f2937;
    color: white;
    padding: 1.25rem 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.consentement p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 620px;
}

.consentement a {
    color: #FF8C42;
}

.consentement button {
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

.consentement .accepter {
    background: #10b981;
    color: white;
}

.consentement .refuser {
    background: transparent;
    color: white;
    border: 1px solid #6b7280;
}

@media (max-width: 768px) {
    .essai-bloc { padding: 1.5rem; }
    .essai-bloc h2 { font-size: 1.8rem; }
    .confirmation { padding: 2rem 1.25rem; margin: 2rem 1rem; }
}

.footer-reseaux {
    margin: 2rem 0 1rem;
    color: #FF8C42;
}

.footer-seo {
    margin-top: 1rem;
}

/* Alpine masque les composants tant qu'il n'est pas initialisé : sans cette
   règle, le bandeau de consentement clignote au chargement. */
[x-cloak] {
    display: none !important;
}

.catalogue-vide {
    text-align: center;
    color: #6b7280;
}

.cta-button--large {
    width: 100%;
    margin-top: 1rem;
}
