/* === VARIABLES & STYLES GLOBAUX === */
:root {
    /* Typographie unifiée */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Palette minimaliste pastel */
    --color-primary: #A8C4A2;      /* Vert sauge très doux */
    --color-primary-light: #E8F3E8; /* Vert pastel clair */
    --color-primary-dark: #7A9A7E;  /* Vert doux pour texte */
    
    /* Arrière-plans clairs */
    --color-background: #FDFEFE;    /* Blanc presque pur */
    --color-surface: #FFFFFF;       /* Blanc pur pour cartes */
    --color-surface-alt: #F9FAFB;   /* Gris très clair */
    
    /* Textes doux */
    --color-text: #5A6C7D;          /* Gris-bleu doux */
    --color-text-light: #8395A7;    /* Gris-bleu clair */
    --color-text-dark: #364152;     /* Gris-bleu foncé pour titres */
    
    /* Accents subtils */
    --color-accent: #F5E6E0;        /* Rose poudré très pâle */
    --color-border: #E5E7EB;        /* Bordure gris clair */
    
    /* Ombres très douces */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.02);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.05);
    
    /* Espacement généreux */
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    
    /* Rayons de bordure doux */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Compatibilité anciennes variables */
    --font-serif: 'Merriweather', Georgia, serif; /* Serif réel pour contraste typographique */
    --font-sans: var(--font-primary);
    --color-light: var(--color-surface-alt);
    --color-secondary: var(--color-primary-light);
    /* Hauteur fixe de la nav de création pour caler le contenu */
    --create-nav-height: 56px;
}

/* Calque artistique flottant dans le hero */
.hero-floating {
    position: absolute;
    inset: 0;
    z-index: 2; /* entre l'overlay et le contenu */
    pointer-events: none;
    overflow: hidden;
}

/* Orbits: font tourner des éléments autour d'un centre (texte du hero) */
.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0; height: 0;
    pointer-events: none;
    transform-origin: 0 0;
    animation: orbit-spin var(--dur, 40s) linear infinite;
}
.orbit.reverse { animation-direction: reverse; }

.orbit .float-item {
    /* placer l'élément sur le rayon à un angle initial */
    transform: rotate(var(--start, 0deg)) translateX(var(--radius, 220px));
}

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.float-item {
    position: absolute;
    color: var(--color-text);
    opacity: 1; /* lisibilité accrue : laisser l'opacité au niveau de l'image */
    filter: blur(0.2px);
    user-select: none;
    will-change: transform, opacity;
}
.float-item.word {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.float-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    opacity: 0.6; /* plus visible */
    /* Flou léger + boost lisibilité */
    filter: blur(0.6px) saturate(1.05) brightness(1.07);
    outline: 1px solid rgba(255,255,255,0.35);
    outline-offset: 0;
}

@keyframes driftUp {
    0% { transform: translate3d(var(--x, 0), 20%, 0) scale(var(--s,1)); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.9; }
    100% { transform: translate3d(calc(var(--x, 0) + 20px), -30%, 0) scale(var(--s,1)); opacity: 0; }
}

@keyframes sway {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

.float-item.animate {
    animation: driftUp var(--dur, 24s) linear infinite;
}
.float-item.sway {
    animation: driftUp var(--dur, 26s) linear infinite, sway calc(var(--dur, 26s) / 4) ease-in-out infinite;
}

/* Reset navigateur minimal */
body { margin: 0; }

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === PAGE SOUVENIR & APERÇU === */
.memorial-page {
    background: var(--color-background);
    min-height: 100vh;
}
.preview-controls {
    position: static; /* not fixed: renders at its DOM position (end of page) */
    width: auto;
    background: transparent;
    border-top: none;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.preview-controls button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#edit-button {
    background: #fff;
    color: var(--color-text-dark);
}

#confirm-button {
    background: var(--color-primary);
    color: #fff;
}

#edit-button:hover, #confirm-button:hover {
    transform: scale(1.05);
}
.souvenir-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 80px rgba(0,0,0,0.15);
    overflow: hidden;
}

.souvenir-container.elegant {
    box-shadow: 0 30px 100px rgba(0,0,0,0.2);
}

.souvenir-header {
    position: relative;
    text-align: center;
    color: white;
}

.souvenir-header.enhanced {
    height: 500px;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%, rgba(0,0,0,0.3));
    z-index: 1;
}

.cover-image-container {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cover-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.header-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.souvenir-header h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0 20px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.souvenir-header .dates { 
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

.quote {
    margin: 20px auto;
    padding: 0 40px;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    font-size: 1.3rem;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
    max-width: 600px;
    line-height: 1.6;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.souvenir-body {
    padding: 40px 50px;
}

.souvenir-body.enhanced {
    padding: 60px 70px;
}

.section-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0.7;
}

.biography-section h2, .photos-section h2, .videos-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.biography-section h2::after, .photos-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.biography-content {
    background: #fafafa;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
}

.biography-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: justify;
    white-space: pre-wrap;
    color: #444;
}

.media-section {
    margin-top: 50px;
}

#souvenir-video video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.video-item video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery.enhanced {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 15px;
}

/* Book photo avec différentes tailles */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 10;
}

.photo-main {
    grid-column: span 3;
    grid-row: span 2;
}

.photo-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery.enhanced {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .photo-main {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .photo-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.memorial-footer {
    background: var(--color-surface);
    color: var(--color-text);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--color-border);
}

.footer-content .memory-eternal {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.28; /* voile plus léger pour laisser les slides apparaître */
}

.footer-content .created-by {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === LIGHTBOX MODAL === */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Styles pour les hashtags et sections démonstration */
.demo-explanation {
    background: var(--color-surface-alt);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.demo-explanation h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.hashtag {
    background: var(--color-primary-light);
    color: var(--color-text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Styles pour les autres pages (accueil, création) */
/* On garde des styles simples pour ne pas tout casser */
/* === PAGE D'ACCUEIL === */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.nav-cta:hover {
    transform: scale(1.05);
}

.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--hero-bg-image, none), url('../hero-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.06);
    z-index: 0;
    opacity: 0.35; /* fond fixe très léger pour laisser les slides dominer */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    opacity: 0.18; /* voile plus léger */
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-primary-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.hero-content {
    position: relative;
    z-index: 3; /* au-dessus des éléments flottants */
    max-width: 900px;
    margin: 0 auto;
}
.hero-text {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(255,255,255,0.25); /* laisse davantage apparaître l'arrière-plan */
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Diaporama en fond du hero */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 2; /* entre overlay et contenu */
    pointer-events: none;
    overflow: hidden;
}
.hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1; /* sous les slides, au-dessus du fond */
    pointer-events: none;
    opacity: 0.03; /* grain à peine perceptible */
    mix-blend-mode: soft-light;
    background-size: 300px 300px;
    background-repeat: repeat;
    animation: grainShift 60s linear infinite;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(#n)'/></svg>");
}
.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: 108%; /* marge pour un zoom léger sans voir les bords */
    transition: opacity 3s ease; /* fondu plus long et doux */
    will-change: opacity, transform;
    filter: saturate(1) brightness(0.95);
    z-index: 2; /* au-dessus du grain */
    opacity: 0; /* état par défaut: invisible */
    transform: translateZ(0); /* force GPU acceleration pour fluidité */
}
.hero-slideshow .slide.active {
    opacity: 0.32; /* plus visible pour percevoir clairement la transition */
    animation: subtleKenBurns 20s linear forwards; /* mouvement très doux et constant */
}

@keyframes subtleKenBurns {
    0% { 
        background-position: 50% 50%; 
        background-size: 108%; 
    }
    100% { 
        background-position: 51% 49%; 
        background-size: 110%; 
    }
}

@keyframes kenburns {
    0% { background-position: 50% 50%; background-size: 108%; }
    100% { background-position: 50% 50%; background-size: 112%; }
}

@keyframes grainShift {
    0% { transform: translate(0,0); }
    100% { transform: translate(-4px, 4px); }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0,0,0,0.12);
    font-weight: 600;
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--color-text);
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,0.10);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.cta-button.secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--color-primary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.cta-button.primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.cta-button.primary:active {
    transform: scale(0.95) translateY(0px);
    transition: transform 0.1s ease;
}

.cta-button.primary.clicked {
    animation: qrButtonClick 0.6s ease-out;
}

@keyframes qrButtonClick {
    0% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
    }
    25% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
    }
    50% { 
        transform: scale(0.98); 
        box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.5);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
    }
}

/* Particules de paillettes */
.sparkle-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #fff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: sparkleFloat 1.2s ease-out forwards;
}

.sparkle-particle:nth-child(odd) {
    background: linear-gradient(45deg, #ff6b9d, #ffc3e1, #fff);
}

.sparkle-particle:nth-child(3n) {
    background: linear-gradient(45deg, #4ecdc4, #a8e6cf, #fff);
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg) translateY(-80px);
    }
}

.cta-button.secondary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.button-icon {
    font-size: 1.1rem;
}

.button-icon-img {
    width: 56px;
    height: 56px;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
    /* Suppression du filtre pour afficher l'image QR.png normalement */
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    min-width: 140px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-display);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Values Section */
.values-section {
    padding: var(--spacing-2xl) 5%;
    background: var(--color-background);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-container h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

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

.value-card {
    background: var(--color-surface);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 5%;
    background: white;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-container h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

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

.testimonial-card {
    background: #fafafa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    font-family: var(--font-serif);
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    margin: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.author-info span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.features-section {
    padding: 100px 5%;
    text-align: center;
    background: var(--color-background);
}

.features-section h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 60px;
}

/* Simple Steps */
.simple-steps {
    padding: 80px 5%;
    text-align: center;
}

.simple-steps h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.step-body { padding: var(--spacing-md); }
.step-body h3 { margin: 0 0 6px 0; color: var(--color-text-dark); }
.step-body p { margin: 0; color: var(--color-text); }

/* Process Timeline */
.process-timeline {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.timeline-icon {
    font-size: 2.5rem;
    margin-right: 25px;
    min-width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    flex: 1;
    text-align: left;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.timeline-connector {
    display: none; /* Masqué car on utilise les cartes */
}

/* CTA Section */
.cta-section {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 80px 40px;
    border-radius: 20px;
    margin: 80px auto 0 auto;
    max-width: 1100px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.value-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto var(--spacing-md) auto;
    box-shadow: var(--shadow-md);
    display: block;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* === MODALE DE SUCCÈS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#preview-modal-content {
    width: 90%;
    height: 85%;
    max-width: 1000px;
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#preview-modal-content iframe {
    flex-grow: 1;
    border: none;
}

/* Close button for preview modal */
.close-preview-btn {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.close-preview-btn:hover { background: rgba(0,0,0,0.5); }

/* Prevent background scroll when modal open */
body.modal-open { overflow: hidden; }

.modal-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-card h2 {
    font-family: var(--font-serif);
    margin: 0 0 10px 0;
}

#qrcode {
    margin: 20px auto;
    padding: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: inline-block;
}

.souvenir-link-button-wrapper {
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: inline-block;
}

.souvenir-link-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.souvenir-link-button:hover {
    background: var(--color-primary-dark);
}

.close-modal-button {
    background: none;
    border: none;
    color: var(--color-text-light);
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background: var(--color-background);
    color: var(--color-text);
    padding: 80px 5% 30px 5%;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.footer-section p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--color-text-dark);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.footer-social span {
    color: var(--color-text);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.social-link:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    margin: 0;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === PAGE DE CRÉATION === */
.create-page {
    background: var(--color-background);
    min-height: 100vh;
    padding-top: var(--create-nav-height); /* calage exact sous la nav, sans gap visuel */
}

.create-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

/* Nav plus compacte spécifiquement sur la page de création */
.create-page .create-nav {
    height: var(--create-nav-height);
    padding: 0 var(--spacing-md);
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.steps-indicator {
    display: flex;
    gap: 2rem;
}

.step {
    color: #999;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.step.active {
    color: var(--color-primary);
    font-weight: 600;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.create-container {
    max-width: 800px;
    margin: 100px auto 40px;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-header {
    padding: 30px 40px;
    background: var(--color-light);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #ddd;
}

.form-header.gradient {
    background: var(--color-surface); /* Supprime le bandeau vert visuel */
    color: var(--color-text-dark);
    padding: 16px 40px; /* réduit fortement la hauteur */
    text-align: center;
    margin-top: 0; /* plus de décalage inutile */
}

/* Sur les pages de création, on masque l'entête pour supprimer toute marge visuelle */
.create-page .form-header.gradient { display: none; }

.form-header.gradient h1 {
    color: var(--color-text-dark);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-header.gradient p {
    color: var(--color-text);
    font-size: 1.1rem;
}

.form-header h1 {
    font-family: var(--font-serif);
    margin: 0;
}

.form-header p {
    margin: 5px 0 0 0;
    color: #555;
}

.form-wrapper {
    padding: 0 40px 30px; /* supprime l'espace au-dessus des sections */
}

/* Conteneur principal de création (compense la nav fixe) */
.form-container.modern {
    max-width: 1000px;
    margin: 0 auto 40px; /* aucun espace inutile au-dessus du contenu */
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s;
    position: relative;
    z-index: 1;
}

/* S'assurer qu'aucune marge supérieure ne se glisse au début du formulaire */
.create-page .form-section:first-of-type { margin-top: 0; }
.create-page .section-header { margin-top: 0; }

.form-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Supprimer toute marge par défaut sur le titre de section */
.section-header h2 { margin: 0; }

.section-number {
    background: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modern Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.modern-input, .modern-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
}

.modern-input:focus, .modern-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

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

.label-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
}

.ai-btn.secondary {
    background: #f0f0f0;
    color: var(--color-text);
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ai-icon {
    font-size: 1.1rem;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

legend {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

form input[type="text"],
form input[type="date"],
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 20px;
}

.date-group {
    display: flex;
    gap: 20px;
}

.date-group > div {
    flex: 1;
}

/* Media Upload Zone */
.media-upload-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.upload-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px dashed var(--color-border);
    transition: all 0.3s;
}

.upload-card:hover {
    border-color: var(--color-primary);
    background: #f5f6f7;
}

.upload-header {
    margin-bottom: 1rem;
}

.upload-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.upload-header small {
    color: var(--color-text-light);
}

.upload-area {
    display: block;
    cursor: pointer;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.upload-placeholder {
    color: #999;
}

.upload-placeholder svg {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--color-text);
}

.file-info {
    font-size: 0.85rem;
    color: #999;
}

.hidden-input {
    display: none;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* Preview item card for uploaded media */
.media-preview-grid .preview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.media-preview-grid .preview-item img,
.media-preview-grid .preview-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.media-preview-grid .preview-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.media-preview-grid .preview-item .mini-btn {
    background: var(--color-primary, #6b7280);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.media-preview-grid .preview-item .mini-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Drag & drop visual cue */
.upload-area.drag-over {
    outline: 2px dashed var(--color-primary, #6b7280);
    outline-offset: 4px;
    background: rgba(107, 114, 128, 0.06);
}

.preview-item {
    position: relative;
    border-radius: 8px;
    background: #ffffff;
    animation: slideUp 0.3s;
}

.preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #ff4444;
    font-weight: bold;
    transition: all 0.2s;
}

.preview-item .remove-btn:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

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

/* Options de thème et typographie */
/* Customization Grid */
.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.custom-group.full-width {
    grid-column: 1 / -1;
}

.theme-selector {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.theme-card {
    flex: 1;
    cursor: pointer;
}

.theme-card input {
    display: none;
}

.theme-preview {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    background: var(--color-surface);
    margin: 1rem 0;
}

.classic-preview {
    background: #ffffff;
    color: var(--color-text-dark);
}

.sage-preview {
    background: #F0F6F2; /* vert très pâle */
    color: #2f3a33;
}

.nocturne-preview {
    background: #1b2230;
    color: #eaeaea;
}

.theme-card input:checked + .theme-preview {
    border-color: var(--color-primary);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Mini maquettes dans les cartes de thème */
.theme-preview .sample-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin: 0 0 6px 0;
}
.theme-preview .sample-text {
    font-size: 0.85rem;
    margin: 0 0 10px 0;
}
.theme-preview .sample-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}
.classic-preview .sample-btn { background: var(--color-primary); color: #fff; }
.sage-preview .sample-btn { background: #6D8B74; color: #fff; }
.nocturne-preview .sample-btn { background: #8aa6ff; color: #000; }

.typo-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.typo-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.typo-option input {
    display: none;
}

.typo-preview.serif {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.typo-preview.sans {
    font-family: var(--font-sans);
    font-size: 1.2rem;
}

.typo-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Live Preview (Step 03) */
.live-preview {
    margin-top: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.live-preview .lp-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: var(--color-text-dark);
}
.live-preview .lp-text { margin: 0 0 12px 0; color: var(--color-text); }
.live-preview .lp-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.live-preview .lp-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-surface-alt), var(--color-background));
    box-shadow: var(--shadow-sm);
    margin: 0 0 12px 0;
}

/* Theme variables applied locally to the preview card */
.live-preview.theme-sage {
    --color-background: #F7FAF7;
    --color-text: #2f3a33;
    --color-primary: #6D8B74;
    --color-secondary: #A7C4BC;
    --color-light: #E9F1EC;
}
.live-preview.theme-nocturne {
    --color-background: #0f1216;
    --color-text: #eaeaea;
    --color-primary: #8aa6ff;
    --color-secondary: #3b3f52;
    --color-light: #141922;
}

/* Theme specific accent tweaks */
.live-preview.theme-sage .lp-photo { border-color: #6D8B74; }
.live-preview.theme-nocturne .lp-photo { border-color: #3b3f52; background: linear-gradient(135deg, #10151b, #1b2230); }
.live-preview.theme-nocturne .lp-btn { color: #000; }

.live-preview.font-serif { font-family: var(--font-serif); }
.live-preview.font-sans  { font-family: var(--font-sans); }

#image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.preview-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#image-preview-container .preview-image-wrapper:first-child::after {
    content: 'Couverture';
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.input-note {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: -5px 0 10px 0;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.prev {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.nav-btn.next {
    background: var(--color-primary);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-button {
    padding: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.submit-button.animated {
    box-shadow: var(--shadow-md);
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--color-primary-dark);
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s;
}

.submit-button:hover .button-bg {
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-nav {
        padding: 0 var(--spacing-md);
    }
    
    .steps-indicator {
        display: none;
    }
    
    .form-container.modern {
        margin: 0 1rem 1rem; /* supprime l'espace inutile en haut */
        border-radius: 20px;
    }
    
    .date-row, .media-upload-zone, .customization-grid, .steps-container {
        grid-template-columns: 1fr;
    }
    
    .theme-selector {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn, .submit-button {
        width: 100%;
    }
}

/* Thèmes globaux appliqués par classe sur body */
body.theme-sage {
    --color-background: #F7FAF7;
    --color-text: #2f3a33;
    --color-primary: #6D8B74;
    --color-secondary: #A7C4BC;
    --color-light: #E9F1EC;
}

body.theme-nocturne {
    --color-background: #0f1216;
    --color-text: #eaeaea;
    --color-primary: #8aa6ff;
    --color-secondary: #3b3f52;
    --color-light: #141922;
}

/* Font preferences */
body.font-serif { font-family: var(--font-serif); }
body.font-sans  { font-family: var(--font-sans); }

.label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-button {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.ai-button:hover {
    background: var(--color-light);
}

.ai-status {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Spinner */
.loading-container {
    text-align: center;
    padding: 30px 40px;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto 10px auto;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.02) inset;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-status {
    margin: 6px 0 12px 0;
    color: var(--color-text);
}
.loading-percent {
    margin: 4px 0 10px 0;
    color: var(--color-text-light);
    font-weight: 600;
}
.progress {
    width: 100%;
    height: 8px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transition: width 0.3s ease;
}
