/* ============================================
   COMPAGNONS D'OC - Feuille de style principale
   Palette : vert foncé du logo + or
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --color-green-dark: #0f241b;
    --color-green: #1a3d2e;
    --color-green-mid: #2d5a44;
    --color-green-light: #4a7a5e;
    --color-gold: #cda54e;
    --color-gold-light: #e5c478;
    --color-gold-pale: #f0dcad;
    --color-cream: #faf6ec;
    --color-sand: #f3ead7;
    --color-text: #1f2a25;
    --color-text-light: #5a665e;
    --color-white: #ffffff;
    --color-overlay: rgba(15, 36, 27, 0.55);

    --shadow-sm: 0 2px 8px rgba(15, 36, 27, 0.08);
    --shadow-md: 0 4px 20px rgba(15, 36, 27, 0.15);
    --shadow-lg: 0 10px 40px rgba(15, 36, 27, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Empêcher les débordements de mots longs */
h1, h2, h3, h4, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { color: var(--color-text-light); }

/* ---------- Container ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-green-dark);
    color: var(--color-gold-light);
}

.btn-primary:hover {
    background-color: var(--color-green);
    color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-green-dark);
    border-color: var(--color-green-dark);
}

.btn-secondary:hover {
    background-color: var(--color-green-dark);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(205, 165, 78, 0.2);
}

.header.scrolled {
    background-color: rgba(250, 246, 236, 0.99);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-green-dark);
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    background-color: var(--color-green-dark);
}

.logo-text { line-height: 1.1; }

.logo-text small {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--color-green-dark); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.burger span {
    width: 28px;
    height: 3px;
    background-color: var(--color-green-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    padding: 130px 1.5rem 4rem;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(205, 165, 78, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(15, 36, 27, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text .eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(205, 165, 78, 0.18);
    color: var(--color-green-dark);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-gold);
}

.hero h1 { margin-bottom: 1.5rem; }

.hero h1 .accent {
    color: var(--color-gold);
    font-style: italic;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    height: 100%;
    background-color: var(--color-green-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-illustration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 36, 27, 0.35) 100%);
    pointer-events: none;
}

.hero-badge {
    position: absolute;
    background-color: var(--color-white);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(205, 165, 78, 0.3);
    color: var(--color-green-dark);
}

.hero-badge-1 { top: 8%; left: -5%; }
.hero-badge-2 { bottom: 10%; right: -5%; }

.hero-badge .icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-gold);
}

.hero-badge small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ---------- Sections génériques ---------- */
.section { padding: 5rem 1.5rem; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-eyebrow {
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

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

.section-header p { font-size: 1.1rem; }

.section-alt { background-color: var(--color-sand); }

/* Section "dark" - fond vert foncé pour contraste */
.section-dark {
    background-color: var(--color-green-dark);
    color: var(--color-cream);
}

.section-dark h2 { color: var(--color-gold-light); }
.section-dark p { color: rgba(245, 239, 225, 0.85); }
.section-dark .section-eyebrow { color: var(--color-gold); }

/* Les cartes claires dans une section sombre gardent leur texte foncé */
.section-dark .card h3 { color: var(--color-green-dark); }
.section-dark .card p { color: var(--color-text-light); }

/* ---------- Grille de cartes ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(205, 165, 78, 0.15);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-green-dark);
    color: var(--color-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.card.gold .card-icon {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
}

.card.light .card-icon {
    background-color: var(--color-sand);
    color: var(--color-green-dark);
    border: 1px solid var(--color-gold);
}

.card h3 {
    margin-bottom: 0.6rem;
    color: var(--color-green-dark);
}

.card p { font-size: 0.95rem; }

/* ---------- Section catégories produits ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.category-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-green-dark);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img { transform: scale(1.06); }

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 36, 27, 0.4) 100%);
}

.category-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-body h3 { margin-bottom: 0.6rem; color: var(--color-green-dark); }

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--color-green-dark);
    color: var(--color-gold);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    align-self: flex-start;
    letter-spacing: 0.05em;
}

.category-body p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    flex: 1;
}

.category-list {
    list-style: none;
    margin-bottom: 1.2rem;
    padding: 0;
}

.category-list li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.category-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
}

/* ---------- Bannière CTA ---------- */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(15, 36, 27, 0.92) 0%, rgba(45, 90, 68, 0.92) 100%),
        url('../img/pexels-snapwire-46024.jpg') center/cover;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-cream);
    max-width: var(--max-width);
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gold);
}

.cta-banner h2 {
    color: var(--color-gold-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(245, 239, 225, 0.92);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
    position: relative;
    z-index: 1;
}

.cta-banner .btn:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
}

/* ---------- Page hero ---------- */
.page-hero {
    padding: 150px 1.5rem 4rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(205, 165, 78, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
    text-align: center;
    position: relative;
}

.page-hero .eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(205, 165, 78, 0.18);
    color: var(--color-green-dark);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-gold);
}

.page-hero h1 {
    max-width: 800px;
    margin: 1rem auto 1.5rem;
}

.page-hero p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* ---------- Page À propos ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-image {
    height: 480px;
    border-radius: var(--radius-lg);
    background-color: var(--color-green-dark);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 3px solid var(--color-gold);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(205, 165, 78, 0.15);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    background-color: var(--color-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.value-card h3 { color: var(--color-green-dark); margin-bottom: 0.6rem; }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 3rem auto 0;
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.section-dark .stat-number { color: var(--color-gold-light); }

.stat-label {
    color: var(--color-text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-dark .stat-label { color: rgba(245, 239, 225, 0.8); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(205, 165, 78, 0.2);
}

.contact-form h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.contact-form > p { margin-bottom: 2rem; }

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

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--color-green-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e8dfd0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px; /* 16px évite le zoom auto sur iOS */
    background-color: var(--color-cream);
    transition: var(--transition);
    color: var(--color-text);
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green-dark);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(205, 165, 78, 0.25);
}

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

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(45, 90, 68, 0.15);
    color: var(--color-green-dark);
    border: 1px solid var(--color-green-mid);
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #842029;
    display: block;
}

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

.info-card {
    background-color: var(--color-white);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(205, 165, 78, 0.15);
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-green-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-gold);
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-green-dark);
}

.info-content p {
    font-size: 0.95rem;
    margin: 0;
}

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

/* ---------- Horaires ---------- */
.hours-card {
    background-color: var(--color-green-dark);
    color: var(--color-cream);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gold);
}

.hours-card h4 {
    font-family: var(--font-body);
    margin-bottom: 1rem;
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(205, 165, 78, 0.3);
    font-size: 0.95rem;
    color: var(--color-cream);
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day { font-weight: 500; color: var(--color-gold-light); }

.hours-list .closed {
    color: rgba(245, 239, 225, 0.6);
    font-style: italic;
}

.hours-list .time { color: var(--color-cream); }

/* ---------- Footer ---------- */
.footer {
    background-color: var(--color-green-dark);
    color: var(--color-cream);
    padding: 4rem 1.5rem 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--color-gold);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    color: var(--color-gold-light);
    margin-bottom: 1rem;
}

.footer-brand .logo-text small {
    color: var(--color-gold);
}

.footer-brand p {
    color: rgba(245, 239, 225, 0.75);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer h4 {
    color: var(--color-gold);
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a, .footer-links li {
    color: rgba(245, 239, 225, 0.75);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold-light);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(205, 165, 78, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(205, 165, 78, 0.25);
}

.social-link:hover {
    background-color: var(--color-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(205, 165, 78, 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(245, 239, 225, 0.5);
}

.footer-bottom p { color: inherit; }

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.hero-badge {
    animation: float 4s ease-in-out infinite;
}

.hero-badge-2 { animation-delay: 2s; }

/* ---------- Carte / map placeholder ---------- */
.map-card {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-gold);
    max-width: var(--max-width);
    margin: 0 auto;
}

.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================
   RESPONSIVE — progressive du desktop au mobile
   ============================================ */

/* ---------- Tablette paysage (≤ 1100px) ---------- */
@media (max-width: 1100px) {
    .hero-content { gap: 2rem; }
    .hero-visual { height: 460px; }
    .hero-badge-1 { left: 0; }
    .hero-badge-2 { right: 0; }
    .about-grid { gap: 3rem; }
    .footer-content { gap: 2rem; }
    .nav-menu { gap: 1.4rem; }
}

/* ---------- Tablette portrait (≤ 960px) ---------- */
@media (max-width: 960px) {
    /* La navbar passe en mode burger plus tôt pour éviter le débordement */
    .burger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-cream);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-bottom: 2px solid var(--color-gold);
    }

    .nav-menu.active { transform: translateY(0); }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 0;
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Hero en colonne unique */
    .hero {
        padding: 110px 1.25rem 3.5rem;
        min-height: auto;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions { justify-content: center; }
    .hero-visual {
        height: 380px;
        order: -1;
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }

    /* À propos en colonne unique */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image {
        height: 340px;
        order: -1;
    }

    /* Contact en colonne unique */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer en 2 colonnes */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .section { padding: 4rem 1.25rem; }
    .page-hero { padding: 130px 1.25rem 3rem; }
}

/* ---------- Petite tablette / mobile large (≤ 720px) ---------- */
@media (max-width: 720px) {
    .navbar { padding: 0.7rem 1rem; }
    .logo { font-size: 1.15rem; gap: 0.5rem; }
    .logo-img { width: 46px; height: 46px; }
    .logo-text small { font-size: 0.65rem; letter-spacing: 0.08em; }

    h1 { font-size: clamp(1.85rem, 6vw, 2.4rem); }
    h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }

    .hero-visual { height: 340px; }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    .hero-badge .icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .hero-badge small { font-size: 0.7rem; }
    .hero-badge-1 { top: 5%; }
    .hero-badge-2 { bottom: 5%; }

    /* Formulaire passe en une colonne */
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer en colonne unique */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-brand p { margin: 0 auto; }
    .social-links { justify-content: center; }
    .footer-links li { justify-content: center; }
    .footer { padding: 3rem 1.25rem 1.5rem; }

    .section { padding: 3.5rem 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }

    .cta-banner {
        margin: 2rem 0.75rem;
        padding: 2.5rem 1.5rem;
    }
    .cta-banner p { font-size: 1rem; }

    .contact-form { padding: 1.75rem 1.25rem; }
    .info-card { padding: 1.3rem; gap: 1rem; }
    .hours-card { padding: 1.3rem; }

    .map-card { height: 320px; }

    .btn-lg {
        padding: 0.95rem 1.8rem;
        font-size: 1rem;
    }
}

/* ---------- Mobile (≤ 540px) ---------- */
@media (max-width: 540px) {
    .navbar { padding: 0.6rem 1rem; }
    .logo { font-size: 1.05rem; }
    .logo-img { width: 42px; height: 42px; }
    .logo-text small { font-size: 0.6rem; }

    .hero { padding: 100px 1rem 3rem; }
    .hero-text .eyebrow {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    .hero-text p { font-size: 1rem; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-visual { height: 280px; }
    .hero-badge { display: none; } /* trop encombré sur petit écran */

    .page-hero { padding: 110px 1rem 2.5rem; }
    .page-hero p { font-size: 1rem; }

    .section { padding: 3rem 1rem; }
    .section-header p { font-size: 1rem; }

    /* Cartes et grilles plus compactes */
    .cards-grid { gap: 1rem; }
    .card { padding: 1.5rem 1.25rem; }
    .card-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    .card h3 { font-size: 1.2rem; }

    .category-grid { gap: 1.25rem; }
    .category-image { height: 180px; }
    .category-body { padding: 1.4rem 1.25rem; }
    .category-body h3 { font-size: 1.2rem; }

    /* Stats : 2 colonnes plutôt qu'1 */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: 0.8rem; }

    /* Valeurs : grille 2 colonnes */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .value-card { padding: 1.5rem 1rem; }
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .value-card h3 { font-size: 1.1rem; }

    /* About */
    .about-image { height: 260px; }

    /* CTA */
    .cta-banner {
        margin: 2rem 0.5rem;
        padding: 2rem 1.25rem;
        border-radius: var(--radius-md);
    }
    .cta-banner h2 { font-size: 1.5rem; }
    .cta-banner p { font-size: 0.95rem; }

    /* Formulaire */
    .contact-form { padding: 1.5rem 1.1rem; border-radius: var(--radius-md); }
    .contact-form h2 { font-size: 1.4rem; }
    .info-card {
        flex-direction: row;
        gap: 0.9rem;
    }
    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Horaires */
    .hours-list li { font-size: 0.88rem; }
    .hours-list .day { font-size: 0.85rem; }

    /* Carte */
    .map-card { height: 280px; border-width: 2px; }

    /* Footer */
    .footer { padding: 2.5rem 1rem 1.5rem; }
    .footer-bottom { font-size: 0.78rem; }

    /* Boutons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    .btn-lg {
        padding: 0.95rem 1.6rem;
        font-size: 1rem;
    }
}

/* ---------- Petit mobile (≤ 400px) ---------- */
@media (max-width: 400px) {
    .navbar { padding: 0.5rem 0.85rem; }
    .logo { font-size: 0.95rem; gap: 0.4rem; }
    .logo-img { width: 38px; height: 38px; }
    .logo-text small { display: none; } /* on cache le sous-titre */

    h1 { font-size: 1.7rem; line-height: 1.2; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.15rem; }

    .hero { padding: 90px 0.85rem 2.5rem; }
    .hero-text p { font-size: 0.95rem; }
    .hero-visual { height: 230px; }

    .page-hero { padding: 100px 0.85rem 2rem; }

    .section { padding: 2.5rem 0.85rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header p { font-size: 0.95rem; }

    /* Cartes en colonne unique */
    .cards-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }

    /* Stats : 2 colonnes plus serrées */
    .stats { gap: 1.25rem 0.5rem; }
    .stat-number { font-size: 1.9rem; }
    .stat-label { font-size: 0.72rem; letter-spacing: 0.03em; }

    /* Valeurs en 1 colonne */
    .values-grid { grid-template-columns: 1fr; }

    .cta-banner { padding: 1.75rem 1rem; }
    .cta-banner h2 { font-size: 1.3rem; }

    .contact-form { padding: 1.25rem 0.9rem; }
    .info-card { padding: 1.1rem; }

    .footer { padding: 2.5rem 0.85rem 1.25rem; }
    .footer h4 { font-size: 0.9rem; }

    .map-card { height: 240px; }

    .btn { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }
}

/* ---------- Très petit (≤ 340px) ---------- */
@media (max-width: 340px) {
    .logo { font-size: 0.85rem; }
    .logo-img { width: 34px; height: 34px; }
    h1 { font-size: 1.55rem; }
    .hero-visual { height: 200px; }
    .stats { grid-template-columns: 1fr; }
}

/* ---------- Orientation paysage mobile ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 90px 1.5rem 2rem;
    }
    .hero-visual { height: 260px; }
    .nav-menu {
        max-height: calc(100vh - 70px);
        padding: 1rem 1.5rem;
    }
}

/* ---------- Préférences utilisateur : réduction des mouvements ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .hero-badge { animation: none; }
}

/* ---------- Champ anti-robot (honeypot) — invisible ---------- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Bouton en cours d'envoi ---------- */
.btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
    pointer-events: none;
}
