/* ================= DEVIS HERO ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --primary: #8B1E1E;
    --secondary: #B83227;
    --accent: #F25C05;
    --light: #F4EDE9;
    --white: #FFFFFF;
    --text: #2E2E2E;
    --gray: #6B6B6B;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
}

.devis-header {
    text-align: center;
    padding: 100px 20px 70px;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.2)
    ),
    url('../pictures/slider1.jpg') center/cover no-repeat;

    color: white;
    position: relative;
}

.devis-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-shadow: 0 5px 20px rgba(0,0,0,0.7);
}

.devis-header h1 span {
    color: var(--accent);
}

.devis-header p {
    margin-top: 12px;
    font-size: 16px;
    opacity: 0.9;
}

/* ================= CONTAINER ================= */

.devis-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: -60px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ================= FORM ================= */

.devis-form {
    background: white;
    padding: 35px;
    border-radius: 18px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    gap: 18px;

    position: relative;
    overflow: hidden;

    transition: 0.3s;
}

/* 🔥 effet hover premium */
.devis-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

/* bande premium */
.devis-form::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.devis-form h3 {
    color: var(--primary);
    font-size: 18px;
}

/* ================= FORM ROW ================= */

.form-row {
    display: flex;
    gap: 12px;
}

.form-row div {
    flex: 1;
}

/* ================= INPUTS ================= */

.devis-form input,
.devis-form select,
.devis-form textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;

    background: #f9f9f9;

    transition: all 0.25s ease;
}

/* focus */
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;

    box-shadow: 0 0 0 4px rgba(242, 92, 5, 0.2);
}

/* ================= BUTTON ================= */

.devis-form button {
    margin-top: 10px;
    padding: 15px;
    border-radius: 12px;

    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;

    font-weight: 600;
    font-size: 16px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.devis-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ================= INFO BOX ================= */

.devis-info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;

    padding: 30px;
    border-radius: 18px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    gap: 20px;

    position: relative;
    overflow: hidden;

    transition: 0.3s;
}

.devis-info:hover {
    transform: translateY(-5px);
}

/* effet glow */
.devis-info::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    top: -50%;
    left: -50%;
}

/* titre */
.devis-info h3 {
    font-size: 20px;
}

/* ================= ITEMS ================= */

.info-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;

    transition: 0.2s;
}

.info-item::before {
    content: "✔";
    color: var(--accent);
    font-weight: bold;
}

.info-item:hover {
    transform: translateX(5px);
}

/* ================= CALL BUTTON ================= */

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.call-btn, .whatsapp-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Bouton appel */
.call-btn {
    background: white;
    color: var(--primary);
}

.call-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Bouton WhatsApp */
.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}
.contact-buttons {
    position: relative;
    z-index: 10;
}


/* ================= ANIMATION ================= */

.devis-form,
.devis-info {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.devis-info {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .devis-container {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .form-row {
        flex-direction: column;
    }

    .devis-header {
        padding: 80px 20px 50px;
    }
}

/* ================= PETIT MOBILE ================= */

@media (max-width: 480px) {

    .devis-header h1 {
        font-size: 26px;
    }

    .devis-header p {
        font-size: 14px;
    }

    .devis-form input,
    .devis-form select,
    .devis-form textarea {
        font-size: 13px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: 500;
    font-size: 14px;
}


/* ================= ALERT ================= */
.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;

    font-family: 'Poppins', sans-serif;

    animation: fadeIn 0.4s ease;
    transition: all 0.4s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ================= TEXT ================= */
.alert-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* ================= SUCCESS ================= */
.alert.success {
    background: linear-gradient(135deg, #e6f9f0, #f4fff9);
    border-left: 4px solid #28c76f;
    color: #0f5132;
}

/* ================= ERROR ================= */
.alert.error {
    background: linear-gradient(135deg, #ffeaea, #fff5f5);
    border-left: 4px solid #ea5455;
    color: #7a1c1c;
}

/* ================= PROGRESS BAR ================= */
.alert::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.2);
    animation: progressBar 5s linear forwards;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* ================= HIGHLIGHT ================= */
.highlight-alert {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* ================= ANIMATIONS ================= */
@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.devis-header {
    text-align: center;
    margin-bottom: 25px;
}

.devis-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* OFFRE (label) */
.offre-title {
    font-size: 34px !important;
    font-weight: 700;
}

/* NOM DE L’OFFRE */
.offre-title strong {
    font-size: 38px !important;
    color: #ff7a00;
    display: inline; /* garde tout sur la même ligne */
    margin-left: 5px;
}