
/* ============================================
   HOME PAGE - STYLES (REFACTORED)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
    --color-primary: #817c75;
    --color-secondary: #8b7355;
    --color-accent: #ecf0f1;
    --color-beige: #f5f1ed;
    --spacing-unit: 5rem;
    --transition: all 0.3s ease;
}

/* ============================================
   SEO CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: #9289838c;
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo .sr-only {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Menu burger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Fleche vers le bas */
.hero-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: bounce 2s infinite;
    background: none;
    border: none;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-arrow:hover svg {
    stroke-width: 3;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   UNIVERS GRID
   ============================================ */
.univers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    max-width: none;
    margin: 0;
    width: 100%;
}

.univers-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    height: 550px;
}

.univers-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.univers-card picture {
    display: block;
    width: 100%;
    height: 100%;
}

.univers-card img {
    width: 96%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu par dessus l'image */
.univers-card-content {
    width: 96%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}

.univers-card-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-discover {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn-discover:hover {
    background: var(--color-primary);
    transform: translateX(5px);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
    text-align: center;
}

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

.modal-content h2 {
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.modal-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #666;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-wrapper {
    margin: 2rem 0;
}

.carousel-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin: 1rem 0;

    img {
        max-height: 500px;
    }
}

.carousel-wrapper iframe {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
}

/* ============================================
   SECTION DYNAMIQUE (2 colonnes)
   ============================================ */
.dynamic-section {
    padding: 10rem var(--spacing-unit);
    width: 100%;
    margin-top: 10px;
    padding-top: 60px;
    padding-bottom: 12rem;
}

.img-section {
    max-height: 450px;
}

.dynamic-section .section-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.section-left {
    flex: 0 0 33.333%;
}

.section-right {
    flex: 0 0 33.333%;
}

.section-org {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 100px;
}

.section-content p,
.section-content h3 {
    color: #333;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--color-accent);
    border-radius: 0;
}

.contact-form h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.decorative-heart {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 200px;
    height: auto;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-beige);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.scroll-to-top:hover svg {
    stroke: white;
    animation: slideUpArrow 0.6s ease infinite;
}

@keyframes slideUpArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #eaded5;
    color: black;
    text-align: center;
    padding: 2rem var(--spacing-unit);
    margin-top: 3rem;

    a {
        color: #00000063;
        text-decoration: none;
        transition: color 0.3s ease;
    }
}

.footer p {
    margin: 0;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 1400px;
    border-radius: 0;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    padding: 3rem var(--spacing-unit);
    width: 100%;
}

.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Formulaire (1/3) */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-wrapper h2 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    margin: 0;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background: white;
}

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

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.contact-form .btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.contact-form .btn-submit:hover {
    background: var(--color-secondary);
}

/* Contenu (1/3) */
.contact-content {
    padding: 2rem;
    background: #eaded5;
    border-radius: 0;
}

.contact-content h3 {
    color: var(--color-primary);
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-content p {
    color: #666;
    line-height: 1.6;
}

/* Carte + Photo (1/3) */
.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 0;
    height: 546px;
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Bouton RDV en haut à droite de la section description */
.btn-rdv {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    margin-top: 1rem;
}

.btn-rdv:hover {
    background: var(--color-primary);
    transform: translateX(5px);
}

.reassurance {
    justify-content: center;
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding-top: 50px;
    gap: 10%;
    width: 80%;
    padding-bottom: 20px;
}