/**
 * Styles principaux - Photos-Book.fr
 * Design moderne et élégant pour site vitrine
 */

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== UTILITAIRES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.title-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.2rem;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 16px;
}

/* ===== HEADER ET NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 80px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo (à gauche) */
.header-logo {
    flex: 0 0 auto;
    min-width: 250px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    background: #2563eb;
    border-radius: 8px;
    padding: 8px;
}

.logo-text {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

/* Navigation (au centre) */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Boutons d'action (à droite) */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    justify-content: flex-end;
}

.btn-demo,
.btn-start {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.btn-demo {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background: transparent;
}

.btn-demo:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-start {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Mobile toggle (caché par défaut) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-line {
    width: 24px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation mobile (cachée par défaut) */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-menu {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.mobile-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-item:last-child {
    border-bottom: none;
}

.mobile-link {
    display: block;
    padding: 1rem 0;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--color-primary);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-mobile {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

/* Overlay mobile */
.mobile-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 80px;
}

/* ===== SECTIONS COMMUNES ===== */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(31, 41, 55, 0.7);
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--color-light) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 8rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(31, 41, 55, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(31, 41, 55, 0.2);
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.floating-qr {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.qr-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.qr-image {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.qr-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.qr-subtitle {
    font-size: 0.8rem;
    color: rgba(31, 41, 55, 0.6);
}

.floating-notification {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.notification-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.notification-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.notification-text {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.8rem;
    color: rgba(31, 41, 55, 0.6);
}

.floating-photos {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.photo-item {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(31, 41, 55, 0.6);
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -150px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--color-white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-main {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.qr-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.gallery-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.book-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.slideshow-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.download-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.albums-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.feature-description {
    color: rgba(31, 41, 55, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(31, 41, 55, 0.7);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.feature-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(31, 41, 55, 0.6);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feature-highlight {
    margin-top: 1rem;
}

.highlight-badge {
    background: linear-gradient(135deg, var(--color-accent), #f97316);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-duration {
    text-align: center;
    margin-top: 1rem;
}

.duration-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.duration-label {
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.6);
}

.feature-automation {
    margin-top: 1rem;
}

.auto-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.features-cta {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--color-light), rgba(37, 99, 235, 0.05));
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(31, 41, 55, 0.7);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
}

.cta-image {
    width: 100%;
    height: auto;
}

.features-decoration {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.decoration-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    position: absolute;
    top: -100px;
    right: -100px;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}