:root {
    --text-color: whitesmoke;
    --background: #0b0b0b;
    --lighter-background: #131313;
    --gold: #c4a661;
    --dark-gold: rgba(196, 166, 97, 0.05);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --gold-hover: #d4b671;
}
html {
    min-height: 100vh;
    max-width: 100vw;
}
body {
    height: 100%;
    width: 100%;
    background-color: var(--background);
    color: var(--text-color);
    padding: 0;
    margin: 0;
    font-size: 18px;

    font-family: "Times New Roman", Times, serif;
}
#miagency-home-header {
    /* background-color: red; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
    font-size: 3vh;
}
#miagency-home-header-banner {
    width: 100%;
    height: 100vh;
    filter: brightness(0.5) blur(5px);

    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);

    object-fit: cover;
    display: block;

    user-select: none;
    pointer-events: none;
    -webkit-user-select: none;
}
#miagency-home-header-text {
    position: absolute;
    /* font-size: 3rem; */
    text-align: center;
    padding: 1rem;
}
#miagency-home-header-text * {
    margin: 0;
}
#miagency-home-header-text h1 {
    color: var(--gold);
}
#miagency-home-header-text-under-title {
    color: rgb(206, 206, 206);
    /* font-size: 2rem; */
}
#miagency-home-header-text-slogan {
    margin: 3rem;
    font-weight: 900;
}

#miagency-home-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
    flex-wrap: wrap;
}
#miagency-home-cards-container h2 {
    color: var(--gold);
    font-size: 3rem;
}
.miagency-home-cards {
    /* border: 1px solid red; */
    border: 1px outset var(--gold);
    border-radius: 10px;
    background: linear-gradient(
        to top,
        rgb(29, 19, 0),
        var(--lighter-background)
    );
    height: 25rem;
    width: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    /* font-weight: 600; */
    line-height: 1.5;
}

.why-choose-us-section {
    background-color: var(--lighter-background);
    color: var(--text-light);
    padding: 80px 0;
    margin-top: 3rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.why-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.why-intro {
    flex: 1 1 400px;
    max-width: 500px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.gold-text {
    color: var(--gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.intro-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), transparent);
    border-radius: 2px;
}

.why-grid {
    flex: 1 1 500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: left;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(196, 166, 97, 0.1);
    border: 1px solid rgba(196, 166, 97, 0.3);
    border-radius: 12px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

.why-item h3 {
    font-family: serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.why-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.reviews-section {
    background-color: var(--lighter-background);
    padding: 80px 20px;
    font-family: "Inter", system-ui, sans-serif;
    color: #ffffff;
}

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

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-title {
    font-family: serif;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.carousel-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
}

.stars-container {
    display: flex;
    gap: 2px;
}

.star-icon {
    width: 24px;
    height: 24px;
    fill: var(--gold);
}
.star-icon.small {
    width: 16px;
    height: 16px;
}

.reviews-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 auto;
    width: 350px;
    background-color: #1a1a1a;
    border: 1px solid rgba(196, 166, 97, 0.2);
    border-radius: 12px;
    padding: 24px;
    scroll-snap-align: center;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.review-card:hover {
    border-color: rgba(196, 166, 97, 0.6);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.review-time {
    font-size: 0.8rem;
    color: #888888;
}

.google-logo {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #a0a0a0;
    background: #2a2a2a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

.carousel-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.nav-btn {
    background-color: transparent;
    border: 1px solid rgba(196, 166, 97, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: var(--gold);
    transition: fill 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--gold);
}

.nav-btn:hover .nav-icon {
    fill: #121212;
}

.contact-section {
    background-color: var(--lighter-background);
    padding: 80px 20px;
    color: white;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.contact-card {
    display: flex;
    background-color: #1a1a1a;
    border: 1px solid rgba(196, 166, 97, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.contact-info {
    flex: 1;
    background-color: #1f1f1f;
    padding: 40px;
    border-right: 1px solid rgba(196, 166, 97, 0.1);
}

.info-title {
    font-family: serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.1rem;
    color: #dddddd;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

a.info-value:hover {
    color: var(--gold);
}

.contact-form-wrapper {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--dark-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--gold);
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--gold-hover);
}

.site-footer {
    background-color: var(--background);
    color: #a0a0a0;
    font-family: "Inter", system-ui, sans-serif;
    padding-top: 60px;
    border-top: 1px solid rgba(196, 166, 97, 0.1);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-heading {
    font-family: serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.brand-title {
    font-family: serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 0 8px 0;
}

.brand-tagline {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.brand-details p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.highlight-text {
    color: var(--gold);
    font-weight: 600;
    margin-top: 8px !important;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold);
}

.phone-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.separator {
    color: #555555;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-label {
    color: #555555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Bottom Copyright Bar --- */
.footer-bottom {
    background-color: #050505;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
}

/* --- Responsivité (Mobile) --- */
@media (max-width: 768px) {
    .why-container {
        flex-direction: column;
        gap: 40px;
    }

    .why-intro {
        max-width: 100%;
        text-align: center;
    }

    .intro-divider {
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        width: 280px;
        padding: 20px;
    }

    .contact-card {
        flex-direction: column;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(196, 166, 97, 0.1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-heading::after {
        width: 60px;
    }

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