/* =====================================================
   UN FOYER À PARTAGER — Feuille de style personnalisée
   Palette : crème · sage · terracotta · bois
   Typo    : Cormorant Garamond (serif) + Manrope (sans)
   ===================================================== */

/* ===== 1. VARIABLES ===== */
:root {
    /* Couleurs */
    --cream:           #f7f1e8;
    --cream-deep:      #efe6d6;
    --ink:             #2b2924;
    --ink-soft:        #4a473f;
    --muted:           #8a8478;
    --sage:            #6b8e6e;
    --sage-deep:       #4f6f53;
    --sage-soft:       #d4dcc9;
    --terracotta:      #c97554;
    --terracotta-deep: #a85a3d;
    --gold:            #b89368;
    --line:            #e2d9c8;
    --white-warm:      #fdfaf4;

    /* Typographies */
    --font-serif:  'Cormorant Garamond', 'Georgia', serif;
    --font-sans:   'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Rayons & ombres */
    --radius-sm: 6px;
    --radius:    14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(43, 41, 36, 0.04);
    --shadow:    0 10px 30px -12px rgba(43, 41, 36, 0.12);
    --shadow-lg: 0 25px 50px -20px rgba(43, 41, 36, 0.25);
}

/* ===== 2. RESET & BASE ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--ink);
    background-color: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Texture subtile en arrière-plan */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(107, 142, 110, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(201, 117, 84, 0.04) 0%, transparent 40%);
}

main, section, header, footer, nav { position: relative; z-index: 1; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; }

a {
    color: var(--sage-deep);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--terracotta); }

::selection { background: var(--sage-soft); color: var(--ink); }

/* ===== 3. ÉLÉMENTS COMMUNS ===== */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--terracotta);
    margin-bottom: 1rem;
    display: inline-block;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.section-title em {
    font-style: italic;
    color: var(--sage-deep);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto;
}

.section { padding: 6rem 0; }

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

/* ===== LIEN D'ÉVITEMENT (accessibilité clavier) ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    color: var(--cream);
    outline: 3px solid var(--terracotta);
    outline-offset: 2px;
}

/* ===== 4. NAVIGATION ===== */
.navbar {
    background: rgba(247, 241, 232, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
    transition: all .3s ease;
}
.navbar.scrolled {
    background: rgba(247, 241, 232, 0.95);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--sage-deep);
    color: var(--cream);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50%;
    letter-spacing: 0.02em;
}
.brand-mark-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color .2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--terracotta);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
    background: var(--ink);
    color: var(--cream) !important;
    border-radius: 999px;
    padding: 0.55rem 1.4rem !important;
    margin-left: 0.5rem;
}
.nav-cta:hover {
    background: var(--terracotta);
    color: var(--cream) !important;
}
.nav-cta::after { display: none; }

.navbar-toggler {
    border: 1px solid var(--line);
    padding: 0.4rem 0.7rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* ===== 5. HERO ===== */
.hero {
    padding-top: 80px;
    background:
        linear-gradient(180deg, var(--cream) 0%, var(--white-warm) 100%);
    position: relative;
    overflow: hidden;
}

.hero-decor {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sage-soft) 0%, transparent 60%);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 0;
}

.hero-content { animation: fadeUp .8s ease both; }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.hero-title em {
    font-style: italic;
    color: var(--sage-deep);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 32rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.hero-phone {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.hero-phone i {
    color: var(--terracotta);
    margin-right: 0.5rem;
}
.hero-phone a {
    color: var(--terracotta-deep);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.hero-phone a:hover,
.hero-phone a:focus {
    text-decoration: underline;
}

/* Boutons */
.btn-primary-warm {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
}
.btn-primary-warm:hover {
    background: var(--terracotta);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-link-warm {
    color: var(--ink);
    font-weight: 500;
    padding: 0.95rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    transition: all .25s ease;
}
.btn-link-warm:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

/* Carte hero (chiffres) */
.hero-card {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
    animation: fadeIn 1s .3s ease both;
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 100%; height: 100%;
    border: 1px solid var(--sage);
    border-radius: var(--radius-lg);
    z-index: -1;
    transform: rotate(-3deg);
}

.hero-card-inner > * + * { margin-top: 1.5rem; padding-top: 1.5rem; }

.hero-stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--sage-deep);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.5rem;
}
.hero-divider {
    height: 1px;
    background: var(--line);
    width: 60%;
    margin: 1rem auto !important;
}

/* ===== 6. SECTION ACTIVITÉ ===== */
.section-activite { background: var(--cream); }

.feature-card {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    height: 100%;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 54px;
    height: 54px;
    background: var(--sage-soft);
    color: var(--sage-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
    transition: all .3s ease;
}
.feature-card:hover .feature-icon {
    background: var(--terracotta);
    color: var(--cream);
    transform: rotate(-8deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}
.feature-card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* Variante grande carte (col-7) */
.feature-card--large {
    padding: 2.8rem 2.4rem;
}
.feature-card--large h3 {
    font-size: 1.7rem;
}
.feature-card--large p {
    font-size: 1.05rem;
}

/* Variante accentuée */
.feature-card--accent {
    background: var(--sage-deep);
    border-color: transparent;
    color: var(--cream);
}
.feature-card--accent h3 {
    color: var(--cream);
}
.feature-card--accent p {
    color: rgba(247, 241, 232, 0.8);
}
.feature-card--accent .feature-icon {
    background: rgba(247, 241, 232, 0.15);
    color: var(--cream);
}
.feature-card--accent:hover .feature-icon {
    background: var(--terracotta);
    color: var(--cream);
    transform: rotate(-8deg);
}
.feature-card--accent::before {
    background: var(--terracotta);
}

/* ===== 7. SECTION FAMILLE ===== */
.section-famille {
    background:
        linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.famille-portrait {
    position: relative;
    padding: 1rem;
}
.portrait-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, var(--sage-soft) 0%, var(--sage) 100%);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}
.portrait-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 6rem;
}
.portrait-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.portrait-caption {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--terracotta);
    color: var(--cream);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-family: var(--font-serif);
    transform: rotate(-2deg);
}
.portrait-caption span {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
}
.portrait-caption small {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

.famille-intro {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.famille-list { display: flex; flex-direction: column; gap: 1.5rem; }

.famille-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.famille-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white-warm);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-deep);
    font-size: 1.15rem;
}
.famille-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--ink);
}
.famille-item p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== 8. SECTION QUOTIDIEN — Timeline ===== */
.section-quotidien { background: var(--white-warm); }

.timeline {
    max-width: 720px;
    margin: 3rem auto 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 220px;
    top: 12px; bottom: 12px;
    width: 1px;
    background: var(--line);
}
@media (max-width: 600px) {
    .timeline::before { left: 0; }
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}
@media (max-width: 600px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 1.5rem;
    }
}

.timeline-time {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--terracotta);
    text-align: right;
    padding-top: 0.3rem;
    padding-right: 0.5rem;
}
@media (max-width: 600px) { .timeline-time { text-align: left; } }

.timeline-content {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem;
    border: 1px solid var(--line);
    position: relative;
}
.timeline-content::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 6.5px); top: 20px;
    width: 13px; height: 13px;
    background: var(--terracotta);
    border-radius: 50%;
    border: 3px solid var(--white-warm);
    box-shadow: 0 0 0 1px var(--line);
}
@media (max-width: 600px) {
    .timeline-content::before { left: -27px; top: 22px; }
}
.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}
.timeline-content p {
    color: var(--ink-soft);
    margin-bottom: 0;
    font-size: 0.97rem;
}

/* ===== 9. SECTION CONTACT ===== */
/* ===== BADGE DISPONIBILITÉ DES PLACES ===== */
.dispo-badge {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.3rem;
}
.dispo-badge .dispo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* État : place(s) disponible(s) */
.dispo-badge--disponible {
    background: var(--sage-soft);
    border: 1px solid var(--sage);
    color: var(--sage-deep);
}
.dispo-badge--disponible .dispo-dot {
    animation: dispoPulse 2s ease-out infinite;
}

/* État : complet (le texte plus long peut passer sur deux lignes) */
.dispo-badge--complet {
    background: var(--white-warm);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    border-radius: 14px;
}

/* Variante sur le fond sombre du bloc contact */
.dispo-badge--light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--cream);
}

.dispo-badge--light.dispo-badge--disponible .dispo-dot {
    animation-name: dispoPulseLight;
}

@keyframes dispoPulse {
    0%   { box-shadow: 0 0 0 0 rgba(107, 142, 110, 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(107, 142, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 142, 110, 0); }
}
@keyframes dispoPulseLight {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ===== ZONE D'ACCUEIL ===== */
.section-zone {
    background: linear-gradient(180deg, var(--white-warm) 0%, var(--cream) 100%);
}
.zone-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.zone-grid .stat-pill {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.65rem 1.6rem 0.65rem 0.85rem;
}
.zone-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 2.2rem auto 0;
}

.section-contact {
    background: var(--cream);
    padding: 6rem 0 8rem;
}

.contact-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white-warm);
}

.contact-info {
    background:
        linear-gradient(135deg, var(--sage-deep) 0%, #3d5a40 100%);
    color: var(--cream);
    padding: 3.5rem 2.8rem;
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.contact-info .section-title { color: var(--cream); }

.contact-intro {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-channels {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-channels li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.contact-channels i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
}
.contact-link:hover,
.contact-link:focus {
    color: #fff;
    border-bottom-color: #fff;
}

/* Formulaire */
.contact-form-wrapper { padding: 3.5rem 2.8rem; }

@media (max-width: 768px) {
    .contact-info,
    .contact-form-wrapper { padding: 2.2rem 1.5rem; }
}

.contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.97rem;
    color: var(--ink);
    transition: all .2s ease;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: var(--white-warm);
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(107, 142, 110, 0.15);
    outline: none;
}
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }

.required { color: var(--terracotta); }

.form-check-input { border-color: var(--line); }
.form-check-input:checked {
    background-color: var(--sage-deep);
    border-color: var(--sage-deep);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(107, 142, 110, 0.15);
    border-color: var(--sage);
}
.form-check-label {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.btn-submit {
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all .25s ease;
    margin-top: 0.5rem;
}
.btn-submit:hover:not(:disabled) {
    background: var(--terracotta);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Honeypot caché */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Compteur de caractères sous le textarea */
.char-counter {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* Note de confidentialité sous le bouton d'envoi */
.form-privacy-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 0.85rem 0 0;
}
.form-privacy-note a {
    color: var(--sage-deep);
    text-decoration: underline;
}

/* Feedback du formulaire */
.form-feedback { font-size: 0.95rem; }
.form-feedback.success {
    background: var(--sage-soft);
    color: var(--sage-deep);
    border: 1px solid var(--sage);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
}
.form-feedback.error {
    background: #fbe8e0;
    color: var(--terracotta-deep);
    border: 1px solid var(--terracotta);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
}

.invalid-feedback {
    font-size: 0.82rem;
    color: var(--terracotta-deep);
}

/* ===== 10. FOOTER ===== */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 3rem 0 2rem;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--cream);
}
.footer-tagline {
    color: rgba(247, 241, 232, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.footer-meta {
    color: rgba(247, 241, 232, 0.55);
    font-size: 0.83rem;
    margin-bottom: 0.2rem;
}

/* ===== 11. RETOUR EN HAUT ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .3s ease;
    font-size: 1.1rem;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
}

/* ===== 12. ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ===== 13. RESPONSIVE — ajustements fins ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white-warm);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--line);
    }
    .nav-cta { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
    .hero { padding-top: 100px; }
}

@media (max-width: 576px) {
    .brand-text { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }
    .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ===== 14. PAGE FAMILLE ===== */
.page-famille {
    background: var(--cream);
    min-height: 100vh;
    padding: 7rem 0 5rem;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.6rem;
}
.section-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.section-header h1 em { color: var(--sage-deep); }
.section-header p {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.02rem;
}
.header-rule {
    width: 48px;
    height: 2px;
    background: var(--terracotta);
    border-radius: 2px;
    margin: 1.5rem auto 0;
}
.dossiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.dossier {
    position: relative;
    padding-top: 2rem;
}
.dossier-clip {
    position: absolute;
    top: -4px;
    right: 32px;
    z-index: 10;
    width: 36px;
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.25));
}
.dossier-paper {
    background: #fff;
    border-radius: 3px;
    box-shadow:
        0 2px 4px rgba(43,41,36,0.06),
        0 8px 24px rgba(43,41,36,0.10),
        2px 2px 0 rgba(43,41,36,0.03);
    padding: 0;
    overflow: hidden;
    position: relative;
}
.dossier:nth-child(odd)  .dossier-paper { transform: rotate(-0.6deg); }
.dossier:nth-child(even) .dossier-paper { transform: rotate(0.5deg); }
.dossier:nth-child(3)    .dossier-paper { transform: rotate(-1deg); }
.dossier-stamp {
    background: var(--cream-deep);
    border-bottom: 1px dashed var(--line);
    padding: 0.4rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stamp-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.stamp-id {
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: var(--terracotta);
    opacity: 0.7;
}
.dossier-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-deep);
}
.dossier-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.dossier-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 28px; height: 28px;
    background: linear-gradient(225deg, #e8e0d0 50%, transparent 50%);
}
.dossier-body {
    padding: 1.4rem 1.6rem 1.8rem;
    position: relative;
}
.dossier-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 27px,
        rgba(107, 142, 110, 0.08) 27px,
        rgba(107, 142, 110, 0.08) 28px
    );
    background-position: 0 48px;
    pointer-events: none;
}
.dossier-name {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.dossier-role {
    font-family: 'Caveat', cursive;
    font-size: 1.05rem;
    color: var(--terracotta);
    margin-bottom: 0.9rem;
    display: block;
}
.dossier-desc {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}
.dossier-footer {
    border-top: 1px dashed var(--line);
    padding: 0.7rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream);
}
.dossier-footer i {
    color: var(--sage-deep);
    font-size: 0.85rem;
}
.dossier-footer span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-deep);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .2s;
}
.back-link:hover { color: var(--terracotta); }
.dossier--centered { grid-column: 2; }
@media (max-width: 700px) {
    .dossier--centered { grid-column: auto; }
}
.bg-decor {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}
.bg-decor-1 {
    top: -100px; right: -100px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(107,142,110,0.07) 0%, transparent 70%);
}
.bg-decor-2 {
    bottom: -80px; left: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(201,117,84,0.06) 0%, transparent 70%);
}

/* ===== 15. PAGE MAISON ===== */
.maison-hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.maison-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.maison-hero:hover .maison-hero-img { transform: scale(1); }
.maison-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(43, 41, 36, 0.72) 0%,
        rgba(43, 41, 36, 0.15) 55%,
        transparent 100%
    );
}
.maison-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 3.5rem;
    color: var(--cream);
}
.maison-hero-content .eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.7);
    display: block;
    margin-bottom: 0.6rem;
}
.maison-hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.maison-hero-content h1 em {
    font-style: italic;
    color: rgba(247, 241, 232, 0.85);
}
.maison-hero-content p {
    font-size: 1.05rem;
    color: rgba(247, 241, 232, 0.8);
    max-width: 520px;
    margin: 0;
    line-height: 1.7;
}
.maison-stats {
    background: var(--white-warm);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}
.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 1.2rem;
}
.stat-pill-icon {
    width: 44px; height: 44px;
    background: var(--sage-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--sage-deep);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-pill-text strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}
.stat-pill-text span {
    font-size: 0.82rem;
    color: var(--muted);
}
.stat-sep {
    width: 1px;
    height: 40px;
    background: var(--line);
    margin: 0 auto;
}
.section-maison {
    padding: 5rem 0;
    background: var(--cream);
}
.piece-card {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.piece-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.piece-photo {
    position: relative;
    overflow: hidden;
}
.piece-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.piece-card:hover .piece-photo img { transform: scale(1.05); }
.piece-badge {
    position: absolute;
    bottom: 1rem; left: 1rem;
    background: rgba(43, 41, 36, 0.65);
    backdrop-filter: blur(6px);
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(247, 241, 232, 0.2);
}
.piece-body {
    padding: 1.6rem 1.8rem 2rem;
}
.piece-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.piece-body p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.piece-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.piece-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
}
.piece-tag i { color: var(--sage-deep); font-size: 0.75rem; }
.piece-card--featured .piece-photo { aspect-ratio: 16 / 9; }
.piece-card--featured .piece-photo img { height: 100%; }
.piece-card--std .piece-photo { aspect-ratio: 4 / 3; }
.piece-card--std .piece-photo img { height: 100%; }
.maison-cta {
    background: var(--sage-deep);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    color: var(--cream);
    margin-top: 4rem;
}
.maison-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 0.75rem;
}
.maison-cta p {
    color: rgba(247, 241, 232, 0.8);
    margin-bottom: 1.8rem;
    font-size: 1rem;
}
.btn-cta-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream);
    color: var(--sage-deep);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}
.btn-cta-light:hover {
    background: var(--terracotta);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ===== 16. PAGE MENTIONS LÉGALES ===== */
.page-legal {
    background: var(--cream);
    min-height: 100vh;
    padding: 7rem 0 5rem;
}
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}
.legal-header .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.6rem;
}
.legal-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.legal-header .update-date {
    font-size: 0.85rem;
    color: var(--muted);
}
.legal-card {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
    max-width: 860px;
    margin: 0 auto;
}
.legal-section {
    margin-bottom: 2.5rem;
}
.legal-section:last-child {
    margin-bottom: 0;
}
.legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}
.legal-section p,
.legal-section li {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.8;
}
.legal-section ul { padding-left: 1.4rem; }
.legal-section a { color: var(--sage-deep); text-decoration: underline; }
.legal-section a:hover { color: var(--terracotta); }
@media (max-width: 576px) {
    .legal-card { padding: 1.5rem; }
}

/* ===== 16b. PAGE FAQ ===== */
.page-faq {
    background: var(--cream);
    min-height: 100vh;
    padding: 7rem 0 5rem;
}
.faq-group {
    max-width: 860px;
    margin: 0 auto 2.5rem;
}
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    padding-left: 0.3rem;
}
.faq-item {
    background: var(--white-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.9rem;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item[open] {
    box-shadow: var(--shadow);
    border-color: var(--sage);
}
.faq-question {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--terracotta); }
.faq-question .faq-icon {
    flex-shrink: 0;
    color: var(--sage-deep);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.8;
}
.faq-answer p { margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.3rem; margin-bottom: 0.8rem; }
.faq-answer a { color: var(--sage-deep); text-decoration: underline; }
.faq-answer a:hover { color: var(--terracotta); }
@media (max-width: 576px) {
    .faq-question { padding: 1rem 1.1rem; font-size: 1.05rem; }
    .faq-answer { padding: 0 1.1rem 1.2rem; }
}

/* ===== 17. PAGE 404 ===== */
.page-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--cream);
    padding: 2rem;
}
.error-number {
    font-family: var(--font-serif);
    font-size: clamp(7rem, 20vw, 12rem);
    font-weight: 700;
    line-height: 1;
    color: var(--line);
    letter-spacing: -4px;
    margin-bottom: 0;
    user-select: none;
}
.error-icon {
    font-size: 3.5rem;
    color: var(--terracotta);
    margin: -1rem 0 1.5rem;
    display: block;
}
.error-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
}
.error-title em { color: var(--sage-deep); font-style: italic; }
.error-lead {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.error-divider {
    width: 48px;
    height: 2px;
    background: var(--terracotta);
    border-radius: 2px;
    margin: 1.5rem auto;
}
.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.error-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sage-deep);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.error-link:hover { color: var(--terracotta); }
@media (max-width: 576px) {
    .error-actions { flex-direction: column; align-items: stretch; }
    .error-actions .btn { text-align: center; }
}

/* ===== 18. ASPECT-RATIO — prévention du décalage au chargement (CLS) ===== */

/* Logo navbar — carré */
.brand-mark-img {
    aspect-ratio: 1 / 1;
}

/* Photo portrait section famille (index.html) */
.portrait-photo {
    aspect-ratio: 3 / 4;
}

/* Photos membres de la famille (famille.html) */
.dossier-photo-wrap img {
    aspect-ratio: 4 / 3;
}

/* Image héro maison (maison.html) — plein écran paysage */
.maison-hero-img {
    aspect-ratio: 16 / 9;
}

/* Photos des pièces de la maison (maison.html) */
.piece-photo img {
    aspect-ratio: 4 / 3;
}
