/* =====================================================
   STYLE GLOBAL STF — Bleu clair moderne + blanc
   Version optimisée + dark mode auto
   ===================================================== */

/* Thème LIGHT */
:root {
    --blue: #00c8ff;
    --blue-soft: #9ce9ff;
    --blue-dark: #005f7a;

    --white: #ffffff;
    --grey: #f5f7fa;

    --text-dark: #0d1b2a;
    --text-light: #e6f7ff;

    --radius: 14px;
    --radius-sm: 8px;

    --shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.1);

    --speed: 300ms;
    --easing: cubic-bezier(.22, .68, .37, 1);
    --font: "Poppins", sans-serif;

    background: var(--grey);
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --grey: #0b1120;
        --text-dark: #dbeafe;
        --text-light: #e0f7ff;
        --shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        --blue-soft: #67d8ff;
    }
}

/* RESET & BASE */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--grey);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background var(--speed), color var(--speed);
}

img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* HEADER */
header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* NAVBAR */
.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 60, 150, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 120, 255, .25);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #49cbe2;
    font-weight: 500;
    transition: color var(--speed);
}

.nav-links a:hover { color: rgb(115, 205, 228); }

/* MEGA MENU */
.dropdown { position: relative; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;

    padding: 1.2rem;
    background: var(--blue-dark);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    border: 1px solid rgba(100, 180, 255, .30);
    box-shadow: 0 10px 25px rgba(0, 20, 50, 0.4);

    display: flex;
    flex-direction: column;
    gap: .8rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu a {
    text-decoration: none;
    color: white;;
    padding: .5rem 0;
    transition: .25s;
}

.mega-menu a:hover {
    color: white;
    transform: translateX(4px);
}

/* VERSION MOBILE AMÉLIORÉE */
@media(max-width: 850px) {
    .nav {
        flex-direction: column;
        width: 100%;
        gap: .6rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .mega-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(0, 80, 180, .15);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* HERO */ 
.hero {
    height: 100vh; background: linear-gradient(to bottom, rgba(34, 41, 43, 0.3), rgba(0,200,255,0.1)),
     url( "les logo/14.jpg") center/cover no-repeat;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
  
/* BUTTONS */
.btn-primary,
.btn-secondary {
    padding: .8rem 1.6rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--speed);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--blue-soft);
}

.btn-secondary {
    border: 2px solid var(--blue);
    color: var(--blue-dark);
}

.btn-secondary:hover {
    background: var(--blue);
    color: white;
}

/* -----------------------------------------------------
   SECTIONS GLOBALES
   ----------------------------------------------------- */
section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--blue-dark);
}

/* -----------------------------------------------------
   GRILLES PRODUITS / ACTIVITÉS
   ----------------------------------------------------- */
.grid,
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 15px;
}


.card,
.product-card,
.activity-card {
    background: var(--white);
    padding: 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform var(--speed);
}

.card:hover,
.product-card:hover,
.activity-card:hover {
    transform: translateY(-6px);
}

.product-card img,
.activity-card img {
    height: 900px;
    object-fit: contain;
    width: 1200%;
}

/* -----------------------------------------------------
   GALERIE HORIZONTALE (images côte à côte)
   ----------------------------------------------------- */
.img-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.img-row img {
    height: 180px;
    flex-shrink: 0;
}

.img {
  transform: translateY(50px);
  opacity: 0;
  animation: slideIn 1.5s forwards;
}

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* -----------------------------------------------------
   FOOTER
   ----------------------------------------------------- */
footer {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-top: 3rem;
    color: var(--blue-dark);
}
