
     
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 80%;
    max-width: 1200px;   /* Optionnel : limite la largeur sur grands écrans */
    margin: 0 auto;       /* Centre horizontalement */
}

@media (max-width: 768px) {
    .container {
        width: 98%;
        padding: 0 1%;    /* Petit padding pour éviter que le contenu touche les bords */
    }
}


hr {
    border: none;                 /* Supprime la bordure par défaut */
    height: 1px;                  /* Épaisseur de la ligne */
    background: linear-gradient(to right, #30363d, #58a6ff, #30363d); /* Dégradé subtil */
    margin: 2em 0;                /* Espacement vertical */
    border-radius: 2px;           /* Coins légèrement arrondis */
    opacity: 0.7;                 /* Transparence pour effet subtil */
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1f6feb;
}

/* Style UL pour thème dark */
ul {
    padding-left: 23px;           /* Garde ton indentation actuelle */
    list-style-type: disc;        /* Puces classiques */
    color: #c9d1d9;               /* Couleur du texte */
}

ul li {
    margin-bottom: 0.1em;         /* Espacement entre les items */
    position: relative;
}

/* Puces personnalisées avec couleur bleue subtile */
ul li::marker {
    color: #58a6ff;               /* Même bleu que tes liens / boutons */
}

/* Variante “tech glow” au hover sur la ligne */
ul li:hover {
    color: #58a6ff;
    transition: color 0.2s;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #c9d1d9;
}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }

button, .btn {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 0.5em 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover, .btn:hover {
    background-color: #30363d;
    border-color: #58a6ff;
    color: #d2d2d2;     
}

input, textarea, select {
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 0.5em;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #58a6ff;
}

/* --- FAQ Accordéon animé --- */
.faq details {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 0.8em;
    padding: 0.6em 1em;
    transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
    border-color: #58a6ff;
    background-color: #1c2128;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    color: #c9d1d9;
    padding-right: 1.5em;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "▸";
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
    color: #58a6ff;
}

.faq details[open] summary::after {
    transform: rotate(90deg);
}

/* Animation déroulante */
.faq .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq details[open] .content {
    max-height: 300px; /* augmente si tu as des textes longs */
    opacity: 1;
}

.faq p {
    margin-top: 0.6em;
    color: #8b949e;
    font-size: 0.95em;
}


/* --- Liste stylisée avec icône GitHub-style --- */
.list-features {
    list-style: none;
    padding: 0;
}

.list-features li {
    background-color: #161b22;      /* fond sombre */
    border: 1px solid #30363d;      /* bordure subtle */
    border-radius: 6px;
    margin-bottom: 0.6em;
    padding: 0.6em 1em 0.6em 3em;    /* espace pour l’icône */
    color: #c9d1d9;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* Icône custom façon GitHub */
.list-features li::before {
    content: "";
    position: absolute;
    left: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid #58a6ff;    /* contour bleu */
    background-color: #0d1117;     /* fond assorti au site */
    box-sizing: border-box;
}

/* Petit check à l'intérieur avec pseudo-element */
.list-features li::after {
    content: "✓";                  /* symbole check simple */
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.0em;
    color: #58a6ff;
    font-weight: bold;
}

/* Hover */
.list-features li:hover {
    background-color: #1c2128;
    border-color: #58a6ff;
    color: #ffffff;
}


.hero-section {
    position: relative;
    background-color: #0d1117; /* Fond sombre */
    padding: 5em 1em;
    text-align: center;
    border-radius: 30px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.4em;
    font-weight: 800;
    color: #c9d1d9;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1em;
    color: #8b949e;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: linear-gradient(to right, #21262d, #58a6ff33, #21262d);
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 0.7em 1.4em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
    display: inline-block;
}

.hero-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(to right, #21262d, #58a6ff55, #21262d);
    border-color: #58a6ff;
    opacity: 0.95;
}

.hero-btn-secondary {
    background-color: #161b22;
    color: #58a6ff;
    border: 1px solid #30363d;
    padding: 0.7em 1.4em;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-btn-secondary:hover {
    background-color: #30363d;
    border-color: #58a6ff;
    transform: translateY(-2px);
}



/* --- Slider container --- */
.card-slider {
    display: flex;
    gap: 1em;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding: 1em 0;
    cursor: grab; 
}

.card-slider:active {
    cursor: grabbing;
}

/* --- Individual cards --- */
.card-slider .card {
    position: relative;      /* nécessaire pour overlay */
    flex: 0 0 auto;          
    width: 250px;            
    height: 250px;           
    scroll-snap-align: start;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0;              /* plus de marge interne */
    box-shadow: 0 3px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    overflow: hidden;        /* pour que l'image et overlay ne débordent pas */
}

.card-slider .card:hover {
    transform: scale(1.03);
}

/* --- Images plein conteneur --- */
.card-slider .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* coins collés parfaitement à la card */
}

/* --- Overlay / Voile avec texte --- */
/* Overlay / Voile avec texte lumineux bleu */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.54); /* voile sombre semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #58a6ff;                  /* texte bleu GitHub */
    font-weight: 700;
    text-align: center;
    padding: 1em;
    transition: opacity 0.3s, text-shadow 0.3s;
    pointer-events: none;             /* laisse passer les clics */
    text-shadow: 0 0 8px #58a6ff, 0 0 16px #58a6ff55; /* glow bleu */
}

/* Hover : voile + texte disparaissent */
.card:hover .card-overlay {
    opacity: 0;
}


/* --- Scrollbar custom --- */
.card-slider::-webkit-scrollbar {
    height: 8px;
}

.card-slider::-webkit-scrollbar-track {
    background: #0d1117;
}

.card-slider::-webkit-scrollbar-thumb {
    background-color: #30363d;
    border-radius: 10px;
    border: 2px solid #0d1117;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .card-slider .card {
        width: 90%;     
        height: auto;   /* s’adapte au contenu */
    }
}


.card-overlay p {
    background: rgba(13, 17, 23, 0.94); /* fond plus foncé derrière le texte */
    padding: 0.3em 0.6em;           /* petit padding pour bien encadrer le texte */
    border-radius: 4px;              /* coins légèrement arrondis */
    color: #58a6ff;                  /* texte bleu GitHub */
    text-shadow: 0 0 6px #58a6ff, 0 0 12px #58a6ff55; /* glow lumineux */
}


.case-section {
  margin: 4em 0;
  text-align: center;
}

.case-title {
  font-size: 2em;
  color: #58a6ff;
  margin-bottom: 0.5em;
}

.case-desc {
  font-size: 1em;
  color: #8b949e;
  max-width: 700px;
  margin: 0 auto 2em;
}

.case-img-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 3em;
  border-radius: 12px;
  height: auto; /* hauteur adaptable grand écran */
}

.case-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* image toujours entière */
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .case-img-wrapper {
    height: auto;
  }

  .case-img-wrapper img {
    height: auto;
    max-height: 70vh;
  }
}






.services-section {
  padding: 4em 1em;
  text-align: center;
  color: #c9d1d9;
}

.services-section h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.services-subtitle {
  color: #8b949e;
  margin-bottom: 1em;
}

.services-grid {
  display: grid;
  gap: 1.5em;
  max-width: 1200px;
  margin: 0 auto;
  /* Desktop par défaut : 3 colonnes */
  grid-template-columns: repeat(3, 1fr);
}

/* Tablette / mobile : 2 colonnes */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Petit mobile : 1 colonne */
@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.service-card {
  background-color: #161b22;
  border: 2px solid #30363d;
  border-radius: 12px;
  padding: 1.2em;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.6em;
  color: #58a6ff;
}

.service-card p {
  font-size: 0.95em;
  color: #c9d1d9;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #58a6ff;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}


@media (max-width: 768px) {
    .card-slider .card {
        flex: 0 0 70%; 
        max-width: unset;
    }
}

nav.nav {
    display: flex;
    justify-content: center; 
    align-items: center;     
    position: relative;
    background-color: #161b22;
    padding: 1em 2em;
}

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: #c9d1d9;
    margin-left: auto; 
}

.menu {
    display: flex;
    gap: 0.8em;
    list-style: none;
}

nav.nav .menu li a {
    display: inline-block;
    padding: 0.3em 1em;
    color: #c9d1d9;               
    font-weight: 400;
    border: 1px solid #30363d;    
    border-radius: 6px;            
    background-color: #21262d;     
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

nav.nav .menu li a:hover {
    background-color: #30363d;
    border-color: #58a6ff;
    color: #c9d1d9; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav.nav .menu li a.cta {
    background-color: #58a6ff;  
    color: #0d1117;             
    border-color: #58a6ff;
    font-weight: 600;
}

nav.nav .menu li a.cta:hover {
    background-color: #1f6feb;
    border-color: #1f6feb;
    color: #c9d1d9;
    box-shadow: 0 4px 8px rgba(88, 166, 255, 0.5);
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

table th, table td {
    border: 1px solid #30363d;
    padding: 0.5em;
    text-align: left;
}

table th {
    background-color: #21262d;
}

pre, code {
    background-color: #161b22;
    color: #c9d1d9;
    padding: 0.5em;
    border-radius: 6px;
    font-family: "Fira Code", monospace;
    overflow-x: auto;
}

pre {
    margin-bottom: 1em;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background-color: #30363d;
    border-radius: 10px;
    border: 2px solid #0d1117;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 1001;
        
    }

    .menu {
        display: flex;
        flex-direction: column;
        background-color: #161b22;
        position: fixed; 
        top: 0;
        right: -260px; 
        height: 100vh;
        gap: 0;
        width: 260px;
        padding: 2em 1em;
        box-shadow: -2px 0 8px rgba(0,0,0,0.5);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .menu li:first-child {
        margin-top: 5em; 
    }

    #menu-toggle:checked ~ .menu {
        right: 0; 
    }

    .menu li {
        padding: 1em 0;
        text-align: left;
        border-bottom: 1px solid #30363d;
    }

    .menu li:last-child {
        border-bottom: none;
    }
}


.site-footer {
  background-color: #161b22;
  color: #c9d1d9;
  padding: 3em 1em;
  text-align: center;
  font-size: 0.95em;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.8em;
  color: #58a6ff;
  margin-bottom: 0.2em;
}

.footer-slogan {
  color: #8b949e;
  margin-bottom: 1em;
}

.footer-social {
  margin: 1em 0;
}

.footer-social .social-btn {
  display: inline-block;
  margin: 0 0.5em;
  color: #c9d1d9;
  font-size: 2.2em;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #30363d;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-social .social-btn:hover {
  background-color: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
  transform: translateY(-2px);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin: 1.5em 0;
}

.footer-badges .badge {
  background-color: #0d1117;
  border: 1px solid #30363d;
  padding: 0.5em 1em;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-badges .badge:hover {
  border-color: #58a6ff;
  color: #58a6ff;
  transform: translateY(-1px);
}

.footer-links {
  margin: 1em 0;
}

.footer-links a {
  color: #8b949e;
  margin: 0 0.5em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #58a6ff;
}

.footer-copy {
  color: #6e7681;
  font-size: 0.85em;
  margin-top: 1em;
}

/* Responsive */
@media (max-width: 576px) {
  .footer-badges {
    flex-direction: column;
  }
  .footer-social .social-btn {
    margin: 0.3em;
  }
    .hero-section {
    padding: 2em 0.1em;
}
    .hero-title {
    font-size: 2.0em;
}
}

