/* ------------------------- */
/* RESET & BASE             */
/* ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a15;
    color: #ddd;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.light {
    background-color: #f0f0f5;
    color: #111;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
}

/* ------------------------- */
/* HEADER & NAVIGATION       */
/* ------------------------- */
header {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,30,0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

body.light header {
    background: rgba(240,240,245,0.95);
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #7f5af0;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #7f5af0;
    color: #fff;
}

/* ------------------------- */
/* HERO SECTION              */
/* ------------------------- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding-top: 70px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #7f5af0;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
    max-width: 600px;
}

.btn {
    background: #7f5af0;
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1em;
    transition: 0.3s;
}

.btn:hover {
    background: #5e3dd2;
}

/* ------------------------- */
/* SECTIONS                  */
/* ------------------------- */
.section {
    padding: 100px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------- */
/* CARDS                     */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.card {
    background: rgba(20,20,30,0.85);
    padding: 20px;
    width: 250px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: center;
}

body.light .card {
    background: rgba(240,240,245,0.85);
}

.card h3 {
    margin-bottom: 10px;
    color: #7f5af0;
}

.card p {
    font-size: 0.95em;
    margin-bottom: 15px;
}

.btn-small {
    background: #7f5af0;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: 0.3s;
}

.btn-small:hover {
    background: #5e3dd2;
}

/* ------------------------- */
/* FORMULAIRES               */
input, textarea, select {
    width: 100%;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #1c1c2a;
    color: #ddd;
    font-size: 1em;
    transition: 0.3s;
}

body.light input, body.light textarea, body.light select {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #111;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #7f5af0;
}

/* ------------------------- */
/* FOOTER                    */
footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(20,20,30,0.9);
    margin-top: 50px;
}

body.light footer {
    background: rgba(240,240,245,0.95);
}

/* ------------------------- */
/* OPEN SOURCE LIST          */
.opensource-list li {
    margin-bottom: 10px;
}

.opensource-list li a {
    color: #7f5af0;
    transition: 0.3s;
}

.opensource-list li a:hover {
    color: #5e3dd2;
    text-decoration: underline;
}

/* ------------------------- */
/* SETTINGS SECTION          */
.settings-option {
    margin-bottom: 20px;
}

.settings-option label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ------------------------- */
/* BACKGROUND CANVAS         */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

/* ------------------------- */
/* MEDIA QUERIES             */
@media (max-width: 768px){
    .cards {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    header {
        padding: 15px 20px;
    }

    .section {
        padding: 100px 20px 50px;
    }
}

/* ------------------------- */
/* RESET & BASE             */
/* ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a15;
    color: #ddd;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    overflow-x: hidden;
}

body.light {
    background-color: #f0f0f5;
    color: #111;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; }

/* ------------------------- */
/* HEADER & NAVIGATION       */
/* ------------------------- */
header {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,30,0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

body.light header { background: rgba(240,240,245,0.95); }

.logo { font-size: 1.8em; font-weight: bold; color: #7f5af0; }

nav ul { display: flex; gap: 25px; }
nav ul li a { font-size: 1em; padding: 5px 10px; border-radius: 5px; transition: 0.3s; }
nav ul li a:hover { background-color: #7f5af0; color: #fff; }

/* ------------------------- */
/* HERO SECTION              */
/* ------------------------- */
.hero {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    height: 100vh; text-align: center; padding-top: 70px;
    position: relative;
}

.hero h1 {
    font-size: 3em; margin-bottom: 15px; color: #7f5af0; font-family: 'Roboto Slab', serif;
}

.hero p { font-size: 1.2em; margin-bottom: 25px; max-width: 600px; font-style: italic; }

.btn { background: #7f5af0; color: #fff; padding: 12px 25px; border-radius: 10px; font-size: 1em; transition: 0.3s; }
.btn:hover { background: #5e3dd2; }

/* ------------------------- */
/* SECTIONS                  */
.section { padding: 100px 50px 50px; max-width: 1200px; margin: 0 auto; }

/* ------------------------- */
/* CARDS                     */
.cards { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 30px; }

.card {
    background: rgba(20,20,30,0.85); padding: 20px; width: 250px;
    border-radius: 15px; transition: 0.3s; text-align: center;
}
body.light .card { background: rgba(240,240,245,0.85); }

.card img { width: 100%; border-radius: 15px; margin-bottom: 10px; }

.card h3 { margin-bottom: 10px; color: #7f5af0; }
.card p { font-size: 0.95em; margin-bottom: 15px; }

/* ------------------------- */
/* FORMULAIRES & SETTINGS    */
.settings-option { margin-bottom: 20px; }
.settings-option label { display: block; margin-bottom: 5px; font-weight: bold; }
input, textarea, select {
    width: 100%; padding: 10px 15px; margin: 8px 0;
    border-radius: 8px; border: 1px solid #555;
    background-color: #1c1c2a; color: #ddd; font-size: 1em; transition: 0.3s;
}
body.light input, body.light textarea, body.light select { background-color: #fff; border: 1px solid #ccc; color: #111; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #7f5af0; }

/* Code de vérification input */
#codeInput { margin-top: 10px; }

/* ------------------------- */
/* FOOTER                    */
footer { text-align: center; padding: 30px 0; background: rgba(20,20,30,0.9); margin-top: 50px; }
body.light footer { background: rgba(240,240,245,0.95); }

/* ------------------------- */
/* BACKGROUND CANVAS         */
#backgroundCanvas {
    position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100%;
}

/* ------------------------- */
/* MEDIA QUERIES             */
@media (max-width: 768px){
    .cards { flex-direction: column; align-items: center; }
    nav ul { flex-direction: column; gap: 15px; }
    header { padding: 15px 20px; }
    .section { padding: 100px 20px 50px; }
}

footer {
  text-align: center;
  padding: 20px 0 10px 0;
  background-color: #2a0d4a; /* violet foncé */
  color: #fff;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.social-icon {
  width: 30px; /* taille du logo */
  height: 30px;
}

.nav-logo {
  height: 40px;          /* hauteur du logo */
  width: 80px;           /* largeur du logo */
  border-radius: 12px;   /* arrondi des coins */
  object-fit: cover;     /* pour que l'image remplisse bien le rectangle */
}