/* v2026-08-02 */
/* ============================================================
   Star-Citizen-Referral-Code.fr — feuille de styles partagée
   Identité : cyan #00d4ff sur fond spatial sombre
   ============================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* background-attachment: fixed force le navigateur à recomposer le fond à chaque
   image de scroll. Réservé aux écrans larges, où le coût est absorbé ; sur mobile
   il dégrade la fluidité du défilement (et iOS l'ignore de toute façon). */
@media (min-width: 1025px) {
    body { background-attachment: fixed; }
}

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

/* Les mots composés allemands (Systemanforderungen, Starterschiff…) sont plus larges
   qu'un petit écran en grande taille de titre. « anywhere » est nécessaire :
   « break-word » ne coupe pas dans tous les cas de figure, et hyphens: auto dépend
   d'un dictionnaire de césure que le navigateur n'a pas toujours pour la langue. */
h1, h2, h3, h4,
.hero h1, .page-header h1, .section-title, .benefit-title,
.code-value, .breadcrumb, td, th {
    overflow-wrap: anywhere;
    hyphens: auto;
}

a { color: #00d4ff; }

/* ---------- Header + navigation ---------- */
.header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    border-bottom: 2px solid #00d4ff;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff50;
    text-decoration: none;
}

.trust-badge {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #cccccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switch a:hover {
    color: #00d4ff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.lang-switch a[aria-current="true"] {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #000;
}

.main-nav {
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    list-style: none;
    padding: 0.25rem 0;
    justify-content: center;
}

.main-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    /* Zone tactile d'au moins 44 px : seuil recommandé pour le tactile,
       et critère contrôlé par Lighthouse (« tap targets »). */
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.9rem;
    color: #999;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: ' ›';
    color: #666;
    margin-left: 0.5rem;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
    padding: 3.5rem 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero h2,
.hero .subtitle {
    font-size: 1.4rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Titre de page pour les pages internes (moins spectaculaire que le hero) */
.page-header {
    padding: 2rem 0 1rem;
}

.page-header h1 {
    font-size: 2.6rem;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.page-header .lead {
    font-size: 1.15rem;
    color: #b8c4d0;
    max-width: 75ch;
}

.meta-line {
    font-size: 0.88rem;
    color: #8a97a6;
    margin-top: 0.75rem;
}

/* ---------- Bloc code de parrainage ---------- */
.referral-code-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00d4ff;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.referral-code-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, #00d4ff, transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.referral-code-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .referral-code-box::before { animation: none; }
    .fade-in { animation: none; }
}

/* L'anneau lumineux tourne en boucle infinie : c'est un repaint permanent.
   Sur mobile, cela consomme de la batterie et pèse sur la réactivité (INP)
   sans apport visuel décisif sur un petit écran. Réservé au desktop. */
@media (max-width: 1024px) {
    .referral-code-box::before { animation: none; opacity: 0.55; }
}

.code-label {
    font-size: 1.1rem;
    color: #00d4ff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.code-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px #00d4ff50;
    word-break: break-word;
}

.copy-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0.5rem;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.cta-primary {
    background: linear-gradient(45deg, #ff6b00, #ff9500);
    color: #fff;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem 0.5rem;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.5);
}

/* ---------- Grilles de cartes ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.benefit-icon { font-size: 3rem; margin-bottom: 1rem; }

.benefit-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 1rem;
}

/* ---------- Sections de contenu ---------- */
.content-section {
    margin: 3.5rem 0;
    padding: 1rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 75ch;
}

.content-text h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.content-text h3 {
    color: #00d4ff;
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
}

.content-text h4 {
    color: #7fe3ff;
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.content-text p { margin-bottom: 1rem; }

.content-text ul,
.content-text ol {
    margin: 1rem 0 1.25rem;
    padding-left: 1.75rem;
}

.content-text li { margin-bottom: 0.5rem; }

.highlight {
    background: linear-gradient(45deg, #00d4ff20, transparent);
    padding: 1rem 1.25rem;
    border-left: 4px solid #00d4ff;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.warning {
    background: linear-gradient(45deg, #ff6b0020, transparent);
    border-left: 4px solid #ff6b00;
}

/* ---------- Figures / infographies ---------- */
.figure {
    margin: 2.25rem 0;
}

.figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.22);
}

.figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #8a97a6;
    text-align: center;
    font-style: italic;
}

/* Sur petit écran, réduire une infographie de 900 px de large à la largeur du
   viewport rendrait son texte illisible (environ 5 px). On préfère conserver une
   échelle lisible et laisser l'utilisateur faire défiler la figure horizontalement,
   le défilement restant confiné au conteneur. */
@media (max-width: 760px) {
    .figure {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .figure img {
        width: 660px;
        max-width: none;
    }

    /* Pas de position: sticky ici — elle sortirait la légende du flux de défilement
       du conteneur et ferait déborder la page. La légende défile avec l'image. */
    .figure figcaption {
        width: 660px;
        max-width: 660px;
    }
}

/* ---------- Tableaux ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background: rgba(255, 255, 255, 0.03);
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

th {
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
    font-weight: bold;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0, 212, 255, 0.05); }

/* ---------- FAQ ---------- */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.faq-question {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #00d4ff;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
    font-family: inherit;
}

.faq-question:hover { background: rgba(0, 212, 255, 0.18); }

.faq-answer {
    padding: 1.25rem 1.5rem;
    display: none;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Confiance / stats ---------- */
.trust-section {
    background: rgba(0, 212, 255, 0.05);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.trust-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #00d4ff;
    display: block;
}

.trust-label { font-size: 0.95rem; color: #cccccc; }

/* ---------- Maillage interne ---------- */
.related-links {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 15px;
}

.related-links h2 {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
}

.related-grid a {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.related-grid a:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.related-grid strong {
    display: block;
    color: #00d4ff;
    margin-bottom: 0.25rem;
}

.related-grid span {
    font-size: 0.9rem;
    color: #aab6c2;
}

/* ---------- Footer ---------- */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 2px solid #00d4ff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 2rem;
}

.footer-section h2,
.footer-section h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.footer-section a:hover { color: #00d4ff; }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p:last-child {
    font-size: 0.9rem;
    color: #999;
}

/* Notice de conformité exigée par la politique fan site de CIG.
   Elle doit rester visible et ne jamais être affichée plus petite
   que les autres mentions du pied de page. */
.cig-notice {
    max-width: 82ch;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1.25rem;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    color: #cfd8e3;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Mentions légales ---------- */
.legal {
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.legal h2 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.legal-grid h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal .disclaimer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.legal .disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ---------- Animations ---------- */
.fade-in { animation: fadeInUp 0.8s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Utilitaires ---------- */
.section-centered { text-align: center; }

.content-text.centered {
    margin: 2rem auto 0;
    text-align: center;
}

.lead-cta {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.code-box-compact { max-width: 520px; }

.note-small {
    margin-top: 1rem;
    color: #cccccc;
    font-size: 0.9rem;
}

/* ---------- Accessibilité ---------- */
:focus-visible {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: #00d4ff;
    color: #000;
    padding: 0.75rem 1.25rem;
    z-index: 200;
    font-weight: bold;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ---------- Performance mobile ---------- */
/* backdrop-filter crée une couche de composition par élément. Sur les cartes
   répétées, le coût est réel sur mobile pour un flou quasi invisible : on le
   retire sous 1025 px en conservant le fond translucide. */
@media (max-width: 1024px) {
    .header,
    .benefit-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header { background: rgba(0, 0, 0, 0.96); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.7rem; }
    .code-value { font-size: 1.5rem; letter-spacing: 0.12em; }
    .header-content { flex-direction: column; text-align: center; }
    .cta-primary { padding: 1rem 1.75rem; font-size: 1.05rem; }
    .referral-code-box { padding: 1.5rem 1rem; }
    .trust-number { font-size: 2.2rem; }
}
