/* =================================================================
   NEXSAFAR - CHARTE GRAPHIQUE OFFICIELLE
   Design luxueux et élégant pour toutes les pages
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables CSS */
:root {
    --gold: #C9A962;
    --gold-light: #E8DCC4;
    --gold-dark: #A68B4B;
    --charcoal: #2C3E50;
    --charcoal-light: #34495E;
    --slate: #5D6D7E;
    --ivory: #FDFBF7;
    --cream: #F8F6F1;
    --white: #FFFFFF;
    --emerald: #1D8348;
    --coral: #E74C3C;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.16);
    --shadow-xl: 0 20px 60px rgba(44, 62, 80, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.4s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 15px;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.page-content, .container, .content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--charcoal);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
}

h2 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    margin-top: 40px;
}

h3 {
    font-size: 22px;
    color: var(--gold);
}

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Liens */
a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

/* Boutons */
.btn, button[type="submit"], input[type="submit"], .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--charcoal);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
    color: var(--charcoal);
}

.btn-secondary {
    background: var(--charcoal);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

/* Cartes */
.card, .box, .info-box, .price-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201, 169, 98, 0.1);
    transition: var(--transition-slow);
}

.card:hover, .box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 16px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 98, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
}

.badge-success {
    background: rgba(29, 131, 72, 0.15);
    border-color: var(--emerald);
    color: var(--emerald);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Listes */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
    line-height: 1.8;
}

ul li::marker {
    color: var(--gold);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--cream);
}

th {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
}

tr:hover {
    background: var(--ivory);
}

/* Formulaires */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--white);
    transition: var(--transition);
    margin-bottom: 16px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--charcoal);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Prix */
.price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}

.price-old {
    text-decoration: line-through;
    color: var(--slate);
    opacity: 0.6;
}

/* Sections */
.hero-section {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    color: var(--white);
    padding: 80px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 40px;
}

.info-section {
    background: var(--ivory);
    border-left: 4px solid var(--gold);
    padding: 24px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

/* Stats */
.stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
}

/* Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-cream { background: var(--cream); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .page-content, .container { padding: 24px 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .btn { width: 100%; padding: 16px 24px; }
    h1 { font-size: clamp(28px, 8vw, 36px); }
}
