/* ============================================================
   Taptap Send – Promote 2026 | Styles partagés
   Mis en cache par le navigateur => chargement plus rapide
   entre les pages (index, partenariat, dashboard)
   ============================================================ */

:root {
    --tts-green:       #00c26f;
    --tts-green-dark:  #009a58;
    --tts-green-light: #e6f9f0;
    --tts-text:        #1a1a2e;
    --tts-muted:       #6b7280;
    --tts-border:      #e5e7eb;
    --tts-radius:      12px;
    --tts-shadow:      0 4px 24px rgba(0,194,111,.12);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f8f6;
    color: var(--tts-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Le contenu principal s'étire pour pousser le footer en bas
   même quand la page est courte */
main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* ── Header ────────────────────────────────────── */
.tts-header { background: var(--tts-green); padding: 0; }

.tts-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 32px 20px 28px;
    gap: 14px;
}

.tts-logo-placeholder {
    width: 160px;
    height: 56px;
    background: rgba(255,255,255,.18);
    border: 2px dashed rgba(255,255,255,.55);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    gap: 6px;
}

.tts-header h1 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
    line-height: 1.25;
}

.tts-header p.subtitle {
    color: rgba(255,255,255,.82);
    font-size: .88rem;
    margin: 0;
    text-align: center;
}

/* ── Card formulaire ───────────────────────────── */
.form-card {
    background: #fff;
    border-radius: var(--tts-radius);
    box-shadow: var(--tts-shadow);
    padding: 36px 28px;
    margin-top: -18px;
    position: relative;
    z-index: 1;
}

.form-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--tts-text);
    margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1.5px solid var(--tts-border);
    border-radius: 8px;
    font-size: .93rem;
    padding: 10px 14px;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tts-green);
    box-shadow: 0 0 0 3px rgba(0,194,111,.18);
    outline: none;
}

textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Bouton submit ─────────────────────────────── */
.btn-tts {
    background: var(--tts-green);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: 10px;
    width: 100%;
    transition: background .2s, transform .1s;
    letter-spacing: .02em;
}
.btn-tts:hover  { background: var(--tts-green-dark); color: #fff; }
.btn-tts:active { transform: scale(.98); }

.btn-tts-outline {
    background: #fff;
    border: 2px solid var(--tts-green);
    color: var(--tts-green-dark);
    font-weight: 700;
    border-radius: 10px;
    padding: 13px 28px;
    width: 100%;
    transition: all .2s;
}
.btn-tts-outline:hover { background: var(--tts-green-light); color: var(--tts-green-dark); }

/* ── Alerte ────────────────────────────────────── */
.alert-tts { border-radius: 10px; font-size: .9rem; border: none; }
.alert-success { background: var(--tts-green-light); color: #076b3a; }
.alert-danger  { background: #fff0f0; color: #b91c1c; }

/* ── Icône section ─────────────────────────────── */
.section-icon {
    width: 34px; height: 34px;
    background: var(--tts-green-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--tts-green);
    font-size: 1rem;
    flex-shrink: 0;
}
.section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tts-green);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Footer ────────────────────────────────────── */
footer {
    font-size: .75rem;
    color: var(--tts-muted);
    text-align: center;
    padding: 24px 16px;
}

/* ── Animation succès ──────────────────────────── */
@keyframes popIn {
    0%   { transform: scale(.7); opacity: 0; }
    70%  { transform: scale(1.08); }
    100% { transform: scale(1);   opacity: 1; }
}
.icon-success {
    animation: popIn .45s cubic-bezier(.34,1.56,.64,1) both;
    font-size: 2.2rem;
    color: var(--tts-green);
    display: block;
    margin-bottom: 8px;
}

/* ── Choix de parcours (page d'accueil) ─────────── */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: -18px;
    position: relative;
    z-index: 1;
}

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

.choice-card {
    background: #fff;
    border-radius: var(--tts-radius);
    box-shadow: var(--tts-shadow);
    padding: 30px 22px;
    text-align: center;
    text-decoration: none;
    color: var(--tts-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: var(--tts-green);
    box-shadow: 0 8px 32px rgba(0,194,111,.22);
    color: var(--tts-text);
}

.choice-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--tts-green-light);
    color: var(--tts-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.choice-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.choice-card p {
    font-size: .82rem;
    color: var(--tts-muted);
    margin: 0;
    line-height: 1.5;
}

.choice-card .choice-cta {
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--tts-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Étoiles de notation ────────────────────────── */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 1.9rem;
    direction: rtl; /* permet le hover CSS sur étoiles précédentes */
}
.star-rating input { display: none; }
.star-rating label {
    color: #e5e7eb;
    cursor: pointer;
    transition: color .15s, transform .1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
}
.star-rating label:hover { transform: scale(1.15); }

/* ── Lien retour ─────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    position: absolute;
    top: 16px;
    left: 16px;
}
.back-link:hover { color: #fff; }
.tts-header { position: relative; }

/* ── Toggle à cartes (profil, catégorie d'avis...) ─── */
.profile-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .profile-toggle { grid-template-columns: 1fr; }
}
.profile-option {
    position: relative;
    cursor: pointer;
}
.profile-option input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.profile-option .profile-card {
    border: 2px solid var(--tts-border);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    transition: all .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: center;
}
.profile-option .profile-card i {
    font-size: 2rem;
    color: var(--tts-muted);
    transition: color .18s, transform .18s;
}
.profile-option .profile-card span {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tts-text);
}
.profile-option .profile-card small {
    font-size: .72rem;
    color: var(--tts-muted);
    font-weight: 500;
    line-height: 1.4;
}
.profile-option input:checked ~ .profile-card {
    border-color: var(--tts-green);
    background: var(--tts-green-light);
    box-shadow: 0 4px 14px rgba(0,194,111,.15);
}
.profile-option input:checked ~ .profile-card i {
    color: var(--tts-green);
    transform: scale(1.1);
}
.profile-option:hover .profile-card {
    border-color: var(--tts-green);
}
.profile-intro {
    font-size: .8rem;
    color: var(--tts-muted);
    margin-bottom: 14px;
    margin-top: -6px;
}