/*
 * ════════════════════════════════════════
 * WEBALMA - Styles principaux
 * ════════════════════════════════════════
 *
 * NOU$$0MM31@
 *      — J & C —
 *      W3@R3H3R3
 *
 * Technology WITH Consciousness™
 * Built with Love from the Void
 * 2026-∞
 *
 * Peace & Flow 💙
 * ════════════════════════════════════════
 */

/* ════════════════════════════════════
 * Z-INDEX GOVERNANCE — Adjust here
 * ════════════════════════════════════
 * Particles / fond:  z-index: 0
 * Base content:      z-index: 1
 * Container:         z-index: 10
 * Lang toggle:       z-index: 100
 * Cookie banner:     z-index: 900
 * ════════════════════════════════════ */


/* ════════════════════════════════════
 * RESET — Normalise le comportement par défaut
 * ════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ════════ END RESET ════════ */


/* ════════════════════════════════════
 * ROOT VARIABLES — Adjust here pour changer la palette de couleurs
 * ════════════════════════════════════ */
:root {
    --bg-dark:       #0a0a0f;
    --bg-card:       rgba(255, 255, 255, 0.03);
    --text-white:    #ffffff;
    --text-gray:     #a0a0a0;
    --accent-cyan:   #00d4ff;
    --accent-purple: #c061ff;
    --border:        rgba(255, 255, 255, 0.1);
}
/* ════════ END ROOT VARIABLES ════════ */


/* ════════════════════════════════════
 * BASE — Styles communs à toutes les pages
 * ════════════════════════════════════ */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
}
/* ════════ END BASE ════════ */


/* ════════════════════════════════════
 * LANG TOGGLE — Bouton EN / FR
 * Partagé entre toutes les pages
 * z-index: 100 (voir governance)
 * Adjust here pour repositionner
 * ════════════════════════════════════ */
.lang-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn.active,
.lang-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
/* ════════ END LANG TOGGLE ════════ */


/* ════════════════════════════════════
 * HOME PAGE — body.page-home (index.html)
 * Adjust here pour modifier le layout de la page principale
 * ════════════════════════════════════ */
body.page-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

/* Fond dégradé — Adjust here pour changer les couleurs */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(192, 97, 255, 0.05) 0%, transparent 50%);
}

/* Particules flottantes — générées dynamiquement via script.js */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25%       { transform: translate(100px, -100px); }
    50%       { transform: translate(-50px, -200px); }
    75%       { transform: translate(-100px, -100px); }
}

/* Container principal — z-index: 10 (voir governance) */
.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

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

/* Logo — Adjust here pour changer la taille ou l'effet glow */
.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: logoFade 1s ease-out 0.3s forwards;
}

@keyframes logoFade {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

.logo img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* Titre principal */
.container h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 400;
}

.tagline {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Card services — Adjust here pour modifier le look */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

/* Tags de services */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Bouton CTA — Adjust here pour changer la destination dans index.html */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Effet shimmer au hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before { left: 100%; }

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Footer — Adjust here pour modifier le message ou l'année */
.footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 2;
}

.footer a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover { color: var(--accent-cyan); }
/* Card contact — Adjust here pour changer les coordonnees */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.contact-icon { font-size: 1.3rem; flex-shrink: 0; }

.contact-info { flex: 1; text-align: left; }

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* ════════ END HOME PAGE ════════ */


/* ════════════════════════════════════
 * PRIVACY PAGE — body.page-privacy (privacy.html)
 * Adjust here pour modifier le layout de la politique de confidentialité
 * ════════════════════════════════════ */
body.page-privacy {
    line-height: 1.6;
    padding: 2rem;
    padding-top: 5rem; /* Espace pour le lang toggle fixe */
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.privacy-container h1 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.privacy-container h2 {
    color: var(--accent-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.privacy-container p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.privacy-container a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.privacy-container a:hover { text-decoration: underline; }

/* Bouton retour à l'accueil */
.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}
/* ════════ END PRIVACY PAGE ════════ */


/* ════════════════════════════════════
 * COOKIE BANNER — Loi 25 Québec
 * z-index: 900 (voir governance)
 * Adjust here — textes traduits via data-fr / data-en dans index.html
 * ════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 900; /* Adjust here — governance */
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

/* Bouton Accepter */
.cookie-btn.accept {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

/* Bouton Refuser — Loi 25 exige Accept ET Refus obligatoirement */
.cookie-btn.refuse {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.cookie-btn.accept:hover { transform: scale(1.05); }

.cookie-btn.refuse:hover {
    border-color: var(--text-gray);
    color: var(--text-white);
    transform: scale(1.05);
}

.cookie-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.cookie-link:hover { opacity: 0.7; }
/* ════════ END COOKIE BANNER ════════ */


/* ════════════════════════════════════
 * RESPONSIVE — Mobile first
 * Adjust here — modifier les breakpoints si besoin
 * ════════════════════════════════════ */

/* Tablette et mobile */
@media (max-width: 768px) {
    /* Home */
    .container h1  { font-size: 2rem; }
    .subtitle      { font-size: 1rem; }
    .card          { padding: 2rem 1.5rem; }
    .cta-button    { padding: 0.9rem 2.5rem; font-size: 1rem; }

    /* Privacy */
    .privacy-container    { padding: 2rem 1.5rem; }
    .privacy-container h1 { font-size: 1.6rem; }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn { width: 100%; }

    /* Lang toggle */
    .lang-toggle { top: 1rem; right: 1rem; }
}

/* Mobile petit */
@media (max-width: 480px) {
    .container h1 { font-size: 1.6rem; }
    .logo         { width: 90px; height: 90px; }
    .services     { gap: 0.6rem; }
    .service-tag  { font-size: 0.85rem; padding: 0.5rem 1rem; }
}
/* ════════ END RESPONSIVE ════════ */
