/* ========================= */
/* BASE */
/* ========================= */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    color: #1d1d1d;
    background: url("fond.jpg") no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.35);
    z-index: -1;
}

/* ========================= */
/* IMAGES */
/* ========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================= */
/* HEADER */
/* ========================= */

header {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    position: relative;
}

.logo-container {
    position: absolute;
    left: 20px;
}

.logo {
    height: 100px;
}

/* ========================= */
/* MENU */
/* ========================= */

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: #1d1d1d;
    font-weight: 500;
    transition: 0.2s;
}

nav a:hover {
    color: #c0392b;
}

nav a.active {
    color: #c0392b;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
    text-align: center;
    padding: 30px 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    transition: 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* ========================= */
/* BOUTONS */
/* ========================= */

.btn {
    background: #c0392b;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn.secondary {
    background: #2c3e50;
}

.btn.whatsapp {
    background: #25D366;
}

/* ========================= */
/* SECTION */
/* ========================= */

.section {
    padding: 40px 15px;
    text-align: center;
}

/* ========================= */
/* CARDS */
/* ========================= */

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 15px;
    width: 180px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    border-radius: 10px;
    transition: 0.3s;
}

.card img:hover {
    transform: scale(1.05);
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-card {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;

    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    width: 100%;
    max-width: 320px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* ========================= */
/* TITRES */
/* ========================= */

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: #000;
    text-align: center;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #000;
    margin: 10px auto;
    opacity: 0.4;
}

h2 {
    font-weight: 600;
}

h3 {
    color: #c0392b;
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    text-align: center;
    padding: 20px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        height: auto;
    }

    .logo-container {
        position: static;
        margin-bottom: 10px;
    }

    .logo {
        height: 70px;
    }

    nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav a {
        width: 90%;
        padding: 10px;
        text-align: center;
        background: rgba(255,255,255,0.8);
        border-radius: 10px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ========================= */
/* AJOUT DEVIS (SAFE) */
/* ========================= */

.contact-card.vertical {
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.contact-card.vertical .contact-form {
    max-width: 400px;
    width: 100%;
}

.contact-card.vertical input,
.contact-card.vertical select,
.contact-card.vertical textarea {
    width: 100%;
}

/* ========================= */
/* BEST SELLER DESIGN SAFE */
/* ========================= */

.pricing-title {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    margin-bottom: 25px;
}

.pricing-card-premium {
    max-width: 320px;
    margin: 30px auto;
    padding: 30px 20px;

    background: linear-gradient(145deg, #ffffff, #f7f7f7);
    border-radius: 25px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);

    position: relative;
    transition: 0.3s;
    border: 2px solid #c0392b;
}

.pricing-card-premium:hover {
    transform: translateY(-6px) scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);

    background: #c0392b;
    color: white;

    padding: 6px 18px;
    border-radius: 30px;

    font-size: 12px;
    font-weight: bold;
}

.pricing-price {
    margin: 20px 0;
}

.price-small {
    font-size: 14px;
    color: #666;
    display: block;
}

.price-big {
    font-size: 52px;
    font-weight: bold;
    color: #c0392b;
}

.pricing-list li {
    margin: 8px 0;
}

/* ========================= */
/* TOOL FIX DESKTOP */
/* ========================= */

.badge-preview {
    width: 400px;
    height: 400px;
}

.badge-text {
    font-size: 30px;
}

/* ========================= */
/* 🔥 AJOUT TOOL MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .container {
        flex-direction: column;
        align-items: center;
    }

    .controls {
        width: 90%;
        margin-top: 20px;
    }

    .badge-preview {
        width: 85vw;
        height: 85vw;
        max-width: none;
        max-height: none;
    }

    .badge-text {
        font-size: 6vw;
    }

    input, select, button {
        font-size: 16px;
    }
}