* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

:root {
    --vert-pastel: #8B9D83;
    --beige-fonce: #C9B8A3;
    --blanc: #FFFFFF;
    --vert-fonce: #6B7D63;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F8F6F3 0%, #EBE8E3 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* Quand la page est chargée, on cache le loader */
.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}


body {
    font-family: 'Georgia', serif;
    color: #333;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    animation: fadeInBody 0.5s ease-out 0.3s forwards;
}
@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Effet de contraste pour texte sur images */
.green-contrast {
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.7);
}

.scrollToTop{
    background-color:pink !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 4rem;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 4rem;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vert-fonce);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li a {
    color: var(--vert-fonce);
    text-decoration: none;
    font-size: 1rem;
    font-style: italic;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.nav-separator {
    width: 4px;
    height: 4px;
    background: var(--beige-fonce);
    border-radius: 50%;
    opacity: 0.6;
}

/* Menu mobile */
.flower-btn {
    transition: transform 0.3s ease;
}

.flower-btn:hover {
    transform: rotate(90deg);
}

.flower-btn.open {
    transform: rotate(180deg);
}


/* ============================================
   ANIMATIONS HERO
   ============================================ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

@keyframes bounce-slow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

/* ============================================
   ANIMATION SECTION À PROPOS - CSS PURE
   ============================================ */

/* États initiaux */
.apropos-image {
    transition: all 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.apropos-text {
    transition: all 1.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop - Effet de chevauchement */
@media (min-width: 1024px) {
    .apropos-image {
        transform: translateX(0) scale(0.95);
    }
    
    .apropos-text {
        transform: translateX(-100px);
    }
    
    /* État visible */
    .apropos-image.apropos-visible {
        opacity: 1 !important;
        transform: translateX(-50px) scale(1);
    }
    
    .apropos-text.apropos-visible {
        opacity: 1 !important;
        transform: translateX(100px);
    }
}

/* Mobile - Animation simple */
@media (max-width: 1023px) {
    .apropos-image {
        transform: translateY(40px) scale(0.95);
    }
    
    .apropos-text {
        transform: translateY(40px);
    }
    
    /* État visible */
    .apropos-image.apropos-visible {
        opacity: 1 !important;
        transform: translateY(0) scale(1);
    }
    
    .apropos-text.apropos-visible {
        opacity: 1 !important;
        transform: translateY(0);
    }
}

/* Animation des enfants du texte */
.apropos-text.apropos-visible h2 {
    animation: fade-in-content 0.8s ease-out 0.3s both;
}

.apropos-text.apropos-visible p {
    animation: fade-in-content 0.8s ease-out 0.5s both;
}

@keyframes fade-in-content {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   OPTIMISATIONS PARALLAX
   ============================================ */

/* Banner parallax en fixed - l'effet classique */
.banner-parallax-bg {
    z-index: -10;
}

/* Force GPU acceleration pour les éléments animés */
.banner-parallax-bg,
.parallax-bg-2,
#section-apropos,
.image-container img,
.text-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Section parallax optimisée */
.banner-parallax-bg,
.parallax-bg-2 {
    will-change: transform;
}

/* Empêche le bounce sur iOS/macOS de révéler le fond */
html {
    overscroll-behavior-y: none;
}

body {
    overscroll-behavior-y: none;
}

/* Fix pour le banner qui reste visible après scroll sur mobile */
@media (max-width: 768px) {
    .banner-parallax-bg {
        position: absolute;
        height: 120vh;
        top: -10vh;
    }
}

/* ============================================
   ANIMATIONS DIVERSES
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(-5deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* ============================================
   NOTIFICATIONS ET MESSAGES
   ============================================ */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-enter {
    animation: slideInRight 0.3s ease-out;
}

.toast-exit {
    animation: slideOutRight 0.3s ease-out;
}

/* ============================================
   FORMULAIRES
   ============================================ */

.input-error {
    border-color: #ef4444 !important;
}

.error-message {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* ============================================
   CALENDRIER
   ============================================ */

.calendar-day {
    aspect-ratio: 1;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background-color: #EBE8E3;
}

.calendar-day.selected {
    background-color: #e5adc1;
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.time-slot {
    transition: all 0.3s ease;
}

.time-slot:hover:not(.disabled) {
    transform: translateY(-2px);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.time-slot.selected {
    background-color: #8B9D83;
    color: white;
    border-color: #8B9D83;
}

/* ============================================
   ÉTOILES / AVIS
   ============================================ */

.star-filled {
    color: #e5adc1;
}

.star-empty {
    color: #E8E3D8;
}

/* ============================================
   STRIPE ELEMENTS
   ============================================ */

.StripeElement {
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    transition: border-color 0.3s;
}

.StripeElement--focus {
    border-color: #8B9D83 !important;
    box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.1) !important;
}

.StripeElement--invalid {
    border-color: #EF4444;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
    }
    
    nav.scrolled {
        padding: 1rem 2rem;
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

/* Transitions fluides pour tous les liens et boutons */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration des performances sur mobile */
@media (max-width: 1024px) {
    .parallax-bg-2 {
        background-attachment: scroll;
    }
}

/* ============================================
   UTILITIES CUSTOM
   ============================================ */

.border-t-7 {
    border-top-width: 7px;
}

.border-b-7 {
    border-bottom-width: 7px;
}

/* Gestion du scroll smooth pour Alpine.js */
[x-show] {
    transition: all 0.3s ease-in-out;
}

/* Prevent layout shift */
img {
    display: block;
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}


.hover-soft {
    transition: all .4s ease;
}
.hover-soft:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}




/* resa */
/* Styles pour le calendrier */
.calendar-day {
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-day:not(.disabled):hover {
    background-color: #8B9D83;
    color: white;
    border-color: #8B9D83;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-day.selected {
    background-color: #e5adc1 !important;
    color: white !important;
    border-color: #e5adc1 !important;
    font-weight: 600;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Styles pour les créneaux horaires */
.time-slot {
    transition: all 0.2s ease;
}

.time-slot:not(.disabled):hover {
    background-color: #8B9D83;
    color: white;
    border-color: #8B9D83;
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: #8B9D83 !important;
    color: white !important;
    border-color: #8B9D83 !important;
    font-weight: 600;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
}

/* Animation pour x-cloak */
[x-cloak] {
    display: none !important;
}

/* Scrollbar personnalisée */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #8B9D83;
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #6B7D63;
}

/* Styles responsive pour mobile */
@media (max-width: 768px) {
    .calendar-day {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .time-slot {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Animation pour les transitions */
[x-transition] {
    transition: all 0.3s ease-in-out;
}

/* Amélioration du focus pour l'accessibilité */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #8B9D83;
    outline-offset: 2px;
}

/* Checkbox personnalisée */
input[type="checkbox"]:checked {
    background-color: #8B9D83;
    border-color: #8B9D83;
}

/* Animation du spinner de chargement */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


/* fiches conseil */
.line-clamp-2 {
    display: -webkit-box;
    line-clamp:2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    line-clamp:3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-content h2 {
    font-size: 1.875rem;
    font-weight: 300;
    color: #6B7D63;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Allura', cursive;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6B7D63;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: #6B7D63;
    font-weight: 600;
}

.article-content a {
    color: #8B9D83;
    text-decoration: underline;
}

.article-content a:hover {
    color: #6B7D63;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: fadeInUp 0.6s ease-out backwards;
}

.article-content p, 
 .article-content li{
    font-size: 0.875rem; /* text-sm */
}

/* Délais d'animation en cascade pour chaque colonne */
.space-y-8 article:nth-child(1) { animation-delay: 0.1s; }
.space-y-8 article:nth-child(2) { animation-delay: 0.3s; }
.space-y-8 article:nth-child(3) { animation-delay: 0.5s; }
.space-y-8 article:nth-child(4) { animation-delay: 0.7s; }
.space-y-8 article:nth-child(5) { animation-delay: 0.9s; }
.space-y-8 article:nth-child(6) { animation-delay: 1.1s; }

/* Effet de décalage diagonal entre les colonnes */
@media (min-width: 768px) {
    .md\:mt-32 {
        margin-top: 8rem; /* 128px */
    }
     .article-content p,
     .article-content li {
        font-size: 1rem; /* text-base */
    }
}

