:root {
    --primary: #A91927;
    --primary-dark: #7B121B;
    --primary-light: #C73A48;
    --white: #FFFFFF;
    --cream: #F6F2EE;
    --black: #181818;
    --gray: #555555;
    --light-gray: #EEEEEE;
    --shadow: rgba(0,0,0,.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.accent {
    color: var(--primary);
}

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

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
}

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

.burger {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-bg.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: white;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

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

/* Sections */
section {
    padding: 6rem 0;
}

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

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

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

.section-tag {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Page Inner Hero (sous-pages) */
.page-hero-inner {
    background: var(--black);
    padding: 5rem 0 4rem;
    text-align: center;
}

/* Concept photo */
.concept-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
}

/* About page grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
}

.about-text h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1.2rem;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.8rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cream);
    color: var(--primary-dark);
    border: 1px solid var(--light-gray);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge i {
    color: var(--primary);
}

/* Offre list (about page) */
.offre-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.offre-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    transition: var(--transition);
}

.offre-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--shadow);
}

.offre-icon {
    width: 52px;
    height: 52px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.offre-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.offre-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Photo gallery (about page) */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.gallery-img--large {
    height: 340px;
}

/* Concept Grid */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.concept-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.concept-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--light-gray);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary);
}

.card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.3rem;
}

.card-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--light-gray);
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.card-premium:hover .card-icon {
    background: var(--primary);
    color: white;
}

.offer-list {
    margin-top: 2rem;
    text-align: left;
}

.offer-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray);
}

.offer-list i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Info Banner */
.info-banner {
    background: var(--black);
    color: white;
    border-radius: 30px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.info-banner h2 {
    color: white;
    font-size: 2rem;
}

.info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hours-box {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hour-row:last-child {
    border-bottom: none;
}

/* Contact Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    color: var(--primary);
    width: 30px;
}

/* Form fields — Team Maohi pattern */
.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: .84rem;
    color: var(--black);
    margin-bottom: .45rem;
    letter-spacing: .2px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(169,25,39,0.12);
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-consent {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .86rem;
    color: var(--gray);
    margin-bottom: 1.1rem;
    cursor: pointer;
}

.field-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.field-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.form-note {
    font-size: .78rem;
    color: var(--gray);
    text-align: center;
    margin-top: .9rem;
}

/* Success panel — animated like Team Maohi */
.form-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
}

.form-success.show {
    display: block;
    animation: pop .5s cubic-bezier(.2,1.3,.4,1);
}

@keyframes pop {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: none; }
}

.form-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: white;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: .5rem;
}

.form-success p {
    color: var(--gray);
}

.legal-content {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--primary);
    margin-top: 2rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 0.8rem;
}

.legal-content ul {
    list-style: disc;
    margin: 0.5rem 0 1rem 1.3rem;
}

.legal-content ul li {
    margin-bottom: 0.4rem;
}

.legal-content .legal-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.85rem;
    color: var(--gray);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-about {
    max-width: 300px;
}

.footer-nav h4, .footer-legal h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-nav ul a, .footer-legal ul a {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-nav ul a:hover, .footer-legal ul a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .burger {
        display: none;
    }
    .concept-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
    .info-banner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .info-right {
        flex-direction: row;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 4.5rem;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .offre-list-grid {
        grid-template-columns: 1fr 1fr;
    }
    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-img--large {
        grid-column: span 2;
    }
}

@media (max-width: 580px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ── Cookie Banner ── */
#cv-cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 360px;
    width: calc(100vw - 2rem);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14), 0 2px 12px rgba(0,0,0,0.07);
    transform: translateY(calc(100% + 2.5rem));
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
    pointer-events: none;
}

#cv-cookie-banner.cv-cb--in {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#cv-cookie-banner.cv-cb--out {
    transform: translateY(calc(100% + 2.5rem));
    opacity: 0;
    pointer-events: none;
}

.cv-cb__wrap {
    padding: 1.4rem 1.5rem;
}

.cv-cb__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.cv-cb__ico {
    width: 36px;
    height: 36px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.cv-cb__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.01em;
}

.cv-cb__text {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.cv-cb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.85;
    transition: opacity 0.2s;
    margin-bottom: 1.1rem;
}
.cv-cb__link:hover { opacity: 1; }

.cv-cb__actions {
    display: flex;
    gap: 0.6rem;
}

.cv-cb__btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.cv-cb__btn--primary {
    background: var(--primary);
    color: #fff;
}
.cv-cb__btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cv-cb__btn--outline {
    background: transparent;
    color: var(--gray);
    border: 1.5px solid var(--light-gray);
}
.cv-cb__btn--outline:hover {
    border-color: #aaaaaa;
    color: var(--black);
}

/* Placeholder carte (avant consentement) */
.map-placeholder {
    height: 300px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    padding: 1.5rem;
    color: var(--gray);
}

.map-placeholder p {
    font-size: 0.88rem;
    margin: 0;
    max-width: 260px;
    line-height: 1.5;
}

.map-placeholder__btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.map-placeholder__btn:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
    #cv-cookie-banner {
        bottom: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
}

/* Gallery Mosaic — page À propos */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 210px;
    gap: 0.75rem;
}

.gallery-mosaic-item {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-mosaic-item--featured {
    grid-column: span 2;
}

.gallery-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

@media (max-width: 768px) {
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-mosaic-item {
        height: 170px;
    }
    .gallery-mosaic-item--featured {
        grid-column: span 2;
        height: 230px;
    }
}

@media (max-width: 480px) {
    .gallery-mosaic {
        grid-template-columns: 1fr;
    }
    .gallery-mosaic-item,
    .gallery-mosaic-item--featured {
        grid-column: span 1;
        height: 200px;
    }
}

/* Mobile Menu */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 5px 10px var(--shadow);
}

.nav-links.active li {
    margin: 1rem 0;
    text-align: center;
}
