/* GÉNÉRAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1F4E78;
    --secondary-color: #d9534f;
    --success-color: #5cb85c;
    --warning-color: #f0ad4e;
    --light-bg: #f9f9f9;
    --border-color: #ddd;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* HEADER */
header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

header .logo p {
    font-size: 12px;
    opacity: 0.9;
}

header nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

header nav a:hover,
header nav a.active {
    background: rgba(255,255,255,0.2);
}

.contact-quick {
    display: flex;
    gap: 10px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background: #1ba85c;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2e5c8a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-content > p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.price-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.price-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.price-card .tva {
    font-size: 14px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOUTONS */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #0d2140;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

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

.btn-success:hover {
    background: #449d44;
}

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

.btn-danger:hover {
    background: #ac2925;
}

/* SECTIONS */
.info-section {
    padding: 60px 20px;
    background: white;
}

.info-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step p {
    color: #666;
}

/* SECTION INFOS -->*/
.important-info {
    background: var(--light-bg);
    padding: 60px 20px;
}

.important-info h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* SECTION CONTENEURS */
.featured-section {
    padding: 60px 20px;
    background: white;
}

.featured-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.containers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.container-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.container-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.container-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
}

.container-card h3 {
    padding: 15px;
    color: var(--primary-color);
    margin-bottom: 0;
}

.condition {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
}

.pricing {
    padding: 0 15px;
}

.pricing p {
    margin: 8px 0;
    font-size: 14px;
}

.price-ttc {
    color: var(--secondary-color);
    font-size: 16px !important;
    font-weight: bold !important;
}

.status {
    padding: 0 15px 10px;
    font-size: 14px;
}

.status.disponible {
    color: var(--success-color);
}

.status.reserve {
    color: var(--warning-color);
}

.card-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.card-actions .btn {
    flex: 1;
    text-align: center;
}

.center {
    text-align: center;
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.contact-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* FOOTER */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
}

.footer-nav {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* PAGE PRINCIPALE */
main.container {
    padding: 40px 20px;
}

main h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* FILTRES */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* DEVIS */
.devis-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.devis-step {
    padding: 40px;
    display: none;
}

.devis-step.active {
    display: block;
}

.devis-step h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.selection-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(31, 78, 120, 0.1);
}

.devis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.devis-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.devis-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.devis-table tr:hover {
    background: var(--light-bg);
}

.devis-totals {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.total-row.highlight {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.confirmation-box {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-box h3 {
    color: #3c763d;
    margin-bottom: 10px;
}

.confirmation-box p {
    color: #3c763d;
    margin: 5px 0;
}

.devis-preview {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.info-box {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-box p {
    color: #8a6d3b;
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
    color: #8a6d3b;
}

.info-box li {
    margin: 5px 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* MODAL */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-body {
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav {
        justify-content: space-around;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-prices {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .containers-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        flex-direction: column;
    }

    .devis-table {
        font-size: 12px;
    }

    .devis-table th,
    .devis-table td {
        padding: 8px 4px;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header .logo h1 {
        font-size: 18px;
    }

    header nav {
        display: none;
    }

    .contact-quick {
        width: 100%;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    main.container {
        padding: 20px 10px;
    }

    main h1 {
        font-size: 24px;
    }
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge.disponible {
    background: #dff0d8;
    color: #3c763d;
}

.badge.reserve {
    background: #fcf8e3;
    color: #8a6d3b;
}

.badge.vendu {
    background: #f2dede;
    color: #a94442;
}
