/* =============================================
   VARIABLES — Charte graphique Loulou des montagnes
   ============================================= */
:root {
    --cream: #F5EDD8;
    --sand: #D9C49A;
    --caramel: #C4884A;
    --terra: #A85C3A;
    --moss: #6B7D52;
    --sage: #A8B887;
    --bark: #5C3D25;
    --dusk: #3B3228;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 200vh;
    background-color: var(--cream);
    color: var(--dusk);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    padding-top: 0;
}

/* =============================================
   HEADER
   ============================================= */
header {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1050;
    background: transparent;
}

header .nav {
    justify-content: flex-end;
    padding: 6px 16px;
    gap: 2px;
    background: transparent;
}


header .nav-link {
    color: var(--cream) !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
    text-shadow: 0 1px 6px rgba(59, 50, 40, 0.5);
}

header .nav-link:hover {
    background: rgba(245, 237, 216, 0.15);
    color: var(--cream) !important;
}

header .nav-link i,
header .nav-link img {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    margin-right: 0;
}

/* =============================================
   HEADER — état scrolled (pill flottant)
   ============================================= */
header.scrolled {
    position: fixed;
    top: 18px;
    left: 18px;
    width: auto;
    background: rgba(245, 237, 216, 0.97);
    box-shadow: 0 6px 32px rgba(59, 50, 40, 0.18);
    border-radius: 16px;
    border: 1px solid rgba(217, 196, 154, 0.5);
    backdrop-filter: blur(12px);
    animation: slideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    padding: 6px;
}

header.scrolled .nav {
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px;
    background: transparent;
}

header.scrolled .nav-link {
    color: var(--bark) !important;
    text-shadow: none;
    padding: 9px 11px !important;
    font-size: 0;
    gap: 0;
    border-radius: 10px;
}

header.scrolled .nav-link:hover {
    background: var(--sand);
    color: var(--bark) !important;
}

header.scrolled .nav-link i,
header.scrolled .nav-link img {
    font-size: 1.05rem;
    width: 18px;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    color: var(--bark);
}

header.scrolled .nav-link:hover i,
header.scrolled .nav-link:hover img {
    opacity: 1;
    transform: scale(1.12);
    color: var(--caramel);
}

header.scrolled .nav-link span {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(-120%) scale(0.88);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* =============================================
   DROPDOWN HOVER
   ============================================= */
.dropdown-hover {
    position: relative;
}

.dropdown-custom {
    display: none;
    position: absolute;
    background: var(--cream);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 8px 28px rgba(59, 50, 40, 0.14);
    border-radius: 12px;
    z-index: 1100;
    min-width: 180px;
    border: 1px solid rgba(217, 196, 154, 0.4);
}

.dropdown-hover:hover .dropdown-custom {
    display: block;
}

header:not(.scrolled) .dropdown-custom {
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 6px;
}

header.scrolled .dropdown-custom {
    left: calc(100% + 10px);
    top: 0;
}

.dropdown-custom li {
    list-style: none;
}

.dropdown-custom li a {
    text-decoration: none;
    color: var(--bark);
    display: block;
    padding: 10px 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.15s, padding-left 0.2s, color 0.15s;
}

.dropdown-custom li a:hover {
    background: var(--sand);
    padding-left: 26px;
    color: var(--caramel);
}

.nav-item {
    position: relative;
}

/* =============================================
   SECTION ACCUEIL / HERO
   ============================================= */
#accueil {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#accueil h1 {
    display: none;
}

.hero-bg {
    height: 80vh;
    width: 100%;
    background: linear-gradient(160deg,
            var(--bark) 0%,
            #7A4E30 30%,
            var(--caramel) 60%,
            var(--sand) 82%,
            var(--cream) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, var(--cream), transparent);
    pointer-events: none;
    z-index: 5;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 24px rgba(59, 50, 40, 0.45);
    animation: fadeUp 1.2s ease forwards;
}

.brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: rgba(245, 237, 216, 0.88);
    letter-spacing: 0.06em;
    margin-top: 12px;
    text-shadow: 0 1px 8px rgba(59, 50, 40, 0.4);
    animation: fadeUp 1.4s ease forwards;
}

.brand-sep {
    width: 60px;
    height: 1px;
    background: rgba(245, 237, 216, 0.5);
    margin: 14px auto 0;
    animation: fadeUp 1.6s ease forwards;
}


/* =============================================
   SECTIONS CONTENT
   ============================================= */
.content {
    margin: 0;
    padding: 0;
}

.content>div {
    padding: 100px 8vw;
}

/* Alternance fond */
.content>div:nth-child(even) {
    background-color: #ECE2C9;
}

/* ── Cormorant Garamond 600 H2 — conforme charte 28-36px ── */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 4px;
    line-height: 1.1;
}

/* Cormorant Garamond italic 300 — sous-titres */
.section-subheading {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: bold;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--terra);
    margin-bottom: 16px;
    display: block;
}

/* Jost 600 uppercase — étiquette eyebrow */
.section-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--caramel);
    margin-bottom: 8px;
    display: block;
}

.section-divider {
    width: 44px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--caramel), var(--sand));
    margin: 14px 0 42px;
}

/* =============================================
   INFO
   ============================================= */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* margin: -100px -8vw; */
    min-height: 450;
}

.info-text {
    padding: 60px 56px 60px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* ← évite débordement si le texte est long */
}

.info-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

}

.info-image img {
    width: auto;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        margin: -70px -6vw;
        min-height: auto;
    }

    .info-text {
        padding: 70px 6vw;
    }

    .info-image {
        min-height: 300px;
    }
}

.info p {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dusk);
    font-weight: 400;
}

.info .caveat-note {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--moss);
    margin-top: 18px;
    display: block;
}

/* =============================================
   ÉLEVAGES
   ============================================= */
.elevage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.breed-card {
    background: var(--cream);
    border: 1px solid var(--sand);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}

.breed-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(168, 92, 58, 0.13);
}

.breed-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Caveat pour placeholder — cohérence avec l'usage de l'accent manuscrit */
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bark);
    opacity: 0.55;
    transition: opacity 0.35s ease;
}

/* .breed-card-img {
    width: 100%;
    height: 220px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
} */

.breed-card:hover .breed-card-img {
    opacity: 1;
}

.breed-card-body {
    padding: 26px 30px 30px;
}

/* Cormorant Garamond 600 pour les noms de races */
.breed-card-body h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Jost 400 pour les descriptions */
.breed-card-body p {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--dusk);
    line-height: 1.75;
    margin: 0;
}

.breed-card-btn {
    display: inline-block;
    background: var(--caramel);
    color: var(--cream);
    border-radius: 999px;
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
}

.breed-card-badge {
    background: var(--moss);
    color: var(--cream);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* =============================================
   Accessoires — fond dusk
   ============================================= */

.accessoire-grid {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.div1 {
    display: flex;
    gap: 20px;
    width: 100%;
}

.div1 .accessoire-card {
    flex: 1;
}

.accessoire {
    background-color: var(--dusk) !important;
}

.accessoire .section-heading {
    color: var(--cream);
}

.accessoire .section-subheading {
    color: var(--sand);
}

.accessoire .section-eyebrow {
    color: var(--caramel);
}

.accessoire .section-divider {
    background: linear-gradient(90deg, var(--caramel), transparent);
}

.accessoire p {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 237, 216, 0.68);
    font-weight: 300;
}

.accessoire-card {
    background: var(--cream);
    border: 1px solid var(--sand);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}

.accessoire-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(168, 92, 58, 0.13);
}

.accessoire-card-img {
    width: 100%;
    height: 400px;
    /* ← plus carré */
    object-fit: cover;
    object-position: center;
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bark);
    opacity: 0.55;
    transition: opacity 0.35s ease;
}

.accessoire-card:hover .accessoire-card-img {
    opacity: 1;
}

.accessoire-card-body {
    padding: 26px 30px 30px;
}

/* Cormorant Garamond 600 pour les noms de races */
.accessoire-card-body h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 8px;
    line-height: 1.1;
}

/* Jost 400 pour les descriptions */
.accessoire-card-body p {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--dusk);
    line-height: 1.75;
    margin: 0;
}

.accessoire-card-btn {
    display: inline-block;
    background: var(--caramel);
    color: var(--cream);
    border-radius: 999px;
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
}

.accessoire-card-badge {
    background: var(--moss);
    color: var(--cream);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--dusk);
    color: rgba(245, 237, 216, 0.5);
    padding: 40px 8vw;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-align: center;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--moss), var(--caramel), var(--terra)) 1;
}

footer a {
    color: var(--caramel);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--cream);
}

/* Cormorant Garamond 600 pour le nom de marque en footer */
footer .footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sand);
    display: block;
    margin-bottom: 10px;
}

footer .footer-icons {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    header.scrolled {
        top: 12px;
        left: 12px;
    }

    .content>div {
        padding: 70px 6vw;
    }

    .div1 {
        flex-direction: column;
    }

    .brand-name {
        font-size: 2.6rem;
    }

    .brand-tagline {
        font-size: 0.95rem;
    }


    #navbar-scrollspy .nav-item {
        display: none;
    }

     #navbar-scrollspy .nav-item:nth-child(1),
    #navbar-scrollspy .nav-item:nth-child(2),
    #navbar-scrollspy .nav-item:nth-child(3),
    #navbar-scrollspy .nav-item:nth-child(4) {
        display: flex;
    }

    #navbar-scrollspy .nav-link span {
        display: none;
    }

    #navbar-scrollspy {
        justify-content: center;
        gap: 1rem;
        padding: 10px 16px !important;
    }
}