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

:root {
    --clr-accent: #46A908;
    --clr-accent-strong: #22c55e;
    --clr-accent-soft: #bbf7d0;

    --clr-bg: #f5f7fb;
    --clr-bg-alt: #ecfdf5;
    --clr-surface: #ffffff;

    --clr-text: #020617;
    --clr-text-muted: #64748b;

    --clr-border-subtle: rgba(148, 163, 184, 0.35);

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

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

    --transition-fast: 0.25s ease;
    --transition-med: 0.4s ease;
}

body[data-theme="dark"] {
    --clr-bg: #020617;
    --clr-bg-alt: #022c22;
    --clr-surface: rgba(15, 23, 42, 0.96);

    --clr-text: #e5e7eb;
    --clr-text-muted: #9ca3af;

    --clr-border-subtle: rgba(30, 64, 175, 0.5);

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(74, 222, 128, 0.15), transparent 55%),
        var(--clr-bg);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--clr-text);
}

/* GLOBALS */


img {
    max-width: 100%;
    height: 170px;
    width: 450px;
    display: block;
    border-radius: 18px;
}






a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 100% - 3rem);
    margin-inline: auto;
}

main {
    padding-top: 5rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.94),
            rgba(248, 250, 252, 0.88));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform var(--transition-med), box-shadow var(--transition-med), background var(--transition-med);
}

body[data-theme="dark"] .site-header {
    background:
        linear-gradient(to bottom,
            rgba(15, 23, 42, 0.96),
            rgba(15, 23, 42, 0.9));
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 0.9rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 70px;
    height: auto;
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-inline: 0.1rem;
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-strong));
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--clr-text);
}

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

.nav-link.actif {
    color: var(--clr-accent);
}

.nav-cta {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(22, 163, 74, 0.2);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(22, 163, 74, 0.03));
    color: var(--clr-accent);
}

/* DROPDOWN MENU STYLE */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    list-style: none;
    background: var(--clr-surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--clr-border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 961px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
    
    .nav-dropdown:hover .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}

.dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    color: var(--clr-text-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    display: block;
}

.dropdown-item:hover,
.dropdown-item.actif {
    background: var(--clr-bg-alt);
    color: var(--clr-accent);
}

@media (max-width: 960px) {
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        padding-left: 1.25rem;
        padding-block: 0.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        background: transparent;
        backdrop-filter: none;
    }
    
    .dropdown-toggle .arrow {
        display: none;
    }
}

/* MENU TOGGLE (MOBILE) */

.menu-toggle {
    display: none;
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body[data-theme="dark"] .menu-toggle {
    background: rgba(15, 23, 42, 0.9);
}

.menu-line {
    position: absolute;
    width: 55%;
    height: 2px;
    border-radius: 999px;
    background: var(--clr-text);
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-line:nth-child(1) {
    top: 35%;
}

.menu-line:nth-child(2) {
    top: 50%;
}

.menu-line:nth-child(3) {
    top: 65%;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* THEME TOGGLE */

.theme-toggle {
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

body[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.95);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 10vh, 7rem);
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.7;
    z-index: -1;
}

.hero-orbit--one {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.35), transparent 70%);
    top: -80px;
    left: -120px;
}

.hero-orbit--two {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 65%);
    bottom: -200px;
    right: -150px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--clr-accent);
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(120deg, var(--clr-accent), #4ade80, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    max-width: 36rem;
    color: var(--clr-text-muted);
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(22, 163, 74, 0.6);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--clr-text);
}

body[data-theme="dark"] .btn-ghost {
    background: rgba(15, 23, 42, 0.9);
}

/* HERO STATS */

.hero-stats {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.45);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body[data-theme="dark"] .stat-card {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.35), rgba(15, 23, 42, 0.9));
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-accent);
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* HERO VISUAL */

.hero-visual-inner {
    position: relative;
    padding: 1.3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.9),
            rgba(209, 250, 229, 0.95));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

body[data-theme="dark"] .hero-visual-inner {
    background: radial-gradient(circle at top,
            rgba(22, 163, 74, 0.35),
            rgba(15, 23, 42, 0.98));
}

.hero-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-main-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    transition: none;
}

.hero-visual-inner:hover .hero-main-image img {
    transform: none;
}

.hero-gradient-ring {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle,
            rgba(56, 189, 248, 0.18),
            transparent 70%);
    mix-blend-mode: screen;
}

.hero-pill {
    position: absolute;
    left: 1.7rem;
    right: 1.7rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    display: inline-flex;
    justify-content: center;
    backdrop-filter: blur(14px);
}

.hero-pill--top {
    top: 1.4rem;
}

.hero-pill--bottom {
    bottom: 1.4rem;
}

.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.35);
    mix-blend-mode: screen;
    animation: float 9s ease-in-out infinite alternate;
}

.bubble--one {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 8%;
}

.bubble--two {
    width: 40px;
    height: 40px;
    bottom: 18%;
    left: 10%;
    animation-delay: -4s;
}

.bubble--three {
    width: 60px;
    height: 60px;
    top: 45%;
    left: 50%;
    animation-delay: -2s;
}

/* SECTIONS GENERIQUES */

section {
    padding-block: 4rem;
}

.section-alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.01), rgba(15, 23, 42, 0.05));
}

.section-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-header {
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.section-header p {
    max-width: 38rem;
    margin-inline: auto;
    color: var(--clr-text-muted);
}

/* PRESENTATION */

.presentation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.98rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    font-size: 0.8rem;
}

.presentation-highlight {
    padding: 1.5rem 1.7rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--clr-border-subtle);
    box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .presentation-highlight {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
}

.presentation-highlight h3 {
    margin-bottom: 0.7rem;
}

/* CARD GRID */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card-grid--articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CARD GENERIQUE */

.card {
    position: relative;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--clr-border-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
    transform-origin: center;
}

body[data-theme="dark"] .card {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
}

.card:hover {
    transform: translateY(-6px) rotate3d(1, -1, 0, 6deg);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
    border-color: rgba(34, 197, 94, 0.7);
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.tag {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.12);
    color: var(--clr-accent);
}

/* WHY SECTION */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.why-item {
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.8);
}

body[data-theme="dark"] .why-item {
    background: rgba(15, 23, 42, 0.98);
}

.why-item h3 {
    margin-bottom: 0.4rem;
}

.section-cta {
    text-align: center;
}

/* TEMOIGNAGE */

.testimonial {
    position: relative;
    margin-inline: auto;
    max-width: 40rem;
    padding: 2.2rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--clr-border-subtle);
    box-shadow: var(--shadow-soft);
    font-style: italic;
}

body[data-theme="dark"] .testimonial {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
}

.testimonial::before {
    content: "“";
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 3rem;
    color: rgba(74, 222, 128, 0.5);
}

.testimonial footer {
    margin-top: 1rem;
    font-style: normal;
    color: var(--clr-text-muted);
}

.testimonial-add-box {
    max-width: 36rem;
    margin: 2.5rem auto 0;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--clr-border-subtle);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .testimonial-add-box {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
    border-color: var(--clr-border-subtle);
    color: #f8fafc;
}

body[data-theme="dark"] .testimonial-add-box input,
body[data-theme="dark"] .testimonial-add-box select,
body[data-theme="dark"] .testimonial-add-box textarea {
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.3);
}

body[data-theme="dark"] .testimonial-add-box label {
    color: #cbd5e1;
}

/* ARTICLES */

.article-card {
    padding-bottom: 1.2rem;
}

.card-link {
    display: inline-flex;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--clr-accent);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover .card-link {
    border-color: rgba(34, 197, 94, 0.7);
    transform: translateX(4px);
}

/* ACTIVITES */

.activites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.activite img {
    margin-bottom: 0.9rem;
}

/* CONTACT */

#contact {
    background: radial-gradient(circle at top left, rgba(74, 222, 128, 0.08), transparent 55%);
}

.contact-form {
    max-width: 550px;
    margin-inline: auto;
    padding: 1.8rem 1.7rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--clr-border-subtle);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

body[data-theme="dark"] .contact-form {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

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

label {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--clr-text-muted);
}

input,
textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: var(--clr-text);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea {
    background: rgba(15, 23, 42, 0.98);
}

input:focus,
textarea:focus {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
}


/* FOOTER */

.site-footer {
    margin-top: 2rem;
    padding-block: 2.5rem;
    background: linear-gradient(145deg, #16a34a, #065f46);
    color: #ecfdf5;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}

.footer-brand {
    max-width: 260px;
}

.footer-logo {
    width: 70px;
    height: auto;
    margin-bottom: 0.8rem;
    border-radius: 999px;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.footer-column a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-column a:hover {
    opacity: 1;
    transform: translateX(2px);
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(209, 250, 229, 0.4);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.9);
}

/* REVEAL ANIMATIONS */

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(6px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* KEYFRAMES */

@keyframes float {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(10px, -18px, 0);
    }
}

/* RESPONSIVE */

@media (max-width: 960px) {
    main {
        padding-top: 4.5rem;
    }

    .nav-links {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1.5rem 1.3rem;
        gap: 0.7rem;
        transform-origin: top;
        transform: scaleY(0.9);
        opacity: 0;
        pointer-events: none;
        translate: 0 -8px;
        transition: opacity 0.25s ease, translate 0.25s ease, transform 0.25s ease;
    }

    body[data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.97);
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        translate: 0 0;
        transform: scaleY(1);
    }

    .nav-link {
        padding-block: 0.3rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .presentation-layout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .card-grid--articles,
    .why-grid,
    .activites-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 2rem, 100%);
    }

    .header-inner {
        gap: 1rem;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .contact-form {
        padding-inline: 1.2rem;
    }
}
/* === FIX BOUTON "Inscription" DANS LE MENU === */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    margin-left: 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.7);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb !important;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.55);
    font-weight: 600;
    font-size: 0.95rem;
}

body[data-theme="dark"] .nav-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5 !important;
}

/* Pour qu'il ne soit pas collé au bord sur mobile */
@media (max-width: 960px) {
    .nav-cta {
        align-self: stretch;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        margin-top: 0.2rem;
    }
}

/* === FIX BADGES "Production / Systèmes / Formations" === */

/* On laisse plus de place en haut de la carte pour que le badge ne chevauche pas le titre */
.service-card {
    position: relative;           /* sécurité */
    padding-top: 2.6rem;          /* plus d'espace pour le badge */
}

/* Style et placement des badges */
.service-card .tag {
    top: 0.8rem;
    right: 1.1rem;
    padding: 0.15rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Un peu plus petit sur mobile pour ne pas gêner le texte */
@media (max-width: 600px) {
    .service-card {
        padding-top: 2.3rem;
    }
    .service-card .tag {
        font-size: 0.7rem;
        right: 0.8rem;
    }
}


/* === HERO STATS : 3ᵉ CARTE = LARGEUR COMPLÈTE === */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* de base : les cartes prennent la place disponible */
.hero-stats .stat-card {
    flex: 1 1 220px;
}

/* la 3ᵉ carte prend 100 % de la largeur sur desktop */
.hero-stats .stat-card:nth-child(3) {
    flex: 0 0 100%;
}

/* sur mobile, toutes les cartes prennent toute la largeur (pour rester lisible) */
@media (max-width: 600px) {
    .hero-stats .stat-card {
        flex: 0 0 100%;
    }
}
/* === HERO STATS : 3ᵉ CARTE = LARGEUR COMPLÈTE === */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* de base : les cartes prennent la place disponible */
.hero-stats .stat-card {
    flex: 1 1 220px;
}

/* la 3ᵉ carte prend 100 % de la largeur sur desktop */
.hero-stats .stat-card:nth-child(3) {
    flex: 0 0 100%;
}

/* sur mobile, toutes les cartes prennent toute la largeur (pour rester lisible) */
@media (max-width: 600px) {
    .hero-stats .stat-card {
        flex: 0 0 100%;
    }
}
/* === CONTACT : FORMULAIRE PLUS LARGE + BOUTON CENTRÉ === */

/* Formulaire plus large sur tous les écrans */
.contact-form {
    width: 100%;                 /* prend toute la largeur dispo du container */
    max-width: 900px;            /* beaucoup plus large qu'avant */
    margin-inline: auto;         /* bien centré dans la page */
    padding: 2.4rem 2.8rem 2.6rem;
}

/* Champ message un peu plus haut */
.contact-form textarea {
    min-height: 200px;
}

/* Bouton centré */
.contact-form button[type="submit"] {
    display: block;
    margin: 1.8rem auto 0;       /* centre horizontalement */
    width: 230px;                /* largeur fixe pour un beau pill */
    text-align: center;
}

/* Sur mobile : on garde large, mais on réduit un peu le padding */
@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
        padding-inline: 1.4rem;
    }
}


/* Bouton "Inscription" : pas de soulignement */
.nav-cta::after {
    width: 0 !important;
    content: none;
}


/* ============================================================
   Smartoponia - styles backend / utilitaires (ajout)
   ============================================================ */

/* Bannière flash (messages de succès / erreur) */
.flash {
    position: fixed;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    max-width: 92%;
    width: 520px;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    animation: flash-in 0.3s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.flash--success { background: #e7f7ec; color: #1a7f37; border: 1px solid #bfeccb; }
.flash--error   { background: #fdecec; color: #b42318; border: 1px solid #f5c2c2; }
.flash--info    { background: #e8f2fe; color: #175cd3; border: 1px solid #c3ddfb; }
.flash--out     { opacity: 0; transform: translate(-50%, -10px); }
.flash__message { flex: 1; }
.flash__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}
.flash__close:hover { opacity: 1; }
@keyframes flash-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Badge compteur du panier dans la navigation */
.cart-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary, #16a34a);
    color: #fff;
    font-size: 0.72rem;
    line-height: 20px;
    text-align: center;
    margin-left: 4px;
    vertical-align: middle;
}
.nav-links a:hover .cart-badge { color: #fff; }

/* Panier : tableau des articles */
.table-panier {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1.2rem;
}
.table-panier th,
.table-panier td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 0.95rem;
    vertical-align: middle;
}
.table-panier th {
    font-weight: 600;
    color: var(--muted, #64748b);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.table-panier .qty-input {
    width: 70px;
    padding: 0.45rem;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    text-align: center;
}
.cart-summary {
    margin-top: 1.5rem;
    padding: 1.4rem;
    border-radius: 16px;
    background: var(--card-bg, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
}
.cart-summary .row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.cart-summary .total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #16a34a);
}

/* Bandeau "panier vide" */
.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}
.cart-empty .emoji { font-size: 3rem; }

/* Erreurs de formulaire */
.field-error {
    color: #b42318;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

/* Boutique : recherche, filtre et stock */
.search-form {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}
.search-form input[type="text"] {
    min-width: 240px;
    max-width: 380px;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.95);
    color: #0f172a;
    font: inherit;
}
body[data-theme="dark"] .search-form input[type="text"] {
    background: rgba(15,23,42,.9);
    color: #e5e7eb;
    border-color: rgba(255,255,255,.15);
}
.cat-filter {
    display: flex;
    gap: .6rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    font-size: .92rem;
}
.cat-filter select {
    padding: .5rem .8rem;
    border-radius: 10px;
    border: 1px solid var(--border,#cbd5e1);
    font: inherit;
    background: #fff;
    color: #0f172a;
}
.stock-ok { color: #16a34a; font-size: .85rem; font-weight: 600; }
.stock-ko { color: #dc2626; font-size: .85rem; font-weight: 600; }

/* Page produit : mise en page */
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.6rem;
    align-items: start;
}
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
}
.btn--sm { padding: .4rem .8rem; font-size: .85rem; border-radius: 8px; }

/* Badges de statut (commandes, comptes) - usage public */
.badge--nouvelle   { background: #fef5e7; color: #b45309; }
.badge--confirmee  { background: #e8f2fe; color: #175cd3; }
.badge--expediee   { background: #f1e9fd; color: #6d28d9; }
.badge--livree     { background: #e7f7ec; color: #1a7f37; }
.badge--annulee    { background: #fdecec; color: #b42318; }
.badge--oui        { background: #e7f7ec; color: #1a7f37; }
.badge--non        { background: #fdecec; color: #b42318; }

/* Texte discret */
.muted { color: #64748b; font-size: 0.85rem; }

/* Message de succès de formulaire */
.form-success {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #e7f7ec;
    border: 1px solid #bfeccb;
    color: #1a7f37;
    font-size: 0.92rem;
}


/* ====== Popup "Nous arrivons bientôt" ====== */
.coming-soon-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, rgba(22,163,74,.9), rgba(2,44,20,.98));
    backdrop-filter: blur(4px);
    transition: opacity .4s ease;
}
.coming-soon-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.coming-soon-box {
    position: relative;
    max-width: 760px;
    width: 90%;
    padding: 3rem 2rem 2.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
    text-align: center;
    color: #fff;
}
.coming-soon-marquee {
    display: block;
    font-size: 1rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #bbf7d0;
    opacity: .85;
    margin-bottom: 1.75rem;
    background: rgba(0,0,0,.25);
    padding: .45rem 0;
    border-radius: .5rem;
}
.coming-soon-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.coming-soon-type {
    min-height: 3.2em;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #dcfce7;
    max-width: 34em;
    margin: 0 auto;
    white-space: normal;
    word-break: break-word;
}
.coming-soon-caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #bbf7d0;
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: caret-blink 0.8s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.coming-soon-close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.coming-soon-close:hover { background: rgba(255,255,255,.28); }
