/* ===================================
   Qorex.fr - Main Stylesheet
  Swiss Minimal Theme
   =================================== */

/* ===== FONT FACE - NEBULA ===== */
@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-BookItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-SemiboldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nebula';
  src: url('/fonts/nebula/NebulaSans-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ===== COLOR PALETTE ===== */
:root {
  --primary-purple: #e10600;
  --dark-purple: #111111;
  --light-purple: #e5e5e5;
  --white: #ffffff;
  --cream: #f5f5f5;
  --text-dark: #111111;
  --text-light: #ffffff;
  --background-light: #f7f7f7;
  --gradient-primary: linear-gradient(135deg, #111111 0%, #111111 100%);
  --gradient-secondary: linear-gradient(135deg, #e10600 0%, #e10600 100%);
  --font-primary: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-heading: "Source Serif 4", "IBM Plex Sans", serif;
  
  /* Dark mode variables (used when data-theme="dark") */
  color-scheme: light;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Dark mode colors */
:root[data-theme="dark"] {
  --primary-purple: #ff3b30;
  --dark-purple: #f5f5f5;
  --light-purple: #2a2a2a;
  --white: #0f0f0f;
  --cream: #1a1a1a;
  --text-dark: #f5f5f5;
  --text-light: #0f0f0f;
  --background-light: #0b0b0b;
  --gradient-primary: linear-gradient(135deg, #0f0f0f 0%, #0f0f0f 100%);
  --gradient-secondary: linear-gradient(135deg, #ff3b30 0%, #ff3b30 100%);
  color-scheme: dark;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  margin-top: 70px;
}

main {
  min-height: 100vh;
}

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

a {
  transition: all 0.3s ease;
}

/* ===== NAVIGATION ===== */
.site-header {
  background: var(--white);
  color: var(--text-dark);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--light-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
}

.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .site-name {
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text .site-tag {
  display: block;
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  opacity: 0.7;
  font-weight: 300;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* Mobile menu button - hidden by default on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list .nav-item a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.nav-list .nav-item a:hover {
  background: var(--cream);
  transform: translateY(0);
}

.nav-item.has-children {
  position: relative;
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  padding: 8px;
  border-radius: 8px;
  min-width: 200px;
  border: 1px solid var(--light-purple);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nav-item.has-children:hover .dropdown {
  display: block;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle {
  background: var(--white);
  border: 1px solid var(--light-purple);
  color: var(--text-dark);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--cream);
  transform: scale(1.05);
  box-shadow: none;
}

.theme-toggle:active {
  transform: scale(0.95);
}

.header-actions .btn.primary {
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: none;
  border: 1px solid var(--text-dark);
  cursor: pointer;
}

.header-actions .btn.primary:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(0);
  box-shadow: none;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #3d005b 0%, #1a0033 100%);
  color: var(--white);
  padding: 80px 20px 40px;
  margin-top: 120px;
  border-top: 3px solid var(--primary-purple);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--light-purple);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-brand p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  font-size: 0.95rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.footer-col ul li a:hover {
  color: var(--primary-purple);
  padding-left: 0;
}

.footer-col ul li a::before {
  content: "";
  display: none;
}

.footer-col ul li a:hover::before {
  opacity: 0;
}

/* Newsletter removed */

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-purple);
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  max-width: min(520px, calc(100% - 40px));
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid #eee;
}
.cookie-content { padding: 18px 20px; }
.cookie-text h4 { margin: 0 0 8px 0; color: var(--primary-purple); font-size: 1.1rem; overflow-wrap: anywhere; }
.cookie-text p { margin: 0 0 12px 0; color: #555; line-height: 1.5; overflow-wrap: anywhere; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }


:root[data-theme="dark"] .cookie-banner {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #2a2a2a;
  box-shadow: none;
}
:root[data-theme="dark"] .cookie-text h4,
:root[data-theme="dark"] .cookie-text p { color: #f5f5f5; }

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  display: block;
  transition: all 0.3s ease;
  width: fit-content;
}

.footer-col ul li a:hover {
  color: var(--primary-purple);
  padding-left: 0;
}

.admin-link {
  opacity: 0.7;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.admin-link:hover {
  opacity: 1;
}

/* ===== HOME PAGE ===== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  color: var(--text-dark);
  position: relative;
  background-color: var(--background-light);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInDown 1s ease-out;
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw + 1rem, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
  animation: slideDown 1s ease-out;
}

.hero-content .hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.8rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1.5rem 0;
  color: var(--primary-purple);
  letter-spacing: 0.3px;
  animation: fadeIn 1.2s ease-out;
}

.hero-content p {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1vw + 0.8rem, 1.3rem);
  font-weight: 400;
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-out;
}

.hero-button {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
  font-weight: 600;
  color: var(--white);
  background-color: var(--text-dark);
  padding: clamp(10px, 1vw + 8px, 14px) clamp(30px, 3vw + 20px, 45px);
  border-radius: 6px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: none;
  border: 1px solid var(--text-dark);
  cursor: pointer;
}

.hero-button:hover {
  transform: translateY(-1px);
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
}

/* Content Blocks */
.content-block {
  padding: clamp(50px, 6vw, 80px) 20px;
  min-height: clamp(300px, 35vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.block-container {
  max-width: clamp(600px, 50vw, 800px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out;
}

.content-block p {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 0.6vw + 0.8rem, 1.1rem);
  line-height: 1.8;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.block-1 {
  background: var(--white);
  color: var(--text-dark);
}

.block-1 h2 {
  color: var(--text-dark);
}

.block-2 {
  background: var(--text-dark);
  color: var(--white);
}

.block-2 h2 {
  color: var(--white);
}

.block-2 p {
  color: var(--white);
}

.block-3 {
  background: var(--white);
  color: var(--text-dark);
}

.block-3 h2 {
  color: var(--text-dark);
}

/* ===== TUTORIALS PAGE ===== */
.tutoriels-container {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  height: calc(100vh - 110px);
  max-width: 1600px;
  margin: 0 auto;
}

.tutoriels-list {
  flex: 0 0 320px;
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--light-purple);
  box-shadow: none;
  overflow-y: auto;
}

.tutoriels-list h2 {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-purple);
  padding-bottom: 0.75rem;
}

.tutoriels-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutoriels-list li {
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-weight: 500;
  border: 2px solid transparent;
}

.tutoriels-list li:hover {
  background: var(--cream);
  transform: translateX(0);
}

.tutoriels-list li.active {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  font-weight: 600;
}

.pdf-viewer {
  flex-grow: 1;
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--light-purple);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.75rem, 1vw, 1rem);
  background: var(--text-dark);
  border-radius: 6px;
  margin-bottom: 1rem;
  color: var(--white);
}

.pdf-header h3 {
  margin: 0;
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.4rem);
  color: white;
}

.pdf-controls {
  display: flex;
  gap: 10px;
}

.pdf-controls button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: clamp(0.85rem, 0.5vw + 0.75rem, 0.95rem);
  transition: all 0.3s ease;
  font-weight: 500;
}

.pdf-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(0);
}

.pdf-viewer iframe {
  width: 100%;
  flex-grow: 1;
  border: none;
  border-radius: 8px;
  background: var(--white);
  min-height: 500px;
}

.no-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 1.2rem;
}

.no-pdf i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

/* Ensure white text on dark sections */
.block-2, .block-2 a,
.pdf-header, .pdf-header a {
  color: var(--white);
}

/* ===== TOOLS PAGE ===== */
.tools-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
.tools-header {
  margin-bottom: 2rem;
}
.tools-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-purple);
}
.tools-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tools-search {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: 2px solid var(--light-purple);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.tools-search:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(102, 0, 153, 0.1);
}
.tools-filters select {
  padding: 12px 16px;
  border: 2px solid var(--light-purple);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
}
.tools-filters select:hover {
  border-color: var(--primary-purple);
}
.tools-filters select:focus {
  outline: none;
  border-color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--light-purple);
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-dark);
  box-shadow: none;
}

.tool-card:hover .tool-icon-img {
  box-shadow: none;
  transform: scale(1.02);
}
.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.tool-icon-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.tool-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--text-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--light-purple);
  padding: 6px;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  image-rendering: auto;
}
.tool-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.tool-fav-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.tool-fav-btn:hover {
  transform: scale(1.2);
}
.fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  border: 1px solid var(--light-purple);
  color: var(--primary-purple);
  width: 36px;
  height: 36px;
  border-radius: max(4px, min(50%, 8px));
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.fav:hover {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  transform: scale(1.05);
  box-shadow: none;
}
.fav:active {
  transform: scale(0.95);
}
.tool-category {
  display: inline-block;
  background: var(--cream);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.tool-description {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}
.tool-link {
  display: inline-block;
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: 1px solid var(--text-dark);
}
.tool-link:hover {
  transform: translateY(-1px);
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  box-shadow: none;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 1.1rem;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-full {
  flex: 1 !important;
  text-align: center;
  padding: 12px 20px !important;
}

.tool-actions .btn {
  flex: 1;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn.secondary:hover {
  background: var(--text-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  color: var(--text-dark);
  padding: 60px 20px 30px;
  margin-top: 80px;
  border-top: 1px solid var(--light-purple);
}

.footer-container {
  max-width: 1170px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  font-size: 16px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  background: var(--text-dark);
  height: 1px;
  width: 32px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-purple);
  padding-left: 0;
  transform: translateX(0);
}

.admin-link {
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px !important;
}

@media (max-width: 768px) {
  .tools-header h1 {
    font-size: 2rem;
  }
  .tools-actions {
    flex-direction: column;
  }
  .tools-search {
    min-width: auto;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility containers and spacing for pages previously using inline styles */
.container-900 {
  max-width: 900px;
  margin: 0 auto;
}
.container-1100 {
  max-width: 1100px;
  margin: 0 auto;
}
.pad-20 {
  padding: 20px;
}
.pad-24 {
  padding: 24px;
}
.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--text-dark);
  font-size: 1rem;
}

.btn-primary {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  box-shadow: none;
}

.btn.primary {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--white);
  transform: translateY(-1px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .content-block h2 {
    font-size: 2.5rem;
  }

  .tutoriels-container {
    flex-direction: column;
    height: auto;
  }

  .tutoriels-list {
    flex: 0 0 auto;
    width: 100%;
  }

  .pdf-viewer {
    min-height: 600px;
  }
}

/* Media queries for mobile/tablet breakpoints */
@media (max-width: 768px) {
  .site-header .header-inner {
    padding: 0 clamp(12px, 3vw, 20px);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideDownNav 0.3s ease;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list .nav-item {
    width: 100%;
  }

  .nav-list .nav-item a {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
  }

  .header-actions {
    display: none;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
  }

  .brand-text .site-name {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  }

  .brand-text .site-tag {
    font-size: clamp(0.6rem, 0.58rem + 0.2vw, 0.65rem);
  }
}
.brand-logo {
  width: 35px;
  height: 35px;
}

@media (max-width: 768px) {
  body {
    margin-top: 70px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .content-block {
    padding: 50px 20px;
    min-height: 300px;
  }

  .content-block h2 {
    font-size: 2.2rem;
  }

  .content-block p {
    font-size: 1rem;
  }

  .row {
    flex-direction: column;
  }

  .footer-col {
    width: 100%;
  }

  .tutoriels-container {
    padding: 1rem;
    gap: 1rem;
  }

  .pdf-header {
    flex-direction: column;
    gap: 10px;
  }

  .pdf-controls {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content-block h2 {
    font-size: 1.8rem;
  }

  .content-block p {
    font-size: 0.95rem;
  }

  .hero-button {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}

/* ===== DARK MODE SPECIFIC STYLES ===== */
:root[data-theme="dark"] {
  background-color: var(--background-light);
  color: var(--text-dark);
}

:root[data-theme="dark"] body {
  background-color: var(--background-light);
  color: var(--text-dark);
}

:root[data-theme="dark"] .tool-card {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  box-shadow: none;
}

:root[data-theme="dark"] .tool-card:hover {
  box-shadow: none;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .tool-name {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tool-cat {
  color: #f5f5f5 !important;
}

:root[data-theme="dark"] .tool-desc {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tool-description,
:root[data-theme="dark"] .article-desc,
:root[data-theme="dark"] .no-results {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tool-avatar {
  background: #0f0f0f;
  color: #f5f5f5;
}

:root[data-theme="dark"] .tool-icon-img {
  background: #0f0f0f;
  border-color: #2a2a2a;
  box-shadow: none;
}

:root[data-theme="dark"] .tutoriels-list {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
}

:root[data-theme="dark"] .tutoriels-list li {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tutoriels-list li:hover {
  background: #1a1a1a;
}

:root[data-theme="dark"] .tutoriels-list li.active {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .pdf-header {
  background: #0f0f0f;
  color: #f5f5f5;
}

:root[data-theme="dark"] .pdf-header h3 {
  color: #f5f5f5;
}

:root[data-theme="dark"] .pdf-controls button {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .no-pdf {
  color: #f5f5f5;
}

:root[data-theme="dark"] .no-pdf i {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tools-search,
:root[data-theme="dark"] .tools-filters select {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #2a2a2a;
}

:root[data-theme="dark"] .tools-search::placeholder {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tutoriels-list h2 {
  color: #b79ddb;
}

:root[data-theme="dark"] .tutoriels-list li {
  color: #e0e0e0;
}

:root[data-theme="dark"] .tutoriels-list li:hover {
  background: rgba(139, 78, 199, 0.2);
}

:root[data-theme="dark"] .pdf-viewer {
  background: #1e1e1e;
  border: 1px solid #333;
}

:root[data-theme="dark"] .pdf-viewer iframe {
  background: #0a0a0a;
}

:root[data-theme="dark"] .tools-search {
  background: #1e1e1e;
  border-color: #444;
  color: #e0e0e0;
}

:root[data-theme="dark"] .tools-search::placeholder {
  color: #888;
}

:root[data-theme="dark"] .tools-filters select {
  background: #1e1e1e;
  border-color: #444;
  color: #e0e0e0;
}

:root[data-theme="dark"] .fav {
  background: rgba(139, 78, 199, 0.1);
  border-color: #666;
  color: #b79ddb;
}

:root[data-theme="dark"] .fav:hover {
  background: rgba(139, 78, 199, 0.3);
  border-color: #888;
  color: #d1b2e0;
}

:root[data-theme="dark"] .no-results {
  color: #666;
}

:root[data-theme="dark"] footer {
  background: linear-gradient(135deg, #1a0033 0%, #0a0015 100%);
  border-top-color: #5a2d7f;
}

:root[data-theme="dark"] .footer-col h4 {
  color: #f5f5f5;
}

:root[data-theme="dark"] .footer-col ul li a,
:root[data-theme="dark"] .footer-col ul li a:hover {
  color: #f5f5f5;
}

:root[data-theme="dark"] .admin-link {
  background: #1a1a1a;
}

:root[data-theme="dark"] .hero-section::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] p,
:root[data-theme="dark"] li,
:root[data-theme="dark"] label,
:root[data-theme="dark"] small,
:root[data-theme="dark"] span,
:root[data-theme="dark"] a {
  color: #f5f5f5;
}

:root[data-theme="dark"] .hero-section {
  color: #f5f5f5;
}

:root[data-theme="dark"] .hero-content p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .hero-button {
  background-color: #0f0f0f;
  color: #f5f5f5;
  border-color: #f5f5f5;
  box-shadow: none;
}

:root[data-theme="dark"] .hero-button:hover {
  background-color: #1a1a1a;
}

:root[data-theme="dark"] .hero-button-outline {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .hero-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn.primary,
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .tool-link {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: #f5f5f5;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .btn.primary:hover,
:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn.secondary:hover,
:root[data-theme="dark"] .btn-secondary:hover,
:root[data-theme="dark"] .tool-link:hover {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .hero-scroll-hint {
  color: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .block-1 {
  background: #0f0f0f;
  color: #f5f5f5;
}

:root[data-theme="dark"] .block-2 {
  background: #151515;
  color: #f5f5f5;
}

:root[data-theme="dark"] .block-3 {
  background: #0f0f0f;
  color: #f5f5f5;
}

:root[data-theme="dark"] .feature-card {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  box-shadow: none;
}

:root[data-theme="dark"] .feature-icon {
  background: #0f0f0f;
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
}

:root[data-theme="dark"] .feature-card p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .about-teaser-text p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .stat-item {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  box-shadow: none;
}

:root[data-theme="dark"] .stat-label {
  color: #f5f5f5;
}

:root[data-theme="dark"] .tools-header h1,
:root[data-theme="dark"] .tutoriels-list h2,
:root[data-theme="dark"] .feature-link,
:root[data-theme="dark"] .feature-link:hover {
  color: #f5f5f5;
}

:root[data-theme="dark"] footer {
  background: #0f0f0f;
  color: #f5f5f5;
  border-top-color: #2a2a2a;
}

:root[data-theme="dark"] .footer-brand h3,
:root[data-theme="dark"] .footer-brand p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .footer-col h4::before {
  background: #f5f5f5;
}

:root[data-theme="dark"] .footer-col ul li a,
:root[data-theme="dark"] .footer-col ul li a:hover {
  color: #f5f5f5;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.legal-container {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 15px rgba(102, 0, 153, 0.1);
}

:root[data-theme="dark"] .legal-container {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
}

.legal-container h1 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.last-updated {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

:root[data-theme="dark"] .last-updated {
  color: #666;
  border-bottom-color: #333;
}

.legal-container section {
  margin-bottom: 2.5rem;
}

.legal-container h2 {
  color: var(--primary-purple);
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-purple);
  padding-left: 1rem;
}

:root[data-theme="dark"] .legal-container h2 {
  border-left-color: #8b4ec7;
}

.legal-container p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-container ul {
  list-style-position: inside;
  margin: 1rem 0;
  padding-left: 1rem;
}

.legal-container li {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.legal-container code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #d63384;
}

:root[data-theme="dark"] .legal-container code {
  background: #2a2a2a;
  color: #ff85c0;
}

.legal-container a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.legal-container a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

:root[data-theme="dark"] .legal-container h1,
:root[data-theme="dark"] .legal-container h2,
:root[data-theme="dark"] .legal-container p,
:root[data-theme="dark"] .legal-container li,
:root[data-theme="dark"] .legal-container a,
:root[data-theme="dark"] .last-updated,
:root[data-theme="dark"] .legal-footer {
  color: #f5f5f5;
}

:root[data-theme="dark"] .legal-container code {
  color: #f5f5f5;
}

.legal-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.9rem;
}

:root[data-theme="dark"] .legal-footer {
  border-top-color: #333;
  color: #f5f5f5;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

:root[data-theme="dark"] .footer-bottom {
  color: #f5f5f5;
}

/* ===== TOOL ARTICLE PAGE ===== */
.tool-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-container {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--light-purple);
  box-shadow: none;
}

:root[data-theme="dark"] .article-container {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
}

.article-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-icon img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.article-title h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--text-dark);
}

.article-meta .badge {
  display: inline-block;
  background: var(--cream);
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-desc { color: #444; margin-bottom: 1rem; }

.article-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 2rem; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}
.article-back:hover { opacity: 1; }
.article-back .material-symbols-outlined { font-size: 1rem; }

.article-section { margin-bottom: 2rem; }
.article-section h2 { color: var(--text-dark); font-size: 1.4rem; margin-bottom: 0.75rem; }

/* ===== PAGE HERO (About, Contact, etc.) ===== */
.page-hero {
  background: var(--background-light);
  color: var(--text-dark);
  text-align: center;
  padding: clamp(60px, 10vw, 100px) 20px clamp(50px, 8vw, 80px);
  border-bottom: 1px solid var(--light-purple);
}

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-shadow: none;
}

.page-hero p {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.25rem);
  font-weight: 400;
  color: #444;
  line-height: 1.7;
}

/* ===== HOME — HERO EXTRAS ===== */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button-outline {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
  font-weight: 600;
  color: var(--text-dark);
  background-color: transparent;
  border: 1px solid var(--text-dark);
  padding: clamp(10px, 1vw + 8px, 14px) clamp(30px, 3vw + 20px, 45px);
  border-radius: 6px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-button-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.4);
  animation: bounce 2s infinite;
}

.hero-scroll-hint .material-symbols-outlined {
  font-size: 2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== HOME — FEATURES GRID ===== */
.features-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--background-light);
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--light-purple);
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-dark);
  box-shadow: none;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--text-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.feature-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feature-link:hover {
  gap: 8px;
  color: var(--primary-purple);
}

.feature-link .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.feature-link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* ===== HOME — ABOUT TEASER ===== */
.about-teaser-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--background-light);
}

.about-teaser-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-teaser-text h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-teaser-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.about-teaser-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--light-purple);
  box-shadow: none;
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .about-teaser-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-teaser-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .about-teaser-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--background-light);
}

.about-section-alt {
  background: var(--white);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-section-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.layout-text-icon {
  grid-template-columns: 1fr auto;
}

.about-section-alt .layout-text-icon {
  grid-template-columns: auto 1fr;
}

.about-text .section-label {
  display: inline-block;
  background: var(--light-purple);
  color: var(--primary-purple);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.about-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 24px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(102,0,153,0.25);
}

.about-big-icon {
  font-size: 4rem;
  color: white;
}

/* Values Grid */
.about-values-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--gradient-primary);
}

.section-centered-title {
  text-align: center;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--cream);
  display: block;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .layout-text-icon,
  .about-section-alt .layout-text-icon {
    grid-template-columns: 1fr;
  }
  .about-icon-box {
    margin: 0 auto;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: clamp(50px, 7vw, 90px) 20px;
  background: var(--background-light);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.contact-details li .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.contact-details li a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-details li a:hover {
  opacity: 0.75;
}

.contact-note {
  display: flex;
  gap: 0.75rem;
  background: var(--white);
  border-left: 4px solid var(--primary-purple);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(102,0,153,0.07);
}

.contact-note .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--primary-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-note p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(102,0,153,0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required {
  color: var(--primary-purple);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--light-purple);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  background: var(--background-light);
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(102,0,153,0.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-submit .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Form feedback */
.form-success,
.form-errors {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.form-success .material-symbols-outlined {
  font-size: 1.5rem;
  color: #22c55e;
  flex-shrink: 0;
}

.form-success h3 {
  color: #166534;
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.form-success p {
  margin: 0;
  font-size: 0.9rem;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.form-errors .material-symbols-outlined {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-errors ul {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
}

.form-errors ul li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ===== CYBERSECURITY PAGE ===== */
.cyber-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cyber-intro {
  padding: clamp(30px, 4vw, 50px) 20px;
  background: var(--white);
  border-bottom: 1px solid var(--light-purple);
}

.cyber-lead {
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.25rem);
  color: #555;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cyber-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: var(--background-light);
}

.cyber-section-alt {
  background: var(--white);
}

.cyber-section-dark {
  background: var(--text-dark);
}

.cyber-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cyber-section-title .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--primary-purple);
}

.cyber-title-light,
.cyber-title-light .material-symbols-outlined {
  color: #fff !important;
}

.cyber-section-desc {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cyber-desc-light {
  color: rgba(255,255,255,0.7) !important;
}

/* Practice cards grid */
.cyber-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cyber-card {
  background: var(--white);
  border: 1px solid var(--light-purple);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cyber-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.cyber-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cyber-card-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary-purple);
}

.cyber-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cyber-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cyber-card ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.4rem;
}

.cyber-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-purple);
  font-weight: 700;
}

.cyber-card ul li strong {
  color: var(--text-dark);
}

.cyber-card ul li code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--primary-purple);
}

/* Tools grid */
.cyber-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.cyber-tool-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--background-light);
  border: 1px solid var(--light-purple);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cyber-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.cyber-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.cyber-tool-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyber-tool-icon-placeholder .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary-purple);
}

.cyber-tool-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cyber-tool-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--primary-purple);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.cyber-tool-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Tips grid */
.cyber-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.cyber-tip {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--light-purple);
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.cyber-tip:hover {
  transform: translateY(-2px);
}

.cyber-tip-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-purple);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.35;
}

.cyber-tip-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.cyber-tip-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.cyber-tip-content a {
  color: var(--primary-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Checklist */
.cyber-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cyber-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
}

.cyber-check-item:hover {
  background: rgba(255,255,255,0.12);
}

.cyber-check-item input[type="checkbox"] {
  display: none;
}

.cyber-check-item .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.cyber-check-item input:checked ~ .checkmark {
  background: #10b981;
  border-color: #10b981;
}

.cyber-check-item input:checked ~ .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.cyber-check-item input:checked ~ span:last-child {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Score bar */
.cyber-checklist-score {
  text-align: center;
}

.score-text {
  color: #fff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
}

.score-text strong {
  font-size: 1.4rem;
}

.score-bar {
  width: 100%;
  max-width: 500px;
  height: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.4s ease, background 0.4s ease;
}

.score-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .cyber-cards-grid,
  .cyber-tools-grid,
  .cyber-tips-grid {
    grid-template-columns: 1fr;
  }
  .cyber-checklist {
    grid-template-columns: 1fr;
  }
}

/* ===== CYBERSECURITY — DARK MODE ===== */
:root[data-theme="dark"] .cyber-intro {
  background: #121212;
}

:root[data-theme="dark"] .cyber-lead {
  color: #bbb;
}

:root[data-theme="dark"] .cyber-section {
  background: #0b0b0b;
}

:root[data-theme="dark"] .cyber-section-alt {
  background: #121212;
}

:root[data-theme="dark"] .cyber-section-dark {
  background: #0f0f0f;
}

:root[data-theme="dark"] .cyber-card {
  background: #1e1e1e;
  border-color: #333;
}

:root[data-theme="dark"] .cyber-card h3 {
  color: #e0e0e0;
}

:root[data-theme="dark"] .cyber-card ul li {
  color: #bbb;
}

:root[data-theme="dark"] .cyber-card ul li strong {
  color: #f5f5f5;
}

:root[data-theme="dark"] .cyber-card ul li code {
  background: #2a2a2a;
  color: var(--primary-purple);
}

:root[data-theme="dark"] .cyber-card-icon {
  background: #2a2a2a;
}

:root[data-theme="dark"] .cyber-tool-card {
  background: #1e1e1e;
  border-color: #333;
}

:root[data-theme="dark"] .cyber-tool-info h3 {
  color: #e0e0e0;
}

:root[data-theme="dark"] .cyber-tool-info p {
  color: #bbb;
}

:root[data-theme="dark"] .cyber-tool-tag {
  background: #2a2a2a;
}

:root[data-theme="dark"] .cyber-tool-icon-placeholder {
  background: #2a2a2a;
}

:root[data-theme="dark"] .cyber-tip {
  background: #1e1e1e;
  border-color: #333;
}

:root[data-theme="dark"] .cyber-tip-content h3 {
  color: #e0e0e0;
}

:root[data-theme="dark"] .cyber-tip-content p {
  color: #bbb;
}

:root[data-theme="dark"] .cyber-section-desc {
  color: #999;
}

:root[data-theme="dark"] .cyber-section-title {
  color: #f5f5f5;
}

/* ===== DARK MODE — nouvelles sections ===== */
:root[data-theme="dark"] .feature-card {
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

:root[data-theme="dark"] .feature-card h3 {
  color: #e0e0e0;
}

:root[data-theme="dark"] .feature-card p {
  color: #aaa;
}

:root[data-theme="dark"] .stat-item {
  background: #1e1e1e;
  border: 1px solid #333;
}

:root[data-theme="dark"] .about-section {
  background: #121212;
}

:root[data-theme="dark"] .about-section-alt {
  background: #1a1a1a;
}

:root[data-theme="dark"] .about-text p {
  color: #bbb;
}

:root[data-theme="dark"] .contact-section {
  background: #121212;
}

:root[data-theme="dark"] .contact-form-wrapper {
  background: #1e1e1e;
  border: 1px solid #333;
}

:root[data-theme="dark"] .contact-note {
  background: #1e1e1e;
  border-color: #8b4ec7;
}

:root[data-theme="dark"] .contact-info > p {
  color: #bbb;
}

:root[data-theme="dark"] .contact-details li {
  color: #f5f5f5;
}

:root[data-theme="dark"] .contact-note p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .form-group label {
  color: #f5f5f5;
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea {
  background: #0f0f0f;
  border-color: #2a2a2a;
  color: #f5f5f5;
}

:root[data-theme="dark"] .form-group input::placeholder,
:root[data-theme="dark"] .form-group textarea::placeholder {
  color: #f5f5f5;
}

:root[data-theme="dark"] .form-group input:focus,
:root[data-theme="dark"] .form-group textarea:focus {
  border-color: #f5f5f5;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .features-section,
:root[data-theme="dark"] .about-teaser-section {
  background: var(--background-light);
}

:root[data-theme="dark"] .about-teaser-text p {
  color: #f5f5f5;
}

:root[data-theme="dark"] .page-hero {
  background: var(--background-light);
}

:root[data-theme="dark"] .page-hero h1,
:root[data-theme="dark"] .page-hero p {
  color: #f5f5f5;
}
