/* === Variables globales === */
:root {
  --transition-default: 0.3s ease;
  --accent-color: #ffa000;
  --text-color: #e0e0e0;
  --background-dark: #1f1f1f;
}

/* === Styles généraux === */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #121212, #1f1f1f);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* === Liste accordéon === */
#tweaks .tweaks-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

#tweaks details {
  background: rgba(255, 255, 255, 0.015);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-color var(--transition-default);
}

#tweaks details[open] {
  border-color: var(--accent-color);
}

#tweaks summary {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 1.05em;
  color: var(--text-color);
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color var(--transition-default);
}

#tweaks summary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent-color);
}

#tweaks details p {
  padding: 15px 20px;
  font-size: 1em;
  color: #ccc;
  background-color: transparent;
  margin: 0;
  line-height: 1.6;
}

/* === En-tête === */
header {
  background-color: rgba(30, 30, 30, 0.95);
  color: #ffc107;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  border-bottom: 3px solid var(--accent-color);
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-default), padding var(--transition-default);
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 80%);
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0.2;
  transition: opacity var(--transition-default);
}

header:hover {
  background-color: rgba(30, 30, 30, 1);
  padding: 65px 20px;
}

header:hover::before {
  opacity: 0.35;
}

/* === Contenu principal === */
main {
  padding: 50px 30px;
  max-width: 900px;
  margin: 40px auto;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 15px;
  box-shadow: 0 6px 35px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

main:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.8);
}

/* === Titres === */
h1 {
  font-size: 3em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #ffc107, #ff6f00);
  margin: 10px auto 0;
  border-radius: 2px;
}

h2, h3 {
  font-size: 2.5em;
  margin: 20px 0 10px;
  color: var(--accent-color);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 5px;
}

/* === Paragraphes et listes === */
p {
  font-size: 1.125em;
  margin-bottom: 20px;
  line-height: 1.8;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 20px;
}


/* CTA Button */
.cta-button {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #3d1616, #914600);
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 15px var(--shadow-color);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-25deg);
  transition: all 0.5s ease-in-out;
}

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

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.cta-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
  }
}

/* === Bouton retour en haut === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background: linear-gradient(135deg, #3b3b3b, #19191a);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(122, 15, 1, 0.5), 0 0 30px rgba(134, 60, 0, 0.4);
  transition: all var(--transition-default);
  z-index: 1000;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #999999, #c0c0c0);
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 25px rgba(139, 67, 0, 0.7), 0 0 40px rgba(163, 60, 1, 0.6);
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(97, 55, 0, 0.3);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(122, 69, 0, 0.4), 0 0 20px rgba(105, 13, 1, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(126, 71, 0, 0.7), 0 0 35px rgba(146, 34, 0, 0.6);
  }
}

/* === Images === */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* === Témoignages === */
.testimonial {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-style: italic;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--accent-color);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* === FAQ === */
.faq {
  margin-top: 30px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.faq h4 {
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 1.5em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* === Caractéristiques === */
.features {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.features li {
  margin: 10px 0;
  font-size: 1.125em;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  transition: background-color var(--transition-default), transform var(--transition-default);
  border-left: 4px solid transparent;
}

.features li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  border-left: 4px solid var(--accent-color);
}

/* Navigation */
nav {
    margin: 20px 0;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.125em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #ffa000;
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Table des matières */
.table-of-contents {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin: 10px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.table-of-contents li:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-radius: 5px;
}

.table-of-contents a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.125em;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.table-of-contents a:hover {
    color: #ffa000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Pied de page */
footer {
    background-color: rgba(30, 30, 30, 0.95);
    color: #ffc107;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
    border-top: 4px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

footer:hover {
    background-color: rgba(30, 30, 30, 1);
}

/* Conseils d'installation */
.installation-tips {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.tip {
    margin-bottom: 20px;
}

.tip h4 {
    font-size: 1.5em;
    color: #ffa000;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 5px;
}

.tip p,
.tip ul,
.tip ol {
    font-size: 1.125em;
    line-height: 1.8;
}

/* Styles pour les écrans de petite taille */
@media (max-width: 600px) {
    h1 {
        font-size: 2.25em;
    }
    h2, h3 {
        font-size: 1.75em;
    }
    p, .cta-button, nav a, .table-of-contents a {
        font-size: 0.95em;
    }
    main {
        padding: 25px 15px;
    }
    .cookie-banner {
        padding: 12px 16px;
    }
}

/* =================================================================== */
/* STYLES POUR LE TABLEAU D'OPTIMISATION GRAPHIQUE                     */
/* AJOUTÉ POUR S'ADAPTER AU DESIGN EXISTANT                            */
/* =================================================================== */

/* Conteneur pour la responsivité du tableau */
.table-container {
    overflow-x: auto; /* Permet de faire défiler le tableau sur les petits écrans */
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Bords arrondis comme les autres éléments */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse; /* Pour des bordures nettes */
    font-size: 1em; /* Taille de police cohérente */
    color: var(--text-color);
}

/* Cellules d'en-tête (th) et de données (td) */
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation subtile */
}

/* Style de l'en-tête principal du tableau */
thead th {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--accent-color); /* Utilisation de la couleur d'accentuation */
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style des lignes du corps du tableau */
tbody tr {
    background-color: transparent;
    transition: background-color var(--transition-default); /* Transition douce au survol */
}

/* Effet de survol sur les lignes, similaire à .features li:hover */
tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Style pour les en-têtes de section à l'intérieur du tableau */
.table-section-header {
    background-color: rgba(255, 160, 0, 0.08); /* Fond subtil utilisant la couleur d'accentuation */
    color: var(--accent-color);
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Mise en évidence de la colonne "Valeur Recommandée" */
td:nth-child(2) {
    font-weight: bold;
    color: #ffffff; /* Texte blanc pour contraster */
}

/* Style pour la colonne "Raison" */
td:nth-child(3) {
    color: #ccc; /* Couleur de texte légèrement plus discrète */
    font-size: 0.95em;
}

.donate-button {
    position: fixed;
    bottom: 24px;
    left: 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;

    color: #fff;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    border: none;
    border-radius: 999px;

    cursor: pointer;
    z-index: 1000;

    box-shadow:
        0 10px 30px rgba(255, 95, 109, 0.35),
        inset 0 -2px 6px rgba(255, 255, 255, 0.2);

    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Animation flottante douce */
.donate-button {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Hover */
.donate-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 14px 40px rgba(255, 95, 109, 0.45),
        inset 0 -2px 8px rgba(255, 255, 255, 0.25);
}

/* Clic */
.donate-button:active {
    transform: scale(0.97);
}

/* Mobile friendly */
@media (max-width: 600px) {
    .donate-button {
        bottom: 16px;
        left: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }
}
