/* =========================
       Design system â€” Dark UI
       ========================= */
:root {
    --bg: #ffffff;
    --card: #f8f8f8;
    --muted: #666666;
    --text: #333333;
    --accent: #28a745; /* primary green */
    --accent-2: #2ecc71; /* secondary green */
    --glass: rgba(0, 0, 0, 0.08); /* Darker glass for light theme */
    --success: #28a745;
    --danger: #dc3545;
    --radius: 12px;
    --container: 1160px;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.1); /* Lighter shadow for light theme */
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.15); /* Lighter shadow for light theme */
    --focus: 3px solid rgba(40, 167, 69, 0.4); /* Green focus */
    --gap: 20px;
}

/* Reset & basics */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg); /* Use the new white background variable */
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit
}

/* Layout container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px;
}

/* =========================
   Header
   ========================= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(240, 240, 240, 0.8); /* Light gray background */
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); /* Darker border for contrast */
}


.nav {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 23px;
    box-shadow: var(--shadow-sm);
}

.brand h1 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

nav.primary {
    display: flex;
    gap: 10px;
    align-items: center
}

nav.primary a {
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px
}

nav.primary a:hover,
nav.primary a:focus {
    color: var(--text);
    background: rgba(40, 167, 69, 0.08) /* Green hover/focus effect */
}

.btn-cta {
    background: #bd0042;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(40, 167, 69, 0.2); /* Green shadow */
    text-decoration: none;
    font-weight: 700;
}

/* Mobile: hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer
}

.hamburger svg {
    width: 22px;
    height: 22px;
    color: var(--muted)
}

@media (max-width:900px) {
    nav.primary {
        display: none
    }

    .hamburger {
        display: block
    }
}

/* =========================
     Hero
     ========================= */
.hero {
    padding: 44px 20px;
    background: linear-gradient(rgba(40, 167, 69, 0.7), rgba(46, 204, 113, 0.7)); /* Green overlay */
    background-size: cover;
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: stretch;
    align-content: start;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.kicker {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent); /* Green background */
    color: white; /* White text */
    font-weight: 700;
    font-size: 13px
}

.hero-title {
    font-size: 65px;
    line-height: 1.05;
    margin: 0;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}

.hero-desc {
    color: #e5e7eb;
    font-size: 16px;
    margin: -30px;
    margin-top: 0;
    max-width: 720px;
    text-align: center;

}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    margin-left: 15%;
    margin-bottom: 20px;
    align-items: center
}

.ghost {

    padding: 10px 12px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    background: #bd0042;

    color:#fff;

    font-weight: 600;

    margin-bottom: 20px;

}

/* Right column: form card */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    margin: -20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04); /* Darker border for light theme */


}

.form-title {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--text);
    text-align: center;
    margin-bottom: 30px;
}

.form-sub {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 17px;
    text-align: center;
}


.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px
}

label {

    font-size: 15px;

    color: var(--text);

    font-weight: 600;

}



input[type="email"],

input[type="text"],

select,

.fake-select {

    border-radius: 10px;

    padding: 12px 14px;

    font-size: 15px;

    border: 1px solid rgba(0, 0, 0, 0.1); /* Darker border for light theme */

    background: var(--card); /* Use card background */

    color: var(--text);

    margin-bottom: 15px;

}

input::placeholder {
    color: #bfc7d4
}

.row {
    display: flex;
    gap: 10px
}

.row .field {
    flex: 1
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 8px
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px
}

.form-note {
    font-size: 13px;
    color: var(--muted)
}

.submit-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px
}

button[type="submit"] {
    background: #bd0042;
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed
}

.feedback {
    font-size: 14px;
    margin-top: 8px
}

.feedback.success {
    color: var(--success)
}

.feedback.error {
    color: var(--danger)
}

/* =========================
       Products & Partners
       ========================= */
.section {
    max-width: var(--container);
    margin: 44px auto;
    padding: 0 20px;
}

.section h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: var(--text);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px
}

.product {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Darker border for light theme */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.product h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}

.product .iconify {
    margin-bottom: 12px;
}

.product p {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0 0
}

.product .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px
}

.chip {
    background: rgba(40, 167, 69, 0.1); /* Light green background */
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--accent); /* Green text */
}

.partners {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center
}

.partner {
    background: var(--card);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Darker border for light theme */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
       Footer
       ========================= */
footer {
    padding: 36px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Darker border for light theme */
    margin-top: 20px
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap
}

.footer-col {
    min-width: 200px
}

.muted {
    color: var(--muted)
}

/* Accessibility focus states */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width:1040px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:820px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }
}

@media (max-width:480px) {
    .container {
        padding: 16px
    }

    .hero-title {
        font-size: 35px
    }

    .logo {
        width: 40px;
        height: 40px
    }

    header {
        padding: 8px 0
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.muted {
    color: var(--muted);
}

.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    color: var(--text);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04); /* Darker border for light theme */
}


/* --- Modal basique --- */
.modal.hidden { display: none; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
}


/* Overlay */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Cercle */
.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #bd0042;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utilitaire */
.hidden {
    display: none;
}


/* Champs en erreur */
input.error,
select.error {
    border-color: #bd0042 !important;
    box-shadow: 0 0 0 2px rgba(189, 0, 66, 0.15);
}

/* Texte d’erreur */
.field .muted {
    color: #bd0042;
    font-weight: 500;
}

/* Message colors */
.msg-success { color: #1f8a1f; }
.msg-error { color: #e74c3c; }


/* MENU MOBILE */

/* =========================
   OVERLAY
========================= */

#menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);

    opacity:0;
    visibility:hidden;

    transition:.3s ease;

    z-index:999;
}

#menu-overlay.active{
    opacity:1;
    visibility:visible;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu{

    position:fixed;
    top:0;
    left:0;

    width:280px;
    height:100vh;

    background:#fff;

    transform:translateX(-100%);
    transition:transform .3s ease;

    z-index:1000;

    box-shadow:0 0 30px rgba(0,0,0,.2);

    display:flex;
    flex-direction:column;
}

/* OPEN */

.mobile-menu.open{
    transform:translateX(0);
}

/* HEADER */

.mobile-menu-header{

    display:flex;
    justify-content:flex-end;
    align-items:center;

    padding:18px;

    border-bottom:1px solid #eee;
}

/* CLOSE BUTTON */

.close-menu{

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:#f5f5f5;

    color:#111;

    font-size:30px;
    font-weight:bold;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* LINKS */

.mobile-menu-content{

    display:flex;
    flex-direction:column;

    padding:20px;

    gap:10px;
}

.mobile-menu-content a{

    text-decoration:none;

    color:#222;

    font-size:16px;
    font-weight:600;

    padding:14px 10px;

    border-radius:10px;

    transition:.2s;
}

.mobile-menu-content a:hover{
    background:#f2f2f2;
}

@media(min-width:901px){

    .mobile-menu,
    #menu-overlay{
        display:none;
    }

}