/* =============================================================================
   benevole2026-public.css
   Styles des pages PUBLIQUES du design 2026 (sans version admin) :
     - Page de connexion        -> accounts/connexion_2026.html  (classes nues : .card, .btn-primary, .form-group, .social-btn...)
     - Vitrine publique d'asso   -> accounts/vitrine_2026.html    (classes prefixees .v-v / .v-v__...)
   Les deux pages utilisent des espaces de noms de classes DISTINCTS : aucune
   collision. On factorise ici uniquement le reset universel commun ; le reste
   est range en deux sections clairement separees.

   Palette de marque Vorg :
     teal   #2C7873  | corail #E8735A | corail fonce #C9553C
     beige  #F9F4EF  | bleu pale #EAF2F1 | gris texte #3D4F52 | titres #1F2D30
   ============================================================================= */

/* =============================================================================
   COMMUN AUX DEUX PAGES
   ============================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }


/* =============================================================================
   PAGE DE CONNEXION (connexion_2026.html) — classes nues, scope <body> de la page
   ============================================================================= */
html, body { height: 100%; }
body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3D4F52;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center; /* "safe" = pas de rognage si le contenu depasse en hauteur */
    padding: 18px 20px;
}

/* Lien "Retour au site" en haut a droite */
.retour-site {
    position: fixed;
    top: 24px;
    right: 32px;
    color: #2C7873;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.retour-site:hover { color: #E8735A; }
.retour-site::before { content: "←"; font-size: 18px; }

/* Logo Vorg */
.logo-wrap { text-align: center; margin-bottom: 14px; }
.logo-wrap img { width: 80px; height: auto; }

/* Titre + accroche */
.hero-titre { text-align: center; margin-bottom: 16px; }
.hero-titre h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1F2D30;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.hero-titre p { font-size: 16px; color: #6B7A7D; }

/* Carte blanche qui contient le formulaire */
.card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(31, 45, 48, 0.08);
    padding: 24px 32px;
}
.card-titre { font-size: 22px; font-weight: 700; color: #2C7873; margin-bottom: 4px; }
.card-baseline { font-size: 14px; color: #6B7A7D; margin-bottom: 16px; }

/* Messages flash de Django */
.messages { list-style: none; margin-bottom: 16px; }
.messages li {
    padding: 10px 14px;
    border-radius: 8px;
    background: #EAF2F1;
    color: #2C7873;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}
.messages li.error { background: #FDECE7; color: #C9553C; }

/* Encadre d'erreur (identifiant / mot de passe incorrect) */
.error-box {
    background: #FDECE7;
    color: #C9553C;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    border-left: 3px solid #E8735A;
}

/* Encadre d'information "mode demo" */
.info-demo {
    background: #FFF9E6;
    color: #8A6D1E;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 3px solid #E8B547;
}

/* Boutons reseaux sociaux : cote a cote, repliables sur mobile */
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    color: #1F2D30;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    min-width: 0; /* evite tout debordement dans la grille */
}
.social-btn:hover {
    border-color: #2C7873;
    background: #F9F4EF;
    transform: translateY(-1px);
}
.social-btn img,
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Variante secondaire : plus compacte, mise moins en avant */
.social-btns--secondary { margin-top: 8px; }
.social-btns--secondary .social-btn {
    padding: 8px 12px;
    font-size: 13px;
    color: #6B7A7D;
    background: #FAFAFA;
}
.social-btns--secondary .social-btn:hover { color: #1F2D30; background: #F9F4EF; }
.social-btns--secondary .social-btn svg { width: 16px; height: 16px; }

/* Separateur "ou se connecter avec" */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    margin: 14px 0;
}
.separator::before,
.separator::after { content: ''; flex: 1; border-bottom: 1px solid #E5E7EB; }
.separator::before { margin-right: 12px; }
.separator::after { margin-left: 12px; }

/* Champs du formulaire */
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1F2D30;
    margin-bottom: 6px;
}
.form-group label .required { color: #E8735A; } /* l'asterisque "champ obligatoire" */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select{
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    color: #1F2D30;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.form-group input:focus {
    outline: none;
    border-color: #2C7873;
    box-shadow: 0 0 0 3px rgba(44, 120, 115, 0.1);
}

/* Œil pour afficher / masquer le mot de passe */
.password-wrap { position: relative; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7A7D;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
}
.password-toggle:hover { color: #2C7873; }

/* Lien "Mot de passe oublie ?" */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #E8735A;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color .2s;
}
.forgot-link:hover { color: #C9553C; text-decoration: underline; }

/* Bouton principal "Se connecter" */
.btn-primary {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: #E8735A;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
}
.btn-primary:hover { background: #C9553C; }
.btn-primary:active { transform: scale(.98); }
.btn-primary::before { content: "→ "; margin-right: 4px; }

/* Lien "creer un compte" */
.signup-link { text-align: center; font-size: 14px; color: #6B7A7D; margin-top: 20px; }
.signup-link a { color: #E8735A; text-decoration: none; font-weight: 600; margin-left: 4px; }
.signup-link a:hover { color: #C9553C; text-decoration: underline; }

/* Petit pied de page */
.mini-footer { text-align: center; margin-top: 16px; font-size: 12px; color: #9CA3AF; }
.mini-footer a { color: #6B7A7D; text-decoration: none; margin: 0 8px; }
.mini-footer a:hover { color: #2C7873; }

/* Etat "deja connecte" */
.already-connected { text-align: center; padding: 20px 0; }
.already-connected p { margin-bottom: 16px; color: #1F2D30; }

/* ------------------------------------------------------------
   RESPONSIVE — adapte mobile d'abord, en 3 paliers (page connexion)
   ------------------------------------------------------------ */

/* Tablette et grand mobile (< 768px) */
@media (max-width: 768px) {
    body { padding: 24px 16px; }
    .retour-site { position: absolute; top: 16px; right: 16px; font-size: 13px; }
    .logo-wrap { margin-top: 24px; margin-bottom: 20px; }
    .logo-wrap img { width: 100px; }
    .hero-titre h1 { font-size: 28px; }
    .hero-titre p { font-size: 15px; }
    .hero-titre { margin-bottom: 24px; }
    .card { padding: 28px 24px; }
}

/* Mobile standard (< 480px) */
@media (max-width: 480px) {
    body { padding: 16px 12px; }
    .retour-site { position: static; align-self: flex-start; margin-bottom: 12px; }
    .logo-wrap { margin-top: 0; margin-bottom: 16px; }
    .logo-wrap img { width: 90px; }
    .hero-titre h1 { font-size: 24px; }
    .hero-titre p { font-size: 14px; }
    .hero-titre { margin-bottom: 20px; }
    .card { padding: 24px 18px; border-radius: 14px; }
    .card-titre { font-size: 20px; }
    .card-baseline { font-size: 13px; }
    .social-btn { padding: 12px 10px; font-size: 13px; min-height: 44px; /* zone tactile confortable */ }
    .form-group input { padding: 12px 14px; font-size: 16px; /* 16px = evite le zoom auto sur iOS */ min-height: 44px; }
    .btn-primary { padding: 14px 16px; min-height: 48px; font-size: 15px; }
    .forgot-link { font-size: 13px; }
    .separator { margin: 16px 0; font-size: 12px; }
}

/* Tres petit mobile (< 360px, vieux Android, iPhone SE 1ere generation) */
@media (max-width: 360px) {
    .social-btn { padding: 10px 8px; gap: 6px; font-size: 12px; }
    .social-btn img { width: 18px; height: 18px; }
    .card { padding: 20px 14px; }
    .hero-titre h1 { font-size: 22px; }
}

/* Mobile en mode paysage et peu haut (evite que le contenu deborde) */
@media (max-height: 600px) and (orientation: landscape) {
    body { justify-content: flex-start; padding-top: 20px; padding-bottom: 20px; }
    .logo-wrap { margin-bottom: 12px; }
    .hero-titre { margin-bottom: 16px; }
    .hero-titre h1 { font-size: 22px; }
    .hero-titre p { display: none; }
    .mini-footer { margin-top: 16px; }
}


/* =============================================================================
   VITRINE PUBLIQUE D'ASSO (vitrine_2026.html) — scope .v-v / .v-v__...
   ============================================================================= */

:root {
    --v-teal: #2C7873;
    --v-teal-dark: #1F5C58;
    --v-coral: #E8735A;
    --v-coral-dark: #C9553C;
    --v-beige: #F2F7F8;
    --v-bleu-pale: #EAF2F1;
    --v-dark: #1F2D30;
    --v-grey: #3D4F52;
    --v-grey-light: #6B7A7D;
    --v-border: #E5E7EB;
    --v-accent: var(--v-coral);
    --v-accent-dark: var(--v-coral-dark);
}

/* Accent dynamique depuis Manif.style : pose en classe sur le <body> par le
   template (body class="vitrine-style-xxx"), car ce sont des regles
   conditionnelles cote serveur — impossibles a mettre dans un CSS statique
   sans cette classe-relais. */
body.vitrine-style-vert   { --v-accent: #2C7873; --v-accent-dark: #1F5C58; }
body.vitrine-style-orange { --v-accent: #E8735A; --v-accent-dark: #C9553C; }
body.vitrine-style-rouge  { --v-accent: #D4302E; --v-accent-dark: #A01F1E; }
body.vitrine-style-violet { --v-accent: #7B2CBF; --v-accent-dark: #5A1E8E; }
body.vitrine-style-rose   { --v-accent: #E85A8E; --v-accent-dark: #B63D6A; }
body.vitrine-style-bleu   { --v-accent: #2563EB; --v-accent-dark: #1E40AF; }
body.vitrine-style-cyan   { --v-accent: #0891B2; --v-accent-dark: #046481; }

/* La vitrine surcharge html/body (le reset commun et la page connexion les
   declarent aussi, mais les deux pages ne coexistent jamais : un seul <body>
   par page). On scope donc ces regles globales au <body> de la vitrine via la
   classe vitrine-body posee par le template. */
body.vitrine-body { overflow-x: hidden; }
body.vitrine-body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--v-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* la vitrine n'utilise pas le layout flex de la page connexion */
    display: block;
    min-height: auto;
    padding: 0;
}
body.vitrine-body img { max-width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------
   MOBILE FIRST - styles de base pour <640px
   Puis enhancements a 641, 900, 1200
   ------------------------------------------------------------ */

.v-v {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.v-v__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--v-border);
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.v-v__header-logo { flex-shrink: 0; }
.v-v__header-logo img { height: 36px; width: auto; }

/* Bouton hamburger (ouvre le drawer). Design propre avec 3 barres, coherent avec
   l'esthetique moderne de la vitrine. */
.v-v__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--v-border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
    font-family: inherit;
}
.v-v__menu-toggle:hover,
.v-v__menu-toggle:focus {
    border-color: var(--v-accent);
    background: var(--v-beige);
}
.v-v__menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--v-dark);
    border-radius: 1px;
    transition: all .3s;
}
.v-v__menu-toggle:hover span { background: var(--v-accent); }

/* ===== DRAWER LATERAL ===== */
.v-v__drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}
/* Overlay sombre */
.v-v__drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 48, 0.55);
    opacity: 0;
    transition: opacity .3s;
}
/* Panneau gauche qui slide */
.v-v__drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    padding: 28px 24px;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.v-v__drawer.open { pointer-events: auto; }
.v-v__drawer.open .v-v__drawer-overlay { opacity: 1; }
.v-v__drawer.open .v-v__drawer-panel { transform: translateX(0); }

.v-v__drawer-close {
    align-self: flex-start;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--v-beige);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--v-grey);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.v-v__drawer-close:hover,
.v-v__drawer-close:focus { background: var(--v-border); }

.v-v__drawer-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: var(--v-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    word-wrap: break-word;
}
.v-v__drawer-sep {
    width: 40px;
    height: 3px;
    background: var(--v-accent);
    border-radius: 2px;
    margin-bottom: 20px;
}

.v-v__drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: auto;
}
.v-v__drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    color: var(--v-grey);
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s;
    min-height: 44px;
}
.v-v__drawer-nav a:hover,
.v-v__drawer-nav a:focus {
    background: var(--v-beige);
    color: var(--v-accent);
    padding-left: 14px;
}
.v-v__drawer-nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--v-grey-light);
    transition: color .2s;
}
.v-v__drawer-nav a:hover svg,
.v-v__drawer-nav a:focus svg { color: var(--v-accent); }

.v-v__drawer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--v-border);
    flex-wrap: wrap;
}
.v-v__drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--v-beige);
    color: var(--v-grey);
    transition: all .2s;
    text-decoration: none;
}
.v-v__drawer-social a:hover,
.v-v__drawer-social a:focus {
    color: #fff;
    background: var(--v-accent);
    transform: translateY(-2px);
}
.v-v__drawer-social svg { width: 16px; height: 16px; }
.v-v__header-name {
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 600;
    color: var(--v-dark);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.v-v__header-site {
    font-size: 12px;
    color: var(--v-grey-light);
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid var(--v-border);
    border-radius: 6px;
    transition: all .2s;
    flex-shrink: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
}
.v-v__header-site:hover,
.v-v__header-site:focus { color: var(--v-accent); border-color: var(--v-accent); }

/* Lien "Formulaire papier" (sous le CTA, discret, avec icone PDF) */
.v-v__paper-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v-grey-light);
    font-size: 13px;
    text-decoration: none;
    padding: 8px 4px;
    transition: color .2s;
    min-height: 40px;
    font-family: inherit;
}
.v-v__paper-link:hover,
.v-v__paper-link:focus {
    color: var(--v-accent);
    text-decoration: underline;
}
.v-v__paper-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== HERO ===== */
.v-v__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.v-v__hero-visuel {
    border-radius: 14px;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}
/* Variante logo asso (fallback quand pas d'affiche manif) : fond blanc + padding */
.v-v__hero-visuel--logo {
    background: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}
.v-v__hero-visuel--logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Hero sans visuel du tout : passe en 1 colonne centree */
.v-v__hero--noviz { grid-template-columns: 1fr; text-align: center; }
.v-v__hero--noviz .v-v__meta { justify-content: center; }
.v-v__hero--noviz .v-v__cta-wrap { align-items: center; }

.v-v__hero-title {
    font-size: clamp(26px, 6vw, 44px);
    font-weight: 700;
    color: var(--v-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.v-v__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 20px;
    font-size: clamp(13px, 2.5vw, 15px);
    color: var(--v-grey);
}
.v-v__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.v-v__meta-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--v-accent);
}
.v-v__meta-item span {
    min-width: 0;
    word-wrap: break-word;
}

.v-v__desc {
    font-size: clamp(14px, 2.8vw, 16px);
    color: var(--v-grey);
    margin-bottom: 28px;
}
.v-v__desc p { margin-bottom: 10px; }
.v-v__desc p:last-child { margin-bottom: 0; }

/* Wrapper desc + bouton "Voir plus" : laisse le wrap gerer la marge bottom
   pour que le bouton reste colle au texte clampe. */
.v-v__desc-wrap { margin-bottom: 28px; }
.v-v__desc-wrap .v-v__desc { margin-bottom: 0; }

/* Etat clamped : limite a 8 lignes pour garder le CTA visible above-the-fold.
   -webkit-line-clamp marche dans tous les navigateurs modernes (Safari/Chrome/FF/Edge).
   Le max-height fait fallback si jamais line-clamp n'est pas supporte. */
.v-v__desc--clampable {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.6em * 8);
}
.v-v__desc--expanded {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

/* Bouton "Voir plus" : discret, teal, hidden par defaut (JS l'affiche si overflow). */
.v-v__desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--v-teal);
    font-size: clamp(13px, 2.6vw, 14px);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .2s;
    min-height: 32px;
}
.v-v__desc-toggle:hover,
.v-v__desc-toggle:focus { color: var(--v-teal-dark); }
.v-v__desc-toggle[hidden] { display: none; }
.v-v__desc-toggle-arrow {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    transition: transform .2s;
}
.v-v__desc-toggle[aria-expanded="true"] .v-v__desc-toggle-arrow {
    transform: rotate(180deg);
}

/* ===== CTA ===== */
.v-v__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.v-v__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--v-accent);
    color: #fff;
    font-size: clamp(14px, 2.8vw, 15px);
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid var(--v-accent);
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-height: 44px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.v-v__cta:hover,
.v-v__cta:focus {
    background: var(--v-accent-dark);
    border-color: var(--v-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.v-v__cta-arrow { font-size: 18px; line-height: 1; }

/* Lien CTA secondaire sous le bouton principal : teal souligne, sans border.
   Sert au "Pas encore de compte ? Creer un compte" — la connexion est devenue
   le CTA primaire car la majorite des benevoles ont deja un compte. */
.v-v__cta-link {
    display: inline-block;
    color: var(--v-teal);
    font-size: clamp(14px, 2.8vw, 15px);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 10px 4px;
    border: none;
    cursor: pointer;
    background: none;
    font-family: inherit;
    text-align: center;
    transition: all .2s;
    min-height: 44px;
}
.v-v__cta-link:hover,
.v-v__cta-link:focus {
    color: var(--v-teal-dark);
    text-decoration-thickness: 2px;
}

/* OAuth hero : "ou inscrivez-vous avec" + boutons Google/Facebook sous CTA principal */
.v-v__oauth-hero {
    margin-top: 6px;
}
.v-v__oauth-hero-label {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--v-grey-light);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.v-v__oauth-hero-label::before,
.v-v__oauth-hero-label::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--v-border);
}
.v-v__oauth-hero-label::before { margin-right: 10px; }
.v-v__oauth-hero-label::after { margin-left: 10px; }

.v-v__closed {
    padding: 14px 18px;
    background: #FDECE7;
    color: var(--v-coral-dark);
    border-left: 3px solid var(--v-coral);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* ===== SPONSORS ===== */
.v-v__sponsors {
    padding: 36px 0;
    border-top: 1px solid var(--v-border);
}
.v-v__sponsors-title {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--v-grey-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
/* Flex-wrap + justify-content: center -> derniere ligne auto-centree.
   Variables --cols / --gap pilotent le layout par breakpoint (voir media queries). */
.v-v__sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    --cols: 2;
    --gap: 12px;
    gap: var(--gap);
}
.v-v__sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--v-border);
    border-radius: 12px;
    width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    height: 100px;
    transition: all .2s;
    text-decoration: none;
    color: var(--v-grey);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    overflow: hidden;
    position: relative;
    min-width: 0;
}
.v-v__sponsor:hover,
.v-v__sponsor:focus {
    transform: translateY(-2px);
    border-color: var(--v-accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
/* object-fit: contain = logo entier, jamais coupe. Le padding de la card fait respirer. */
.v-v__sponsor img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(30%);
    transition: filter .2s;
}
.v-v__sponsor:hover img,
.v-v__sponsor:focus img { filter: grayscale(0%); }
/* Fallback texte quand l'image 404 (classe ajoutee par onerror JS) */
.v-v__sponsor--no-img img { display: none; }
.v-v__sponsor--no-img::before {
    content: attr(data-name);
    color: var(--v-grey);
}

/* ===== SOCIAL ===== */
.v-v__social {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--v-border);
}
.v-v__social-label {
    font-size: 12px;
    color: var(--v-grey-light);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.v-v__social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.v-v__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--v-grey);
    transition: all .2s;
    border: 1px solid var(--v-border);
    text-decoration: none;
    flex-shrink: 0;
}
.v-v__social-icon:hover,
.v-v__social-icon:focus {
    color: var(--v-accent);
    border-color: var(--v-accent);
    transform: translateY(-2px);
}
.v-v__social-icon svg { width: 18px; height: 18px; }

/* ===== FOOTER ===== */
.v-v__footer {
    text-align: center;
    padding: 28px 0 36px;
    border-top: 1px solid var(--v-border);
    font-size: 12px;
    color: var(--v-grey-light);
}
.v-v__footer-info { margin-top: 8px; word-wrap: break-word; }
.v-v__footer-info a {
    color: var(--v-grey-light);
    text-decoration: none;
    margin: 0 6px;
    display: inline-block;
    padding: 2px 0;
}
.v-v__footer-info a:hover,
.v-v__footer-info a:focus { color: var(--v-accent); }

/* ===== MODAL CONNEXION ===== */
.v-v__modal {
    position: fixed;
    inset: 0;
    background: rgba(31, 45, 48, 0.65);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.v-v__modal.open { display: flex; }
.v-v__modal-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin-top: 8vh;
    margin-bottom: 24px;
}
.v-v__modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 40px; height: 40px;
    border: none;
    background: var(--v-beige);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--v-grey);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v-v__modal-close:hover,
.v-v__modal-close:focus { background: var(--v-border); }
.v-v__modal-title {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    color: var(--v-teal);
    margin-bottom: 4px;
    padding-right: 40px;
}
.v-v__modal-sub {
    font-size: 14px;
    color: var(--v-grey-light);
    margin-bottom: 20px;
}

.v-v__form-group { margin-bottom: 14px; }
.v-v__form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--v-dark);
    margin-bottom: 6px;
}
.v-v__form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--v-border);
    border-radius: 10px;
    font-size: 16px; /* 16px evite zoom iOS au focus */
    font-family: inherit;
    color: var(--v-dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    min-height: 44px;
}
.v-v__form-group input:focus {
    outline: none;
    border-color: var(--v-teal);
    box-shadow: 0 0 0 3px rgba(44,120,115,0.1);
}
.v-v__password-wrap { position: relative; }
.v-v__password-wrap input { padding-right: 44px; }
.v-v__eye {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--v-grey-light);
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v-v__eye:hover,
.v-v__eye:focus { color: var(--v-teal); }
.v-v__forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--v-coral);
    text-decoration: none;
    margin-bottom: 16px;
    padding: 4px 0;
}
.v-v__forgot:hover,
.v-v__forgot:focus { text-decoration: underline; color: var(--v-coral-dark); }
.v-v__form-submit {
    width: 100%;
    padding: 13px 16px;
    background: var(--v-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    min-height: 48px;
}
.v-v__form-submit:hover,
.v-v__form-submit:focus { background: var(--v-teal-dark); }
.v-v__form-error {
    background: #FDECE7;
    color: var(--v-coral-dark);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    border-left: 4px solid var(--v-coral);
    box-shadow: 0 2px 8px rgba(232, 115, 90, 0.12);
}
.v-v__form-error-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; margin-bottom: 6px;
}
.v-v__form-error-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.v-v__form-error-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    background: var(--v-coral); color: #fff;
    border-radius: 18px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.v-v__form-error-cta:hover { background: var(--v-coral-dark); color: #fff; }
.v-v__form-error-cta svg { width: 12px; height: 12px; }
.v-v__messages { list-style: none; margin-bottom: 14px; }
.v-v__messages li {
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--v-bleu-pale);
    color: var(--v-teal);
    font-size: 14px;
    margin-bottom: 8px;
}
.v-v__messages li.error {
    background: #FDECE7;
    color: var(--v-coral-dark);
}

/* Separateur "ou se connecter avec" */
.v-v__separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--v-grey-light);
    font-size: 12px;
    margin: 20px 0 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.v-v__separator::before,
.v-v__separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--v-border);
}
.v-v__separator::before { margin-right: 12px; }
.v-v__separator::after { margin-left: 12px; }

/* Boutons OAuth Google / Facebook */
.v-v__oauth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.v-v__oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid var(--v-border);
    border-radius: 10px;
    background: #fff;
    color: var(--v-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    min-height: 44px;
    min-width: 0;
}
.v-v__oauth-btn:hover,
.v-v__oauth-btn:focus {
    border-color: var(--v-teal);
    background: var(--v-bleu-pale);
    transform: translateY(-1px);
}
.v-v__oauth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.v-v__oauth-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   BREAKPOINT : >= 500px (petit mobile landscape, grand mobile)
   ------------------------------------------------------------ */
@media (min-width: 500px) {
    .v-v__header-name { font-size: 15px; }
    .v-v__sponsors-grid { --cols: 3; --gap: 14px; }
    .v-v__sponsor { height: 110px; }
}

/* ------------------------------------------------------------
   BREAKPOINT : >= 641px (tablette portrait)
   ------------------------------------------------------------ */
@media (min-width: 641px) {
    .v-v { padding: 0 24px; }
    .v-v__header {
        padding: 18px 0;
        margin-bottom: 36px;
        gap: 16px;
        flex-wrap: nowrap;
    }
    .v-v__header-logo img { height: 44px; }
    .v-v__header-site {
        margin-left: auto;
        font-size: 13px;
        padding: 7px 12px;
    }
    .v-v__hero {
        gap: 28px;
        margin-bottom: 48px;
    }
    .v-v__meta { gap: 12px 22px; }
    .v-v__sponsors { padding: 44px 0; }
    .v-v__sponsors-title { margin-bottom: 28px; }
    .v-v__sponsors-grid { --cols: 4; --gap: 16px; }
    .v-v__sponsor { height: 120px; }
}

/* ------------------------------------------------------------
   BREAKPOINT : >= 900px (tablette paysage + desktop)
   Hero passe en 2 colonnes
   ------------------------------------------------------------ */
@media (min-width: 900px) {
    .v-v__header { margin-bottom: 44px; }
    .v-v__header-logo img { height: 48px; }
    .v-v__hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 40px;
        align-items: start;
        margin-bottom: 56px;
    }
    /* Image sticky : reste visible pendant le scroll du contenu droit */
    .v-v__hero-visuel {
        max-width: none;
        border-radius: 16px;
        position: sticky;
        top: 24px;
    }
    .v-v__hero-title { margin-bottom: 20px; }
    .v-v__meta { margin-bottom: 24px; }
    .v-v__desc { margin-bottom: 32px; }
    .v-v__sponsors-title { margin-bottom: 32px; }
    .v-v__sponsors-grid { --cols: 5; --gap: 18px; }
    .v-v__social { padding: 40px 0; }
    .v-v__modal-card { padding: 36px 32px; }
    .v-v__modal-title { padding-right: 44px; }
}

/* ------------------------------------------------------------
   BREAKPOINT : >= 1200px (desktop large)
   ------------------------------------------------------------ */
@media (min-width: 1200px) {
    .v-v__hero { gap: 48px; }
    .v-v__cta { padding: 16px 32px; }
    .v-v__sponsors-grid { --cols: 6; --gap: 18px; }
}

/* Mode reduction d'animations (prefere-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
