:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0,0,0,0.06);
}

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

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* NAVBAR */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #fff, #fef2f2);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.lead {
    font-size: 18px;
    margin: 20px 0;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 10px var(--shadow);
}

/* SECTIONS */
.section {
    padding: 10px 0;
}

.bg-light {
    background: var(--bg-light);
}

h1, h2, h3 {
    margin-bottom: 16px;
}

.features, .pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 10px var(--shadow);
}

/* BUTTONS */
.btn {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-large {
    padding: 14px 24px;
    font-size: 16px;
}

/* PRICING */
.price {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
}

.highlight {
    border: 2px solid var(--primary);
}

/* FORM */
.contact-form {
    max-width: 500px;
}

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

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    margin: 5px 0;
}

.contact-card a {
    color: #0078d4;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.publisher, .legal {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

/* =========================
   CAROUSEL (FIXED)
   ========================= */

.carousel {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Hauteur FIXE */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 520px;
}

/* Une slide = une largeur écran */
.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

/* Image sans déformation */
.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Boutons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.carousel-btn.left { left: 12px; }
.carousel-btn.right { right: 12px; }

.carousel-btn:hover {
    background: #fee2e2;
}

.carousel-caption {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f0f0; /* couleur claire pour le texte */
    color: #333;
    font-size: 0.95rem;
    border-radius: 5px;
    text-align: center;
    min-height: 50px; /* évite que la hauteur change brutalement */
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
