/* ===== VARIABLES ET RÉINITIALISATION ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #C41E3A;
    --color-secondary: #2C2C2C;
    --color-accent: #666666;
    --color-light: #F5F5F5;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    --spacing-unit: 1rem;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-secondary);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.25);
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: calc(var(--spacing-unit) * 0.75);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-unit);
}

p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* ===== HEADER ET NAVIGATION ===== */
header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

nav a {
    color: var(--color-white);
    font-weight: 500;
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

nav a:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

/* ===== BOUTON ACHETER DANS LA NAVIGATION ===== */
.nav-buy-button {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2) !important;
    border-radius: 4px;
    font-weight: 600 !important;
    border-bottom: 2px solid transparent !important;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-buy-button:hover {
    background-color: #a01629 !important;
    color: var(--color-white) !important;
    border-bottom-color: transparent !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95) 0%, rgba(44, 44, 44, 0.95) 100%), 
                url('MANUEL-COVERT-1.jpg') center/cover;
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 8) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-author {
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.cta-button-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
    margin-left: calc(var(--spacing-unit) * 1);
}

.cta-button-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* ===== SECTION PRÉSENTATION ===== */
.presentation {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-light);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}

.book-cover {
    text-align: center;
}

.book-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.book-cover img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.3);
}

.presentation-text h2 {
    color: var(--color-primary);
}

.key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 2);
}

.feature-item {
    background-color: var(--color-white);
    padding: var(--spacing-unit);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.feature-item h4 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== SECTION VIDÉO ===== */
.video-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-white);
}

.video-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ===== SECTION CONSEILS PRATIQUES ===== */
.practical-tips {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-light);
}

.practical-tips h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.tip-card {
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tip-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-unit);
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--color-accent);
}

/* ===== GALERIE D'IMAGES ===== */
.gallery-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-white);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    background-color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-unit);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-text {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== SECTION À PROPOS ===== */
.about-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-light);
}

.about-section h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
}

.about-content p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.about-content strong {
    color: var(--color-primary);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
}

.footer-content {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-content p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-white);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-unit);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .presentation-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

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

    .hero {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    nav {
        gap: var(--spacing-unit);
    }

    nav a {
        padding: calc(var(--spacing-unit) * 0.3) calc(var(--spacing-unit) * 0.5);
        font-size: 0.9rem;
    }

    .cta-button {
        display: block;
        margin-bottom: var(--spacing-unit);
    }

    .cta-button-secondary {
        margin-left: 0;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-unit);
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-unit);
    }

    nav {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 0.5);
        width: 100%;
    }

    nav a {
        display: block;
        text-align: center;
    }

    .hero {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

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

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: calc(var(--spacing-unit) * 4);
}

.mb-4 {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

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