/* Variables de couleurs */
:root {
    --color-cream: #F5F1E8;
    --color-rose-nude: #E8D5C4;
    --color-rose-light: #F5E6E0;
    --color-terracotta: #C97D60;
    --color-brown-cocoa: #6B4E3D;
    --color-text: #3A3A3A;
    --color-white: #FFFFFF;
    --color-light-cream: #FAF8F3;
    --color-shadow: rgba(107, 78, 61, 0.08);
    --color-shadow-hover: rgba(107, 78, 61, 0.15);
    --color-border: rgba(232, 213, 196, 0.5);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, var(--color-rose-light) 0%, var(--color-cream) 50%, var(--color-light-cream) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--color-white);
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), var(--color-rose-light));
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
}

.title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    color: var(--color-brown-cocoa);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: none;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-terracotta);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Section Hero */
.hero-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-rose-light) 100%);
}

.book-presentation {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.book-image-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    opacity: 1;
    transform: none;
}

.book-cover {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.book-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.book-description {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--color-text);
    font-weight: 400;
    position: relative;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preface-mention {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    opacity: 0.8;
    font-weight: 300;
}

.preface-mention strong {
    color: var(--color-brown-cocoa);
    font-weight: 600;
}

.book-price {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.price-badge {
    display: inline-flex;
    align-items: baseline;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(201, 125, 96, 0.25);
    transition: all 0.3s ease;
}

.price-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 125, 96, 0.35);
}

.price-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
}

.price-currency {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.95;
}

.price-note {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-top: 10px;
    opacity: 0.6;
    font-weight: 300;
}

/* Section Photos */
.author-photos-section {
    padding: 100px 0;
    background: var(--color-white);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--color-brown-cocoa);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-terracotta);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.photo-item {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: all 0.4s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--color-shadow-hover);
}

.author-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover .author-photo {
    transform: scale(1.05);
}

/* Section À propos */
.about-section {
    padding: 100px 0;
    background: var(--color-rose-light);
}

.about-content {
    background: linear-gradient(to right, var(--color-white) 0%, var(--color-rose-light) 100%);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-left: 4px solid var(--color-terracotta);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-align: justify;
    line-height: 1.9;
    color: var(--color-text);
}

.about-content strong {
    color: var(--color-brown-cocoa);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
}

/* Section Préface */
.preface-section {
    padding: 100px 0;
    background: var(--color-white);
}

.preface-content {
    background: var(--color-rose-light);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.preface-author {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--color-terracotta);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

.preface-author::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--color-terracotta);
}

.preface-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text);
}

.preface-text p {
    margin-bottom: 22px;
    text-align: justify;
}

.quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-brown-cocoa);
    text-align: center;
    padding: 40px;
    margin: 40px auto;
    max-width: 700px;
    border-left: 4px solid var(--color-terracotta);
    background: rgba(201, 125, 96, 0.05);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.preface-signature {
    text-align: right;
    margin-top: 40px;
    font-size: 1.15rem;
    color: var(--color-brown-cocoa);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.preface-signature strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Section Commande */
.order-section {
    padding: 100px 0;
    background: var(--color-rose-light);
}

.order-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--color-text);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.8;
}

.order-form {
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-rose-light) 100%);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-brown-cocoa);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--color-rose-light);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(201, 125, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.price-summary {
    background: var(--color-rose-light);
    padding: 0;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.price-summary-header {
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.price-summary-header svg {
    width: 18px;
    height: 18px;
}

.price-details {
    padding: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.price-label-detail {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 400;
    opacity: 0.8;
}

.price-value-small {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-number-small {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-brown-cocoa);
}

.price-currency-small {
    font-size: 0.85rem;
    color: var(--color-brown-cocoa);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-quantity {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-terracotta);
    background: rgba(201, 125, 96, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
    transition: transform 0.2s ease;
    display: inline-block;
}

.price-divider {
    height: 1px;
    background: var(--color-border);
    margin: 16px 0;
}

.price-line.total {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 2px solid var(--color-terracotta);
    background: rgba(201, 125, 96, 0.05);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 12px;
}

.price-label-total {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-brown-cocoa);
    letter-spacing: 0.5px;
}

.price-value-total {
    display: flex;
    align-items: baseline;
    gap: 5px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(201, 125, 96, 0.25);
    transition: all 0.3s ease;
}

.price-value-total:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(201, 125, 96, 0.35);
}

.price-number-total {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.price-currency-total {
    font-size: 0.9rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

.btn-order {
    width: 100%;
    padding: 18px 35px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 125, 96, 0.3);
}

.btn-order:hover {
    background: var(--color-brown-cocoa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 125, 96, 0.4);
}

.btn-order:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--color-brown-cocoa);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
    margin-top: 0;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 968px) {
    .book-presentation {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .book-cover {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 25px;
    }
    
    .header {
        padding: 40px 0 35px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .hero-section,
    .author-photos-section,
    .about-section,
    .preface-section,
    .order-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .book-description {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .about-content,
    .preface-content,
    .order-form {
        padding: 40px 30px;
    }
    
    .book-image-wrapper {
        padding: 0;
    }
    
    .quote {
        font-size: 1.2rem;
        padding: 30px 20px;
    }
    
    .btn-order {
        font-size: 0.95rem;
        padding: 16px 30px;
    }
    
    .price-number {
        font-size: 2rem;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-rose-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brown-cocoa);
}

/* Sélection de texte */
::selection {
    background: var(--color-terracotta);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-terracotta);
    color: var(--color-white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles pour les images manquantes */
img {
    display: block;
}

img[src=""],
img:not([src]) {
    display: none;
}
