/* ================================
   ARCHIMEDE DESIGN SYSTEM v1.0
   CSS WordPress — Kadence Child
   Tous les styles préfixés pour
   éviter tout conflit avec l'ancien site
   ================================ */

/* === VARIABLES CSS === */
:root {
  --archimede-yellow:     hsl(50, 100%, 52%);   /* #FFD60A */
  --archimede-magenta:    hsl(326, 85%, 52%);   /* #E8318C */
  --archimede-turquoise:  hsl(193, 100%, 43%);  /* #00A8DB */
  --archimede-cream:      hsl(45, 30%, 97%);    /* #FAF9F6 */
  --archimede-black:      hsl(0, 0%, 4%);       /* #0A0A0A */
  --archimede-muted:      hsl(0, 0%, 40%);      /* Texte secondaire */
  --archimede-border:     hsl(0, 0%, 90%);      /* Bordures */
  --archimede-radius:     0.75rem;
  --archimede-shadow:     0 4px 20px -4px rgba(0,0,0,0.08);
  --archimede-shadow-lg:  0 12px 40px -12px rgba(0,0,0,0.12);
}

/* ================================
   BASE — s'applique uniquement
   aux pages avec .archimede-page
   ================================ */

.archimede-page {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 300;
  color: var(--archimede-black);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.archimede-page *,
.archimede-page *::before,
.archimede-page *::after {
  box-sizing: border-box;
}

/* === TYPOGRAPHIE === */

.archimede-page h1,
.archimede-page h2,
.archimede-page h3,
.archimede-page h4,
.archimede-page h5,
.archimede-page h6 {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.archimede-page h1 { font-weight: 900; font-size: 2.5rem; }
.archimede-page h2 { font-weight: 700; font-size: 2rem; }
.archimede-page h3 { font-weight: 600; font-size: 1.5rem; }

@media (min-width: 768px) {
  .archimede-page h1 { font-size: 4rem; }
  .archimede-page h2 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .archimede-page h1 { font-size: 5rem; }
  .archimede-page h2 { font-size: 3.75rem; }
}

/* Italique coloré dans les titres */
.archimede-page h1 em,
.archimede-page h2 em {
  color: var(--archimede-magenta);
  font-style: italic;
}

/* Texte secondaire */
.archimede-text-muted    { color: var(--archimede-muted); }
.archimede-text-magenta  { color: var(--archimede-magenta); }
.archimede-text-turquoise{ color: var(--archimede-turquoise); }
.archimede-text-yellow   { color: var(--archimede-yellow); }

/* Tags / Labels */
.archimede-tag {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

/* Numéros décoratifs watermark */
.archimede-number-deco {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 100;
  font-size: 5rem;
  color: hsla(50, 100%, 52%, 0.3);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .archimede-number-deco { font-size: 8rem; }
}

/* ================================
   LAYOUT
   ================================ */

.archimede-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .archimede-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.archimede-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 1024px) {
  .archimede-section-lg {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Backgrounds de section */
.archimede-bg-cream  { background: var(--archimede-cream); }
.archimede-bg-white  { background: #ffffff; }
.archimede-bg-dark   { background: var(--archimede-black); color: white; }

/* Gradient CTA */
.archimede-bg-gradient {
  background: linear-gradient(
    135deg,
    hsla(193, 100%, 43%, 0.1) 0%,
    transparent 50%,
    hsla(326, 85%, 52%, 0.1) 100%
  );
}

/* ================================
   BADGE DE SECTION
   ================================ */

.archimede-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.archimede-badge::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--archimede-turquoise);
  border-radius: 9999px;
  flex-shrink: 0;
}

.archimede-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--archimede-turquoise);
}

/* ================================
   BOUTONS
   ================================ */

.archimede-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.archimede-btn-sm  { height: 2.25rem; padding: 0 1rem; font-size: 0.75rem; }
.archimede-btn-lg  { height: 3.5rem;  padding: 0 2rem; font-size: 1rem; }
.archimede-btn-xl  { height: 4rem;    padding: 0 2.5rem; font-size: 1.125rem; }

/* Primary / Hero */
.archimede-btn-primary {
  background: var(--archimede-black);
  color: white;
  box-shadow: var(--archimede-shadow);
}
.archimede-btn-primary:hover {
  background: var(--archimede-magenta);
  transform: scale(1.05);
  box-shadow: 0 15px 35px -5px rgba(232, 49, 140, 0.3);
  color: white;
  text-decoration: none;
}

/* Outline */
.archimede-btn-outline {
  background: transparent;
  color: var(--archimede-black);
  border: 2px solid var(--archimede-black);
}
.archimede-btn-outline:hover {
  background: var(--archimede-black);
  color: white;
  text-decoration: none;
}

/* Turquoise */
.archimede-btn-accent {
  background: var(--archimede-turquoise);
  color: white;
}
.archimede-btn-accent:hover {
  transform: scale(1.05);
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

/* Magenta */
.archimede-btn-warm {
  background: var(--archimede-magenta);
  color: white;
}
.archimede-btn-warm:hover {
  transform: scale(1.05);
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

/* Ghost */
.archimede-btn-ghost {
  background: transparent;
  color: var(--archimede-black);
}
.archimede-btn-ghost:hover {
  background: hsla(193, 100%, 43%, 0.1);
  color: var(--archimede-turquoise);
  text-decoration: none;
}

/* ================================
   CARTES
   ================================ */

.archimede-card {
  background: white;
  border-radius: var(--archimede-radius);
  overflow: hidden;
  transition: all 0.4s ease;
}

.archimede-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--archimede-shadow-lg);
}

.archimede-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.archimede-card-content {
  padding: 1.5rem;
}

/* Magazine hover */
.archimede-card-magazine:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* ================================
   ACCORDÉONS FAQ
   ================================ */

.archimede-accordion {
  border: 1px solid var(--archimede-border);
  border-radius: var(--archimede-radius);
  overflow: hidden;
  background: white;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--archimede-shadow);
}

.archimede-accordion:hover {
  box-shadow: var(--archimede-shadow-lg);
}

.archimede-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.archimede-accordion summary::-webkit-details-marker { display: none; }

.archimede-accordion-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--archimede-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.archimede-accordion[open] .archimede-accordion-icon {
  background: var(--archimede-turquoise);
  border-color: var(--archimede-turquoise);
}

.archimede-accordion-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  stroke: currentColor;
}

.archimede-accordion[open] .archimede-accordion-icon svg {
  transform: rotate(45deg);
  stroke: white;
}

.archimede-accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--archimede-muted);
  border-top: 1px solid var(--archimede-border);
  padding-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Variantes couleurs accordéons */
.archimede-accordion-turquoise { border-color: hsla(193, 100%, 43%, 0.3); }
.archimede-accordion-turquoise:hover { border-color: hsla(193, 100%, 43%, 0.6); }
.archimede-accordion-magenta   { border-color: hsla(326, 85%, 52%, 0.3); }
.archimede-accordion-magenta:hover   { border-color: hsla(326, 85%, 52%, 0.6); }
.archimede-accordion-yellow    { border-color: hsla(50, 100%, 52%, 0.3); }
.archimede-accordion-yellow:hover    { border-color: hsla(50, 100%, 52%, 0.6); }

/* ================================
   HERO SECTION
   ================================ */

.archimede-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.archimede-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archimede-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archimede-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(45, 30%, 97%, 0.8) 0%,
    hsla(45, 30%, 97%, 0.6) 50%,
    hsla(45, 30%, 97%, 0.8) 100%
  );
}

.archimede-hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 0 1.5rem;
}

/* ================================
   BARRE DE NAVIGATION FLOTTANTE
   ================================ */

.archimede-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: white;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.625rem 0;
  padding-bottom: env(safe-area-inset-bottom, 0.625rem);
}

.archimede-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--archimede-muted);
  text-decoration: none;
  gap: 4px;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.archimede-bottom-nav a.active,
.archimede-bottom-nav a:hover {
  color: var(--archimede-turquoise);
  text-decoration: none;
}

.archimede-bottom-nav i,
.archimede-bottom-nav svg {
  width: 22px;
  height: 22px;
}

/* ================================
   TOPBAR
   ================================ */

.archimede-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  background: white;
  border-bottom: 1px solid var(--archimede-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

@media (min-width: 1024px) {
  .archimede-topbar { padding: 0 3rem; }
}

/* ================================
   ICÔNES LUCIDE
   ================================ */

[data-lucide] {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archimede-icon-sm { width: 16px; height: 16px; }
.archimede-icon-md { width: 24px; height: 24px; }
.archimede-icon-lg { width: 28px; height: 28px; }
.archimede-icon-xl { width: 32px; height: 32px; }

/* ================================
   ANIMATIONS
   ================================ */

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

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

.archimede-animate-fade-up {
  animation: archimede-fadeUp 0.8s ease-out forwards;
}

.archimede-animate-fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.archimede-animate-fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.archimede-animate-fade-up-3 { animation-delay: 0.3s; opacity: 0; }

/* Fade au scroll via JS */
.archimede-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.archimede-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.archimede-float {
  animation: archimede-float 8s ease-in-out infinite;
}

/* Lien avec underline animé */
.archimede-link {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.archimede-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.archimede-link:hover::after { width: 100%; }

/* ================================
   DOTS FLOTTANTS DÉCORATIFS
   ================================ */

.archimede-dots-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.archimede-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: archimede-float 5s ease-in-out infinite;
}

.archimede-dot-turquoise { background: var(--archimede-turquoise); }
.archimede-dot-magenta   { background: var(--archimede-magenta); }
.archimede-dot-yellow    { background: var(--archimede-yellow); }

/* Positions par défaut */
.archimede-dot-1 { width:8px;  height:8px;  left:10%; top:20%; animation-delay:0s; }
.archimede-dot-2 { width:12px; height:12px; right:15%; top:15%; animation-delay:0.5s; }
.archimede-dot-3 { width:6px;  height:6px;  right:10%; top:45%; animation-delay:1s; }
.archimede-dot-4 { width:10px; height:10px; left:5%;  top:60%; animation-delay:1.5s; }
.archimede-dot-5 { width:8px;  height:8px;  right:25%; top:70%; animation-delay:2s; }
.archimede-dot-6 { width:14px; height:14px; left:15%; top:85%; animation-delay:0.8s; }

/* ================================
   BARRE DE RECHERCHE
   ================================ */

.archimede-search {
  position: relative;
  max-width: 32rem;
}

.archimede-search input {
  width: 100%;
  padding: 1rem 3rem;
  border-radius: 1rem;
  border: 1px solid var(--archimede-border);
  background: white;
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 1rem;
  color: var(--archimede-black);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--archimede-shadow);
}

.archimede-search input:focus {
  border-color: var(--archimede-turquoise);
  box-shadow: 0 0 0 3px hsla(193, 100%, 43%, 0.15);
}

.archimede-search input::placeholder {
  color: var(--archimede-muted);
}

.archimede-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--archimede-muted);
  pointer-events: none;
}

.archimede-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--archimede-border);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.archimede-search-clear:hover {
  background: var(--archimede-muted);
}

/* ================================
   CATÉGORIES FAQ — En-têtes
   ================================ */

.archimede-faq-category {
  position: relative;
  margin-bottom: 5rem;
}

.archimede-faq-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.archimede-faq-category-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archimede-faq-icon-turquoise {
  background: hsla(193, 100%, 43%, 0.08);
  border: 1px solid hsla(193, 100%, 43%, 0.25);
  color: var(--archimede-turquoise);
}
.archimede-faq-icon-magenta {
  background: hsla(326, 85%, 52%, 0.08);
  border: 1px solid hsla(326, 85%, 52%, 0.25);
  color: var(--archimede-magenta);
}
.archimede-faq-icon-yellow {
  background: hsla(50, 100%, 52%, 0.08);
  border: 1px solid hsla(50, 100%, 52%, 0.25);
  color: var(--archimede-yellow);
}

/* ================================
   SECTION CTA FINALE
   ================================ */

.archimede-cta-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsla(193, 100%, 43%, 0.1);
  border: 2px solid var(--archimede-turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--archimede-turquoise);
}

/* ================================
   UTILITAIRES
   ================================ */

.archimede-relative  { position: relative; }
.archimede-overflow  { overflow: hidden; }
.archimede-text-center { text-align: center; }
.archimede-mb-4  { margin-bottom: 1rem; }
.archimede-mb-6  { margin-bottom: 1.5rem; }
.archimede-mb-8  { margin-bottom: 2rem; }
.archimede-mt-8  { margin-top: 2rem; }
.archimede-gap-4 { gap: 1rem; }
.archimede-flex  { display: flex; }
.archimede-flex-col { flex-direction: column; }
.archimede-items-center { align-items: center; }
.archimede-justify-center { justify-content: center; }

/* Padding page (compense topbar + bottom nav) */
.archimede-page-wrap {
  padding-top: 64px;
  padding-bottom: 5rem;
}

/* ================================
   RESPONSIVE HELPERS
   ================================ */

@media (max-width: 767px) {
  .archimede-hide-mobile { display: none; }
}

@media (min-width: 768px) {
  .archimede-hide-desktop { display: none; }

  .archimede-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .archimede-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
