/* Import Hey Yoga Font */
@import url('https://fonts.googleapis.com/css2?family=Hey+Yoga&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 50%, #d1fae5 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/Fond.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    filter: hue-rotate(45deg) brightness(1.2) saturate(1.3);
}

body > * {
    position: relative;
    z-index: 2;
}

/* Teintes pour chaque page */
body.page-accueil::before {
    filter: hue-rotate(45deg) brightness(1.2) saturate(1.3);
}

body.page-disciplines::before {
    filter: hue-rotate(270deg) brightness(1.2) saturate(1.3);
}

body.page-courses::before {
    filter: hue-rotate(180deg) brightness(1.2) saturate(1.3);
}

body.page-about::before {
    filter: hue-rotate(160deg) brightness(1.2) saturate(1.3);
}

body.page-inspirations::before {
    filter: hue-rotate(40deg) brightness(1.2) saturate(1.3);
}

body.page-expiration::before {
    filter: hue-rotate(35deg) brightness(1.2) saturate(1.3);
}

body.page-contact::before {
    filter: hue-rotate(320deg) brightness(1.2) saturate(1.3);
}

/* Harmonisation des titres avec le fond */
.page-hero {
    position: relative;
    z-index: 3;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.page-accueil .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(45deg) brightness(1.2) saturate(1.3);
}

body.page-disciplines .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(270deg) brightness(1.2) saturate(1.3);
}

body.page-courses .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(180deg) brightness(1.2) saturate(1.3);
}

body.page-about .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(160deg) brightness(1.2) saturate(1.3);
}

body.page-inspirations .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(40deg) brightness(1.2) saturate(1.3);
}

body.page-expiration .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(35deg) brightness(1.2) saturate(1.3);
}

body.page-contact .page-hero {
    background-image: url('Images/Fond.jpg');
    filter: hue-rotate(320deg) brightness(1.2) saturate(1.3);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
    height: 120px;
}

/* Calque de teinte unie identique au filtre du fond (sans image) */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    background-color: rgb(181, 148, 254); /* teinte par défaut (accueil) */
}

/* Teinte identique au filtre du fond, propre à chaque page */
body.page-accueil .navbar::before {
    background-color: rgb(181, 148, 254);
}

body.page-disciplines .navbar::before {
    background-color: rgb(75, 197, 100);
}

body.page-courses .navbar::before {
    background-color: rgb(227, 152, 74);
}

body.page-about .navbar::before {
    background-color: rgb(250, 142, 101);
}

body.page-inspirations .navbar::before {
    background-color: rgb(170, 150, 255);
}

body.page-expiration .navbar::before {
    background-color: rgb(161, 152, 255);
}

body.page-contact .navbar::before {
    background-color: rgb(57, 192, 189);
}

/* Page-specific navbar colors on scroll - matching page background */
body.page-accueil .navbar.scrolled {
    background: #fef3c7 !important;
}

body.page-disciplines .navbar.scrolled {
    background: #ede9fe !important;
}

body.page-courses .navbar.scrolled {
    background: #cffafe !important;
}

body.page-about .navbar.scrolled {
    background: #a7f3d0 !important;
}

body.page-inspirations .navbar.scrolled {
    background: #fef08a !important;
}

body.page-expiration .navbar.scrolled {
    background: #fed7aa !important;
}

body.page-contact .navbar.scrolled {
    background: #fbcfe8 !important;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: #111827;
}

.logo-icon {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
}

.logo-text {
    font-family: 'Brush Script MT', cursive;
    font-weight: 900;
    letter-spacing: 0.05em;
    font-size: 1.875rem;
    color: #111827;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Bouton menu hamburger (masqué sur ordinateur) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
    }

    .nav-links.open {
        max-height: 30rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Animation hamburger -> croix */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Logo un peu plus compact sur mobile */
    .logo img {
        height: 60px !important;
    }
}

/* Hero Section */
.hero {
    background-image: url('Images/Fond.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: hue-rotate(45deg) brightness(0.85) saturate(1.3);
    padding: 3rem 1rem;
    text-align: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    font-family: 'Hey Yoga', 'Brush Script MT', 'Lucida Handwriting', cursive;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: #111827;
    max-width: 48rem;
    margin: 0 auto;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

/* Grid & Cards */
.sections {
    padding: 3rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: #111827;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    background: linear-gradient(135deg, var(--color-from), var(--color-to));
    min-height: 300px;
    justify-content: space-between;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    height: 4rem;
}

.card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* Card Colors - Pastel */
.card-violet {
    --color-from: #e9d5ff;
    --color-to: #ddd6fe;
}

.card-cyan {
    --color-from: #cffafe;
    --color-to: #a5f3fc;
}

.card-emerald {
    --color-from: #a7f3d0;
    --color-to: #99f6e4;
}

.card-amber {
    --color-from: #fef08a;
    --color-to: #fcd34d;
}

.card-pink {
    --color-from: #fbcfe8;
    --color-to: #f9a8d4;
}

.card-sky {
    --color-from: #bfdbfe;
    --color-to: #7dd3fc;
}

/* Quote Box */
.quote-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.quote-box p {
    font-size: 1.25rem;
    color: #1f2937;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
}

.quote-author {
    color: #6b7280;
    font-size: 0.95rem;
    font-style: normal;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/* Utility Classes */
.text-violet-900 { color: #581c87; }
.text-cyan-900 { color: #164e63; }
.text-emerald-900 { color: #065f46; }
.text-amber-900 { color: #78350f; }
.text-pink-900 { color: #831843; }
.text-sky-900 { color: #0c2d6b; }

.border-violet { border-color: rgba(88, 28, 135, 0.2); }
.border-cyan { border-color: rgba(22, 78, 99, 0.2); }
.border-emerald { border-color: rgba(6, 95, 70, 0.2); }

/* Page Sections */
.page-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 1rem;
    font-family: 'Hey Yoga', 'Brush Script MT', 'Lucida Handwriting', cursive;
}

.page-hero p {
    font-size: 1.125rem;
    color: #111827;
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}


.content-section {
    margin-bottom: 3rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    background: white;
    color: #111827;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ea580c, #b45309);
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
    padding: 2rem;
    border-radius: 1rem;
    color: #831843;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #831843;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item p:first-child {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.contact-info-item p:last-child {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.success-message.show {
    display: block;
}

/* Image Invert */
img[src*="téléchargement"] {
    filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .page-hero {
        padding: 2.5rem 1rem !important;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

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

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

    /* Grilles 2 colonnes en ligne -> 1 colonne sur mobile */
    .stack-mobile {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .card {
        min-height: auto;
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* L'arrière-plan "fixed" est cassé/saccadé sur iOS : on le fixe en scroll */
    .hero,
    .page-hero,
    body::before {
        background-attachment: scroll;
    }

    /* Titres de section et profils plus adaptés */
    h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .quote-box {
        padding: 2rem 1.25rem;
    }

    .quote-box p {
        font-size: 1.05rem;
    }

    /* Étoiles d'avis qui débordent : on réduit */
    .card div[style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }
}
