/* ================================================
   OrnithoQuiz — Landing page CSS
   Mobile first
================================================ */

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

:root {
    --forest:  #0d1f1a;
    --moss:    #1a3329;
    --fern:    #2a4a3a;
    --leaf:    #3d6b52;
    --sage:    #6b9e7e;
    --mist:    #a8c5b0;
    --dawn:    #e8c97a;
    --gold:    #d4a847;
    --cream:   #f5edd8;
    --white:   #faf7f0;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius-card: 16px;
    --radius-pill: 100px;
    --transition:  0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background:  var(--forest);
    color:       var(--cream);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x:  hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* NAVIGATION
------------------------------------------------ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(13,31,26,0.9) 0%, transparent 100%);
    backdrop-filter: blur(2px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--dawn);
    letter-spacing: 0.02em;
}
.nav-logo span { font-style: italic; font-weight: 400; }


/* Liens cachés par défaut sur mobile */
.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0;
    position: absolute;
}

.nav-links a {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1rem;
    text-align: end;
    margin-right: 1rem;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--dawn);
    border-radius: var(--radius-card);
    padding-right: 1.5rem;
    transition: background var(--transition), color var(--transition), padding-right var(--transition);
}

/* Affiche le burger */
.burger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dawn);
    transition: 0.3s;
}

.burger-toggle{
    display: none;
}

/* Ouvre le menu quand coché */
.burger-toggle:checked ~ .nav-links {
    display: flex;
}

/* Anime le burger en croix */
.burger-toggle:checked ~ .burger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-toggle:checked ~ .burger-btn span:nth-child(2) {
    opacity: 0;
}

.burger-toggle:checked ~ .burger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* HERO
------------------------------------------------ */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1.25rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Image de fond */
.hero-img {
    position: absolute; inset: 0;
    background-image:    url('/assets/img/ssBois/blue-tit.webp');
    background-size:cover;
    background-position: center -6.25rem;
    filter: saturate(0.85) brightness(0.75);
}

/* Dégradé bas → lisibilité texte */
.hero-overlay-top {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,31,26,0.55) 0%,
        rgba(13,31,26,0.10) 35%,
        rgba(13,31,26,0.05) 55%,
        rgba(13,31,26,0.70) 75%,
        rgba(13,31,26,0.96) 100%
    );
}

/* Teinte verte douce pour marier l'image à la palette */
.hero-overlay-tint {
    position: absolute; inset: 0;
    background: rgba(13,31,26,0.05);
    mix-blend-mode: multiply;
}

/* Oiseaux animés */
.hero-birds { position: absolute; inset: 0; pointer-events: none; }
.bird {
    position: absolute;
    opacity: 0;
    animation: birdFly 8s ease-in-out forwards;
}
.bird:nth-child(1) { top: 12%; left: 15%; animation-delay: 0.3s; }
.bird:nth-child(2) { top: 8%;  left: 42%; animation-delay: 0.8s; }
.bird:nth-child(3) { top: 16%; left: 65%; animation-delay: 1.2s; }
.bird:nth-child(4) { top: 6%;  left: 78%; animation-delay: 0.5s; }
.bird:nth-child(5) { top: 20%; left: 88%; animation-delay: 1.6s; }

@keyframes birdFly {
    0%   { opacity: 0; transform: translateX(-10px) translateY(5px); }
    20%  { opacity: 0.7; }
    100% { opacity: 0.3; transform: translateX(20px) translateY(-15px); }
}

/* Waveform décorative */
.waveform {
    position: absolute;
    bottom: 2rem; 
    left: 1.25rem; 
    right: 1.25rem;
    height: 80px;
    opacity: 0.15;
    display: flex;
    align-items: center;
    gap: 2px;
}

.waveform::after {
    content: '';
    position: absolute;
    bottom: 39px;
    left: 0;
    right: 0;
    height: 2px;
    background: black;
    opacity: 0.3;
}

.waveform-bar {
    flex: 1;
    background: var(--dawn);
    border-radius: 1px;
    animation: wavePulse 1.8s ease-in-out infinite;
}
@keyframes wavePulse {
    0%, 100% { transform: scaleY(0.3); }
    50%       { transform: scaleY(1); }
}

/* Textes hero */
.hero-eyebrow {
    position: relative;
    font-size:      1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:          var(--dawn);
    margin-bottom:  1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 2rem; height: 1px;
    background: var(--dawn);
    flex-shrink: 0;
}

.hero-title {
    position: relative;
    font-family: var(--font-display);
    font-size:   clamp(2.8rem, 11vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color:       var(--white);
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 20px rgba(13,31,26,0.6);
}
.hero-title em {
    font-style:  italic;
    font-weight: 400;
    color:       var(--dawn);
    display:     block;
}

.hero-sub {
    position: relative;
    font-size:     0.95rem;
    line-height:   1.65;
    color:         var(--mist);
    margin-bottom: 2rem;
    max-width:     32ch;
    text-shadow:   0 1px 8px rgba(13,31,26,0.8);
}

/* Boutons hero */
.hero-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             0.5rem;
    background:      var(--dawn);
    color:           var(--forest);
    font-family:     var(--font-body);
    font-weight:     500;
    font-size:       0.9rem;
    border:          none;
    border-radius:   var(--radius-pill);
    padding:         0.9rem 2rem;
    cursor:          pointer;
    letter-spacing:  0.02em;
    transition:      background var(--transition), transform 0.15s;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); }

.btn-secondary {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             0.5rem;
    background:      rgba(13,31,26,0.4);
    color:           var(--mist);
    font-family:     var(--font-body);
    font-weight:     400;
    font-size:       0.85rem;
    border:          1px solid rgba(168,197,176,0.35);
    border-radius:   var(--radius-pill);
    padding:         0.85rem 2rem;
    cursor:          pointer;
    letter-spacing:  0.02em;
    backdrop-filter: blur(4px);
    transition:      border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--sage); color: var(--white); }



/* STATS STRIP
------------------------------------------------ */
.stats-strip {
    background: var(--moss);
    border-top:    1px solid rgba(61,107,82,0.35);
    border-bottom: 1px solid rgba(61,107,82,0.35);
    padding: 2rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    padding:        0.5rem;
}
.stat-item + .stat-item { border-left: 1px solid rgba(61,107,82,0.35); }

.stat-num {
    font-family:   var(--font-display);
    font-size:     1.8rem;
    font-weight:   700;
    color:         var(--dawn);
    line-height:   1;
    margin-bottom: 0.3rem;
}
.stat-label {
    font-size:      1rem;
    letter-spacing: 0.05em;
    color:          var(--sage);
    text-align:     center;
    line-height:    1.4;
}

/* IMAGE INTERMÉDIAIRE
------------------------------------------------ */
.nature-section { 
    position: relative; 
    overflow: hidden; 
    height: 24rem;
    margin-bottom: 2rem;
}

.nature-img-wrap {
    position:   relative;
    height:     55vw;
    min-height: 378px;
    max-height: 340px;
    overflow:   hidden;
}

.nature-img {
    width:           100%;
    height:          100%;
    object-fit:      cover;
    object-position: center 60%;
    filter:          saturate(0.8) brightness(0.7);
}

.nature-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,31,26,0.1)  0%,
        rgba(13,31,26,0.98) 100%
    );
}

.nature-quote {
    position: absolute;
    bottom: 1.5rem; left: 1.25rem; right: 1.25rem;
    font-family: var(--font-display);
    font-style:  italic;
    font-size:   1.05rem;
    color:       rgba(245,237,216,0.75);
    line-height: 1.55;
    text-align: center;
}
.nature-quote span { color: var(--dawn); }

/* SECTION FEATURES
------------------------------------------------ */
.section { padding: 2.5rem 1.25rem 3.5rem; }

.section-fonctionnalites{
    background-image: url('/assets/img/ssBois/ssBois3.png');
    filter: saturate(0.8) brightness(0.7);
    background-size: cover;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.section-label {
    font-size:      1.6rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color:          var(--sage);
    margin-bottom:  1.5rem;
    text-align: center;
}

.section-title {
    font-family:   var(--font-display);
    font-size:     clamp(1.7rem, 7vw, 2.4rem);
    font-weight:   700;
    line-height:   1.2;
    color:         var(--white);
    margin-bottom: 0.75rem;
    text-align: center;
}
.section-title em { font-style: italic; color: var(--dawn); }

.section-desc {
    font-size:     1rem;
    line-height:   1.7;
    color:         var(--mist);
    margin-bottom: 2.5rem;
    text-align: center;
}

.martin-section {
    position: relative;
    height: 17rem; 
    overflow: hidden;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.martin{
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/ssBois/falcon.webp');
    background-size: cover;
    background-repeat:   no-repeat;
    background-position: center 30%;
}

.section-divider {
    width: 100%; 
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(107,158,126,0.25), transparent);
}

/* Cartes features */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-card {
    background:    var(--moss);
    border:        1px solid rgba(61,107,82,0.4);
    border-radius: var(--radius-card);
    padding:       1.4rem 1.25rem;
    position:      relative;
    overflow:      hidden;
    transition:    border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: rgba(107,158,126,0.6); transform: translateY(-2px); }

.feature-card.featured {
    background: linear-gradient(
        135deg,
        rgba(42,74,58,0.9)  0%,
        rgba(26,51,41,0.9) 100%
    );
    border-color: rgba(212,168,71,0.4);
}
.feature-card.featured::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 5rem; height: 5rem;
    background: radial-gradient(circle, rgba(212,168,71,0.12) 0%, transparent 70%);
}

.feature-badge {
    display:       inline-block;
    font-size:     0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color:         var(--forest);
    background:    var(--dawn);
    border-radius: var(--radius-pill);
    padding:       0.25rem 0.6rem;
    margin-bottom: 1rem;
}
.feature-badge.soon {
    color:      var(--sage);
    background: rgba(107,158,126,0.15);
}

.feature-icon {
    width:         2.5rem;
    height:        2.5rem;
    border-radius: 10px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size:     1.2rem;
}
.feature-icon.green { background: rgba(61,107,82,0.4); }
.feature-icon.gold  { background: rgba(212,168,71,0.15); }
.feature-icon.muted { background: rgba(42,74,58,0.5); }

.feature-card-title {
    font-family:   var(--font-display);
    font-size:     1.1rem;
    font-weight:   700;
    color:         var(--white);
    margin-bottom: 0.4rem;
    line-height:   1.3;
}
.feature-card-desc {
    font-size:   1rem;
    line-height: 1.65;
    color:       var(--mist);
}

/* BIRDNET TEASER
------------------------------------------------ */
.birdnet-section { padding: 3.5rem 1.25rem; }

.birdnet-card {
    position:      relative;
    background:    linear-gradient(135deg, rgba(42,74,58,0.5) 0%, rgba(13,31,26,0.85) 100%);
    border:        1px solid rgba(212,168,71,0.25);
    border-radius: 20px;
    padding:       2rem 1.5rem;
    overflow:      hidden;
}
.birdnet-card::after {
    content: '';
    position: absolute;
    bottom: -2rem; right: -2rem;
    width: 10rem; height: 10rem;
    border-radius: 50%;
    border: 1px solid rgba(212,168,71,0.1);
    pointer-events: none;
}

/* Animation pulsation BirdNET */
.pulse-ring {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 3rem; height: 3rem;
}
.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(212,168,71,0.3);
    animation: pulseExpand 2.5s ease-out infinite;
}
.pulse-ring::after { animation-delay: 1.2s; }
.pulse-center {
    position: absolute;
    inset: 0.6rem;
    background:    rgba(212,168,71,0.15);
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     0.9rem;
}
@keyframes pulseExpand {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0;   }
}

.birdnet-tag {
    display:       inline-block;
    font-size:     0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:         var(--dawn);
    border:        1px solid rgba(212,168,71,0.35);
    border-radius: var(--radius-pill);
    padding:       0.3rem 0.75rem;
    margin-bottom: 1.2rem;
}

.birdnet-title {
    font-family:   var(--font-display);
    font-size:     1.5rem;
    font-weight:   700;
    color:         var(--white);
    line-height:   1.25;
    margin-bottom: 0.75rem;
}
.birdnet-title em { color: var(--dawn); font-style: italic; }

.birdnet-desc {
    font-size:     1rem;
    line-height:   1.7;
    color:         var(--mist);
    margin-bottom: 1.5rem;
}

.birdnet-btn {
    display:        inline-flex;
    align-items:    center;
    gap:            0.5rem;
    font-size:      0.8rem;
    font-weight:    500;
    color:          var(--dawn);
    border:         1px solid rgba(212,168,71,0.35);
    border-radius:  var(--radius-pill);
    padding:        0.6rem 1.25rem;
    background:     transparent;
    cursor:         pointer;
    letter-spacing: 0.03em;
    transition:     background var(--transition), border-color var(--transition);
}
.birdnet-btn:hover { background: rgba(212,168,71,0.08); border-color: var(--dawn); }

/* FOOTER
------------------------------------------------ */
.footer {
    padding:     2.5rem 1.25rem 3rem;
    border-top:  1px solid rgba(61,107,82,0.25);
}

.footer-logo {
    display:       block;
    font-family:   var(--font-display);
    font-size:     1.3rem;
    color:         var(--dawn);
    margin-bottom: 0.5rem;
    text-align: center;
}
.footer-logo span { font-style: italic; }

.footer-tagline {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-links {
    display:       flex;
    flex-wrap:     wrap;
    gap:           1.25rem;
    margin-bottom: 2rem;
    flex-direction:column;
    align-items: flex-end;
    width: 100%;
}
.footer-links a {
    font-size:  1rem;
    color:      var(--mist);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }






footer img {
    width: 1.8rem; 
    height: 1.8rem;
    vertical-align: middle;
}

footer .logo{
    display: flex;
    align-items: center;
    flex-direction: column;
}
/* ANIMATIONS D'ENTRÉE
------------------------------------------------ */
.fade-up {
    opacity:   0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.40s; }
.delay-4 { animation-delay: 0.55s; }

/* DESKTOP — Media queries
------------------------------------------------ */
@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { 
        flex-direction: row; 
        bottom: -2.2rem;
    }
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
        display: flex;
        justify-content: center;
        gap: 2rem;
        position: relative;        
    }
    .hero-eyebrow{
        justify-content: center;
    }
    .hero-sub{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions { flex-direction: row;  
        justify-content: center;
    }

}

@media (min-width: 1024px) {
    /* Burger caché sur desktop */
    .burger-toggle,
    .burger-btn { display: none; }

    .nav-links{
        display: block;
        text-align: right;
        width: 96%;
    }

    .nav { padding: 1.25rem 3rem; }

    .hero { padding: 0 3rem 5rem; }

    .stats-strip { padding: 2.5rem 3rem; }

    .section { padding: 4rem 3rem 5rem; }

    .feature-grid { 
        grid-template-columns: repeat(3, 1fr); 
        padding-bottom: 3rem;
    }


    .birdnet-section { padding: 4rem 3rem; }
    .birdnet-card { padding: 3rem; max-width: 680px; margin: 0 auto; }

    .footer { padding: 2rem 2rem 2rem; }
    .nav-logo{
        font-size: 2.1rem; 
    }

    .nav{
        align-items: center;
        justify-content: space-between;
    }

    .footer-links{
        flex-direction:row;
        justify-content: flex-end;
        width: 100%;
    }

}

@media (min-width: 1200px) {
    .hero-img { 
        background-image: url('/assets/img/ssBois/hiro.webp'); 
        background-size: cover;
        background-repeat:   no-repeat;
    }

    .martin{
        background-image: url('/assets/img/ssBois/king-fisher.webp');
        background-size: cover;
        background-repeat:   no-repeat;
    }
    
    .martin-section{
        height: 50rem;
    }

}