/*
 * Feuille de style commune des pages publiques de Wyi! Mobile (WyiMob-65) :
 * assistance.html, suppression-compte.html, politique-confidentialite.html.
 *
 * Servies en fichiers statiques sur tout hôte *.wyi.work (adresse de référence des stores :
 * https://app.wyi.work/). Aucune ressource externe : la politique de sécurité (CSP) du front
 * refuse les feuilles de style hors du site, d'où la pile de polices système.
 */
:root {
    --primary: #05c2ff;
    --secondary: #A100ED;
    --dark: #2A253E;
    --background: #F5F6F8;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --border: #E5E7EB;
    --glass: rgba(255, 255, 255, 0.92);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Bandeau dégradé aux couleurs de l'app, derrière la carte. */
.header-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: var(--gradient);
    z-index: -1;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 32px 0 16px 0;
    display: flex;
    align-items: center;
}

h2::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 4px;
    height: 20px;
    background: var(--gradient);
    margin-right: 12px;
    border-radius: 2px;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 8px 0;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

ul, ol {
    margin: 0 0 16px 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
}

a {
    color: #7a1fd6;
    font-weight: 600;
}

.intro {
    text-align: center;
}

.mise-a-jour {
    text-align: center;
    font-size: 14px;
}

/* Encadré de contact / d'action mis en avant. */
.encadre {
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0 24px 0;
}

.encadre p:last-child,
.encadre ol:last-child,
.encadre ul:last-child {
    margin-bottom: 0;
}

/* Tableau des sous-traitants (politique de confidentialité). */
.tableau {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.tableau th,
.tableau td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.tableau th {
    color: var(--dark);
    font-weight: 700;
}

.footer {
    text-align: center;
    margin-top: 48px;
    padding-bottom: 48px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer nav {
    margin-bottom: 8px;
}

.footer nav a {
    margin: 0 8px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .card {
        padding: 32px 20px;
    }
    h1 {
        font-size: 26px;
    }
    .container {
        margin: 40px auto;
        padding: 0 16px;
    }
    /* Tableau lisible sur téléphone : une ligne par sous-traitant, sans défilement horizontal. */
    .tableau thead {
        display: none;
    }
    .tableau tr,
    .tableau td {
        display: block;
    }
    .tableau tr {
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }
    .tableau td {
        border: none;
        padding: 2px 0;
    }
}
