/* --- Variables de Design --- */
:root {
    --color-bg: #030712;
    --color-bg-secondary: #111827;
    /* Fond des cartes */
    --color-border: #374151;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-text-dark: #6b7281;
    --color-blue: #5b55f9;
    --color-blue-hover: #4a45d2;
    --font-sans: 'Inter', sans-serif;
    --container-width: 1152px;
    /* Correspond à max-w-7xl */
}

/* --- Réglages de Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    /* Fond sombre texturé, comme dans la version Tailwind */
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 35px 35px;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* --- Typographie --- */
h1,
h2,
h3 {
    color: #fff;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

/* 4xl à 6xl */
h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

/* 3xl à 4xl */
h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* xl */

p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-blue-hover);
}

/* --- Classes de Layout (Conteneur & Grilles) --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    /* Équivalent de gap-16 */
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* Équivalent de gap-8 */

}

/* Responsive pour les grilles */
@media (min-width: 768px) {

    /* md: */
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    /* lg: */
    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Composants --- */

/* Header / Navigation */
header {
    background: rgba(17, 24, 39, 0.8);
    /* bg-gray-900/80 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    /* h-20 */
}

header .logo {
    height: 3.5rem;
    /* h-10 */
    width: auto;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    /* Caché sur mobile */
}

header nav li {
    display: inline-block;
    margin-left: 2rem;
    /* space-x-8 */
}

header nav a {
    font-weight: 500;
    color: var(--color-text-muted);
}

header nav a.active {
    color: #fff;
}

header nav a:hover {
    color: var(--color-blue);
}

@media (min-width: 768px) {

    /* md: */
    header nav ul {
        display: flex;
        /* Affiché sur desktop */
    }
}

/* Bouton Principal */
.btn {
    display: inline-block;
    background: var(--color-blue);
    color: #fff;
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    padding: 0.75rem 2rem;
    /* px-8 py-3 */
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    background: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btnLogin {
    background: var(--color-blue);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btnLogin:hover {
    background: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Carte de Service */
.service-card {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    /* hover:scale-105 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card .icon-box {
    width: 3rem;
    /* h-12 w-12 */
    height: 3rem;
    background: var(--color-blue);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card .icon-box svg {
    width: 1.5rem;
    /* h-6 w-6 */
    height: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Sections de la Page --- */

/* Section Héros */
#hero {
    padding-top: 6rem;
    /* pt-24 */
    padding-bottom: 8rem;
    /* pb-32 */
    text-align: center;
}

#hero p {
    font-size: 1.25rem;
    /* text-xl */
    max-width: 48rem;
    /* max-w-3xl */
    margin: 1.5rem auto 0;
}

#hero .btn {
    margin-top: 2.5rem;
    /* mt-10 */
}

/* Section À Propos */
#about {
    background: var(--color-bg-secondary);
    padding-top: 6rem;
    /* py-24 */
    padding-bottom: 6rem;
}

#about .grid-2-col {
    align-items: center;
}

#about img {
    border-radius: 8px;
    /* rounded-lg */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#about p:last-of-type {
    margin-bottom: 0;
}

/* Section Services */
#services {
    padding-top: 6rem;
    /* py-24 */
    padding-bottom: 6rem;
}

#services .section-intro {
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    /* mt-16 */
}

#services .section-intro p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Section Contact (CTA) */
#contact {
    padding-top: 5rem;
    /* my-20 */
    padding-bottom: 5rem;
}

#contact .cta-box {
    background: var(--color-bg-secondary);
    border-radius: 16px;
    /* rounded-2xl */
    padding: 3rem;
    /* p-12 */
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#contact .cta-box p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

#contact .cta-box .btn {
    margin-top: 2rem;
    /* mt-8 */
}

/* Pied de page */
footer {
    background: rgba(17, 24, 39, 0.8);
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
    /* mt-24 */
    padding-top: 1rem;
    /* py-10 */
    padding-bottom: 1rem;
    text-align: center;
}

footer p {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* --- Animation au défilement (Scroll) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai pour les cartes pour un effet échelonné */
.grid-3-col.is-visible .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-3-col.is-visible .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-3-col.is-visible .service-card:nth-child(3) {
    transition-delay: 0.3s;
}


.copy {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    color: #706cf8;
}

.copy:hover {
    color: #3e39c3;
}

.copy:active {
    color: #9a0c0c;
}

#copy-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
}

#copy-popup.show {
    opacity: 1;
}

.contact p {
    text-align: justify;
    text-justify: distribute
}

/* Titre principal "Nous contacter" */

.login-container.contact {
    /* Styles de base de la carte */
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;

    /* Propriétés pour le centrage parfait */
    position: fixed;
    /* Reste visible même en faisant défiler */
    top: 50%;
    /* Déplace le bord supérieur à 50% de la hauteur de l'écran */
    left: 50%;
    /* Déplace le bord gauche à 50% de la largeur de l'écran */
    /* Décale l'élément vers l'arrière de la moitié de sa propre largeur et hauteur */
    transform: translate(-50%, -50%);
    z-index: 100;
    /* Assure que la boîte est au-dessus des autres éléments */

    /* Ombre */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact h1 {
    text-align: center;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Paragraphes généraux */
.contact p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5rem;

    /* Style spécifique à la classe .contact pour la justification */
    text-align: justify;
    text-justify: distribute;
}

/* Texte de droit d'auteur dans le div.footer */
.contact .footer p {
    color: var(--color-text-dark);
    /* Rendre le copyright discret */
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* --- Éléments de Copie (Discord / Téléphone) --- */
.copy {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    color: #706cf8;
    /* Bleu vif */
}

.copy:hover {
    color: #3e39c3;
    /* Bleu plus foncé au survol */
}

.copy:active {
    color: #9a0c0c;
    /* Rouge pour l'état actif */
}

/* --- Pop-up de Confirmation de Copie --- */
#copy-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
}

#copy-popup.show {
    opacity: 1;
}


/* Pied de page du formulaire */
.footerCc {
    margin-top: 2rem;
}

.footerCc p {
    margin-top: 0.75rem;
    color: var(--color-text-dark);
    font-size: 0.875rem;
    margin-bottom: 0;
    text-align: center;
}