/* ========================================
   A2Y AGENCEMENT - STYLE CSS
   Design: Artisanat Moderne Minimaliste
   Couleurs: Bleu marine (#1a3a52) + Or (#d4af37) + Crème (#f8f7f3)
   ======================================== */

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

:root {
    --color-navy: #1a3a52;
    --color-gold: #d4af37;
    --color-cream: #f8f7f3;
    --color-taupe: #6b6b6b;
    --color-light: #f0f4f8;
    --color-white: #ffffff;
    --color-border: #e8e8e8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-navy);
    background-color: var(--color-white);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-height: 90px;
    transition: box-shadow 0.2s ease-out;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .navbar {
        min-height: 70px;
    }
}

.navbar.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    min-height: 90px;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.5rem 1rem;
        min-height: 70px;
    }
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-logo img {
        height: 52px;
    }
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 60px;
    }
}

.navbar-menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    text-decoration: none;
    color: var(--color-navy);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-navy);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.navbar-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gold);
    padding: 1rem;
    gap: 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    margin-top: 90px;
    position: relative;
    padding: 6rem 0;
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    text-align: center;
    color: var(--color-white);
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-cream);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-out;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background-color: #c9a230;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline {
    border: 2px solid var(--color-cream);
    color: var(--color-cream);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--color-cream);
    color: var(--color-navy);
}

.btn-outline:active {
    transform: scale(0.97);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

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

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

.bg-cream {
    background-color: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.surtitle {
    font-family: 'Playfair Display', serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.subtitle {
    color: var(--color-taupe);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.gold-divider {
    height: 1px;
    background-color: var(--color-gold);
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .gold-divider {
        margin: 3rem 0;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-text p {
    color: var(--color-taupe);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-cream);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-out;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-taupe);
    font-size: 0.95rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-cream);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-out;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    margin-bottom: 1.5rem;
    line-height: 0;
}

.service-card [data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    stroke-width: 1.5;
}

.why-card [data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    stroke-width: 1.5;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 [data-lucide] {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    stroke-width: 1.5;
    vertical-align: -4px;
    margin-right: 0.4rem;
}

.footer-col li [data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    stroke-width: 1.5;
    vertical-align: -3px;
    margin-right: 0.4rem;
}

.floating-btn [data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--color-navy);
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-taupe);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   WHY SECTION
   ======================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.why-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--color-taupe);
    font-size: 0.95rem;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
}

.gallery-item.placeholder p {
    color: var(--color-navy);
    font-size: 0.9rem;
    text-align: center;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--color-white);
    text-align: center;
    padding: 1rem;
    font-weight: 500;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-out;
}

.review-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.stars {
    color: var(--color-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: var(--color-taupe);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author {
    color: var(--color-navy);
    font-weight: 600;
}

.reviews-footer {
    text-align: center;
}

.reviews-footer p {
    color: var(--color-taupe);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 2.5rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-map {
    border-radius: 0.5rem;
    overflow: hidden;
}

.contact-map iframe {
    border: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-cream);
    padding: 1rem;
    border-radius: 0.5rem;
}

.contact-card h3 {
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--color-taupe);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--color-taupe);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-cta {
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-navy);
    color: var(--color-cream);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-navy);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--color-navy);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-content a {
    color: var(--color-gold);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* ========================================
   FLOATING BUTTON
   ======================================== */

.floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 50;
}

.floating-btn:hover {
    background-color: #c9a230;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .floating-btn {
        display: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.pre-animate {
    opacity: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 20px, 0);
    -webkit-transform: translate3d(0, 20px, 0);
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.pre-animate,
.pre-animate.fade-in {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .pre-animate {
        opacity: 1;
        transform: none;
    }
    .fade-in {
        animation: none;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}
