/* =========================================================
   0) GLOBAL (toutes les pages)
   ========================================================= */

:root {
    --bg: #f3f6fb;
    /* fond gris clair type SaaS */
    --text: #0f172a;
    /* noir profond */
    --muted: #475569;
    /* gris texte */
    --primary: #3b5bfd;
    /* bleu */
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --env-accent: #3b5bfd;
    --env-accent-soft: rgba(59, 91, 253, 0.12);
    --env-accent-border: rgba(59, 91, 253, 0.28);
    --env-accent-text: #1f2f9b;
}

body.env-perso {
    --primary: #8a5a3c;
    --env-accent: #8a5a3c;
    --env-accent-soft: rgba(138, 90, 60, 0.14);
    --env-accent-border: rgba(138, 90, 60, 0.32);
    --env-accent-text: #5a341f;
}

body.env-dev {
    --primary: #b38a00;
    --env-accent: #b38a00;
    --env-accent-soft: rgba(179, 138, 0, 0.14);
    --env-accent-border: rgba(179, 138, 0, 0.34);
    --env-accent-text: #6f5300;
}

body.env-uat {
    --primary: #7a3fd6;
    --env-accent: #7a3fd6;
    --env-accent-soft: rgba(122, 63, 214, 0.14);
    --env-accent-border: rgba(122, 63, 214, 0.32);
    --env-accent-text: #4b2288;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Links */
a {
    color: inherit;
}

/* Buttons (réutilisés partout) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(59, 91, 253, 0.20);
}

.btn--large {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
}


/* =========================================================
   1) LANDING PAGE (landing.html)
   - topbar + hero + image + texte rotatif
   ========================================================= */

/* --- Topbar --- */
.topbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.topbar__inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
    height: 74px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.brand__logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.brand__name {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.landingEnvBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--env-accent-border);
    background: var(--env-accent-soft);
    color: var(--env-accent-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.landingEnvBadge .material-symbols-outlined {
    font-size: 14px;
    color: var(--env-accent);
}

.dbHealth {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.dbHealthDot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    display: inline-block;
}

.dbHealth.is-up {
    color: #0b6b3a;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.dbHealth.is-up .dbHealthDot {
    background: #10b981;
}

.dbHealth.is-down {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.34);
}

.dbHealth.is-down .dbHealthDot {
    background: #ef4444;
}

/* Menu */
.menu {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.menu__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    opacity: .85;
}

.menu__link:hover {
    opacity: 1;
}

/* CTA droite */
.topbar__cta {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- Hero layout --- */
.heroWrap {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 72px 0 70px 0;
}

.hero {
    display: grid;

    /* ✅ IMPORTANT : colonne image fixe -> image ne rétrécit pas */
    grid-template-columns: minmax(0, 1fr) 520px;

    gap: 44px;
    align-items: center;
}

/* Texte */
.hero__title {
    margin: 0;
    line-height: 0.80;
    letter-spacing: -1px;
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 800;
}

.hero__kicker {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 0;
}

.hero__text {
    margin: 10px 0 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 64ch;
}

.hero__actions {
    margin-top: 24px;
}

/* Image (fixée) */
.hero__right {
    width: 520px;
    justify-self: end;
}

.hero__image {
    width: 520px;
    max-width: 520px;
    height: auto;
    display: block;

    /* fondu */
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 900ms ease-out 120ms forwards;

    filter: drop-shadow(var(--shadow));
}

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

/* --- Texte rotatif (slide) --- */
.kicker-rotator {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1em;
    vertical-align: bottom;
    padding-right: 6px;
}

.kicker-rotator {
    height: 2em;
    line-height: 1.0em;
    display: block;
}


/* Base animation (tu as sûrement déjà ces transitions) */
.kicker-line {
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform, opacity;
    transition: transform 650ms cubic-bezier(.2, .9, .2, 1), opacity 650ms ease;
}

/* --- Etat 0 : A visible --- */
.kicker-rotator.state-0 .kicker-a {
    transform: translateY(0);
    opacity: 1;
}

.kicker-rotator.state-0 .kicker-b {
    transform: translateY(120%);
    opacity: 0;
}

.kicker-rotator.state-0 .kicker-c {
    transform: translateY(120%);
    opacity: 0;
}

/* --- Etat 1 : B visible --- */
.kicker-rotator.state-1 .kicker-a {
    transform: translateY(-120%);
    opacity: 0;
}

.kicker-rotator.state-1 .kicker-b {
    transform: translateY(0);
    opacity: 1;
}

.kicker-rotator.state-1 .kicker-c {
    transform: translateY(120%);
    opacity: 0;
}

/* --- Etat 2 : C visible --- */
.kicker-rotator.state-2 .kicker-a {
    transform: translateY(-120%);
    opacity: 0;
}

.kicker-rotator.state-2 .kicker-b {
    transform: translateY(-120%);
    opacity: 0;
}

.kicker-rotator.state-2 .kicker-c {
    transform: translateY(0);
    opacity: 1;
}


/* --- Responsive Landing --- */
@media (max-width: 980px) {
    .menu {
        display: none;
    }

    .topbar__inner {
        grid-template-columns: 1fr 1fr;
    }

    .heroWrap {
        padding: 34px 0 40px 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero__right {
        width: 100%;
        justify-self: center;
    }

    .hero__kicker {
        display: block;
        max-width: 32ch;
        /* ajuste à ton goût */
    }


    .hero__image {
        width: min(520px, 92vw);
        max-width: 520px;
        margin: 0 auto;
    }

    .kicker-rotator {
        min-width: 0;
        /* sur mobile, pas besoin de réserver 30ch */
    }
}

.hero__text {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
    max-width: 65ch;
    line-height: 1.65;
}

.hero__subtitle {
    margin: 14px 0 10px 0;
    font-size: clamp(20px, 2.2vw, 28px);
    /* plus petit que h1 */
    font-weight: 800;
    /* light / medium */
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* ========== Section (Landing) ========== */
.section {
    padding: 80px 0;
}

.section__inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section__header {
    margin-bottom: 26px;
}

.section__title {
    margin: 0;
    font-size: clamp(26px, 2.5vw, 34px);
    letter-spacing: -0.02em;
}

.section__lead {
    margin: 10px 0 0 0;
    color: var(--muted);
    max-width: 70ch;
    line-height: 1.6;
}

/* Cards like your screenshot */
.featureGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.featureCard {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(6px);
}

.featureMedia {
    height: 190px;
    /* zone image */
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featureMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* rendu “pro” */
    display: block;
    transform: scale(1.02);
}

.featureTitle {
    margin: 14px 0 0 0;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.featureText {
    margin: 10px 0 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14.5px;
}

/* Responsive */
@media (max-width: 1100px) {
    .featureGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featureGrid {
        grid-template-columns: 1fr;
    }

    .featureMedia {
        height: 200px;
    }
}

/* --- Hover effect : agrandissement doux --- */
.featureCard {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;

    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(6px);

    transition:
        transform 280ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 280ms ease,
        border-color 280ms ease;
    will-change: transform;
}

.featureCard:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    border-color: rgba(59, 91, 253, 0.25);
}

.featureMedia img {
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.featureCard:hover .featureMedia img {
    transform: scale(1.06);
}

/* ========== Pricing (Landing) ========== */
.section--pricing {
    background: transparent;
}

.pricingGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.priceCard {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
    transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease, border-color 280ms ease;
}

.priceCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, .12);
    border-color: rgba(59, 91, 253, .22);
}

/* La carte “featured” un peu plus mise en avant */
.priceCard--featured {
    border-color: rgba(59, 91, 253, .25);
    box-shadow: 0 24px 50px rgba(59, 91, 253, .12);
}

.priceTop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.planPill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.planPill--blue {
    background: rgba(59, 91, 253, .12);
    color: var(--primary);
}

.planPill--purple {
    background: rgba(124, 58, 237, .12);
    color: #7c3aed;
}

.planPill--green {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.priceValue {
    text-align: right;
}

.priceAmount {
    display: block;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
}

.priceUnit {
    display: block;
    margin-top: 6px;
    color: rgba(71, 85, 105, .9);
    font-weight: 600;
    font-size: 13px;
}

/* Liste avec check */
.priceList {
    list-style: none;
    padding: 0;
    margin: 18px 0 18px 0;
    display: grid;
    gap: 10px;
}

.priceList li {
    position: relative;
    padding-left: 26px;
    color: rgba(15, 23, 42, .92);
    line-height: 1.45;
    font-size: 14.5px;
}

/* check icon (CSS only) */
.priceList li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(15, 23, 42, .85);
    font-weight: 900;
}

/* Bouton noir style “Start for Free” */
.priceBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease, background 240ms ease;
}

.priceBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, .22);
    background: #0b1224;
}

.priceNote {
    margin-top: 10px;
    color: rgba(71, 85, 105, .9);
    font-size: 12.5px;
}

/* Responsive */
@media (max-width: 1100px) {
    .pricingGrid {
        grid-template-columns: 1fr;
    }

    .priceAmount {
        font-size: 40px;
    }
}

/* =========================================================
   PARTNERS - Coverflow carousel (effet centre + côtés)
   ========================================================= */

.section--alt {
    background: rgba(255, 255, 255, 0.55);
}

.coverflow {
    position: relative;
    margin-top: 22px;
}

/* viewport */
.coverViewport {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 40px 0;
    /* espace vertical pour l’effet “depth” */
}

/* track 3D */
.coverTrack {
    position: relative;
    height: 320px;
    /* hauteur “scène” */
    transform-style: preserve-3d;
}

/* item */
.coverItem {
    position: absolute;
    top: 0;
    left: 50%;
    width: 420px;
    height: 300px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
    padding: 22px;

    display: grid;
    align-content: start;
    gap: 10px;

    transition: transform 420ms cubic-bezier(.2, .9, .2, 1), opacity 420ms ease;
    will-change: transform, opacity;
}

/* Logo box (reprend tes styles) */
.partnerLogo {
    height: 90px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: rgba(243, 246, 251, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partnerLogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ✅ remplit */
    display: block;
}


.partnerName {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.partnerDesc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* états visuels (pilotés par JS via data-pos) */
.coverItem[data-pos="0"] {
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
    z-index: 3;
}

.coverItem[data-pos="-1"] {
    transform: translateX(calc(-50% - 260px)) scale(0.92);
    opacity: 0.75;
    z-index: 2;
}

.coverItem[data-pos="1"] {
    transform: translateX(calc(-50% + 260px)) scale(0.92);
    opacity: 0.75;
    z-index: 2;
}

.coverItem[data-pos="-2"] {
    transform: translateX(calc(-50% - 420px)) scale(0.84);
    opacity: 0.45;
    z-index: 1;
}

.coverItem[data-pos="2"] {
    transform: translateX(calc(-50% + 420px)) scale(0.84);
    opacity: 0.45;
    z-index: 1;
}

/* Flèches */
.coverBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.coverBtn--left {
    left: -16px;
}

.coverBtn--right {
    right: -16px;
}

/* Mobile */
@media (max-width: 640px) {
    .coverViewport {
        padding: 28px 0;
    }

    .coverTrack {
        height: 330px;
    }

    .coverItem {
        width: min(86vw, 420px);
    }

    .coverItem[data-pos="-1"] {
        transform: translateX(calc(-50% - 180px)) scale(0.90);
    }

    .coverItem[data-pos="1"] {
        transform: translateX(calc(-50% + 180px)) scale(0.90);
    }

    .coverItem[data-pos="-2"],
    .coverItem[data-pos="2"] {
        opacity: 0;
    }

    /* cache les très loin */
}

/* =========================================================
   RGPD / Vie privée
   ========================================================= */

.section--soft {
    background: rgba(255, 255, 255, 0.6);
}

.rgpdGrid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 22px;
    margin-top: 20px;
    align-items: stretch;
}

/* Badge Europe */
.rgpdBadge {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);

    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rgpdBadge img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    object-fit: cover;
}

.rgpdBadgeTitle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.rgpdBadgeSub {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* Carte engagements */
.rgpdCard {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.rgpdCardTitle {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.rgpdList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.rgpdList li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(15, 23, 42, .92);
}

.rgpdList li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Disclaimer */
.rgpdDisclaimer {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(59, 91, 253, .06);
    border: 1px solid rgba(59, 91, 253, .18);
    font-size: 13px;
    line-height: 1.55;
    color: rgba(15, 23, 42, .85);
}

/* Responsive */
@media (max-width: 980px) {
    .rgpdGrid {
        grid-template-columns: 1fr;
    }
}

/* ========== Register modal (simple, 1 colonne) ========== */
.authModal--wide {
    width: min(560px, 92vw);
    max-height: 86vh;
    /* ✅ évite que ça dépasse */
    overflow: auto;
    /* ✅ scroll interne si besoin */
}

.authSubtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
    line-height: 1.5;
}

.authForm--long {
    display: grid;
    gap: 12px;
}

.authBlock {
    background: rgba(243, 246, 251, .65);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.authBlockTitle {
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.authHelp {
    margin-top: -6px;
    font-size: 12px;
    color: var(--muted);
}

.req {
    color: #ef4444;
    font-weight: 900;
}

.opt {
    color: rgba(71, 85, 105, .9);
    font-weight: 800;
    font-size: 12px;
}

.inlineLink {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.inlineLink:hover {
    text-decoration: underline;
}


/* ============================
   AUTH MODAL (same page)
   ============================ */

.authOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 100;
}

/* OUVERTURE */
.authOverlay:target {
    opacity: 1;
    pointer-events: auto;
}

/* MODAL */
.authModal {
    width: min(460px, 92vw);
    background: #fff;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
    position: relative;
    animation: modalUp .35s ease;
}

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

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

/* CLOSE */
.authClose {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
}

/* HEADER */
.authHeader {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.authLogo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.authTitle {
    margin: 0;
    font-size: 20px;
}

/* SOCIAL */
.authSocial {
    display: grid;
    gap: 10px;
}

.authSocialBtn {
    height: 44px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    border: none;
    opacity: .9;
}

.authForgotLink {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.62);
    text-decoration: none;
    transition: color .18s ease;
}

.authForgotLink:hover {
    color: #111827;
}

/* DIVIDER */
.authDivider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin: 16px 0;
    font-size: 12px;
}

.authDivider::before,
.authDivider::after {
    content: "";
    height: 1px;
    background: #e5e7eb;
}

/* FORM */
.authForm {
    display: grid;
    gap: 10px;
}

.authInput {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
}

.authPrimaryBtn {
    height: 46px;
    margin-top: 8px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.authHint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* FOOTER */
.authFooterLinks {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
}




/* =========================================================
   3) APP PAGE (app.html)
   - topbar interne + cards simples
   ========================================================= */

.appWrap {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 26px 0;
}

.appTopbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

@media (min-width: 1024px) {
    .kicker-rotator {
        height: 2em;
    }
}

html,
body {
    overflow-x: hidden;
}

/* =========================================================
   FOOTER (global)
   ========================================================= */

.siteFooter {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.siteFooter__inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 26px 0;
    display: grid;
    gap: 16px;
}

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

.siteFooter__logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.siteFooter__name {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.siteFooter__tag {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.siteFooter__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.siteFooter__link {
    color: rgba(15, 23, 42, .85);
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
}

.siteFooter__link:hover {
    text-decoration: underline;
}

.siteFooter__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.siteFooter__sep {
    opacity: .6;
}

@media (max-width: 640px) {
    .siteFooter__inner {
        padding: 22px 0;
    }
}

.authError {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fdecea;
    color: #b42318;
    border-radius: 8px;
    font-size: 14px;
}

/* --- Google Calendar-like layout --- */
.gcal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 14px 0;
}

.gcal-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gcal-title {
    margin-left: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcal-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .12s ease;
}

.btn:hover {
    background: #f9fafb;
}

.btn-primary {
    border: 1px solid #1a73e8;
    background: #1a73e8;
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: .12s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    filter: brightness(.95);
}

.plus {
    font-size: 18px;
    line-height: 1;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: .12s ease;
    display: grid;
    place-items: center;
}

.icon-btn:hover {
    background: #f9fafb;
}

/* segmented control */
.segmented {
    display: inline-flex;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
}

.seg-btn {
    border: 0;
    background: transparent;
    color: #374151;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: .12s ease;
}

.seg-btn.is-active {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* calendar container */
.gcal-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .05);
}

/* FullCalendar modern tuning */
.fc .fc-header-toolbar {
    display: none !important;
}

.fc .fc-daygrid-day-number {
    font-weight: 700;
    color: #111827;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #eef2f7;
}

.fc .fc-col-header-cell-cushion {
    color: #6b7280;
    font-weight: 800;
}

.fc .fc-scrollgrid {
    border: 0;
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(26, 115, 232, .08) !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: #1a73e8;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
}

.fc .fc-event {
    border-radius: 10px;
    border: 0;
    padding: 2px 6px;
    font-weight: 700;
}

/* Modal (clean) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 50;
}

.modal {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.modal-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
}

.modal-title {
    font-weight: 900;
    font-size: 16px;
    color: #111827;
}

.modal-body {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.row {
    display: grid;
    gap: 6px;
}

.row.two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 900;
}

input,
textarea {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, .12);
}

.modal-footer {
    padding: 14px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eef2f7;
}

/* ============================= */
/* GOOGLE CALENDAR LIKE – FIX */
/* ============================= */

.fc .fc-header-toolbar {
    display: none !important;
}

/* Header */
.gcal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 16px 0;
}

.gcal-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gcal-title {
    margin-left: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.gcal-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    border: 1px solid #1a73e8;
    background: #1a73e8;
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

/* Segmented */
.segmented {
    display: inline-flex;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
}

.seg-btn {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.seg-btn.is-active {
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* Calendar container */
.gcal-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
}

/* Today highlight */
.fc .fc-daygrid-day.fc-day-today {
    background: rgba(26, 115, 232, .08) !important;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    width: min(560px, 100%);
    border-radius: 18px;
    padding: 16px;
}

/* =========================================================
   OVERRIDE — Add Member Modal Google-like
   Colle TOUT EN BAS du dashboard.css
   ========================================================= */

/* Overlay */
#addMemberModal.modalOverlay {
    background: rgba(17, 24, 39, .38) !important;
    padding: 18px !important;
}

/* Card */
#addMemberModal .modalCard {
    width: min(920px, 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .22) !important;
    overflow: hidden !important;
    padding: 0 !important;
    /* on gère les paddings par sections */
}

/* Header */
#addMemberModal .modalTop {
    padding: 18px 18px 14px 18px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
    background: #fff !important;
}

#addMemberModal .modalTitle {
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -.2px !important;
}

#addMemberModal .modalClose {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    background: #fff !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
}

#addMemberModal .modalClose:hover {
    background: rgba(0, 0, 0, .05) !important;
}

/* ✅ IMPORTANT : l’espace autour du contenu */
#addMemberModal .modalForm {
    padding: 16px 18px 18px 18px !important;
    /* <-- 1rem+ gauche/droite */
}

/* Sections */
#addMemberModal .modalSectionTitle {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, .55) !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    margin: 2px 0 10px 2px !important;
}

/* Champs */
#addMemberModal .authLabel {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, .60) !important;
    margin-left: 2px !important;
}

#addMemberModal .authInput {
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
}

#addMemberModal .authInput:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 5px rgba(26, 115, 232, .14) !important;
}

/* Help text */
#addMemberModal .authHelp {
    font-size: 12px !important;
    color: rgba(0, 0, 0, .55) !important;
    margin: 6px 0 0 2px !important;
}

/* City picker : plus clean */
#addMemberModal .cityPicker {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    margin-bottom: 10px !important;
}

#addMemberModal .cityIcon {
    font-size: 20px !important;
    color: rgba(0, 0, 0, .55) !important;
}

#addMemberModal .citySearch {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 14px !important;
}

/* Check rows Google-like */
#addMemberModal .checkRow {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, .02) !important;
    font-weight: 800 !important;
}

/* Footer buttons */
#addMemberModal .modalBottom {
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 0, 0, .08) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

#addMemberModal .tbBtn {
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 900 !important;
}

#addMemberModal .tbBtnPrimary {
    width: auto !important;
    padding: 10px 16px !important;
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}

#addMemberModal .tbBtnPrimary:hover {
    filter: brightness(.96) !important;
}

/* Error */
#addMemberModal .formError {
    margin: 14px 18px 0 18px !important;
    border-radius: 16px !important;
}

/* =========================
   Mobile => bottom sheet avec marges
   ========================= */
@media (max-width: 900px) {
    #addMemberModal.modalOverlay {
        align-items: flex-end !important;
        padding: 12px !important;
    }

    #addMemberModal .modalCard {
        width: 100% !important;
        border-radius: 22px !important;
    }

    #addMemberModal .modalForm {
        padding: 14px 14px 16px 14px !important;
    }

    #addMemberModal .grid2,
    #addMemberModal .grid3 {
        grid-template-columns: 1fr !important;
    }

    #addMemberModal .modalBottom {
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
}