/* =============================================
   Charte graphique — Tech Neumorphisme
   Fond bleu tech clair (Soft UI)

   Principe : éléments surélevés (raised) ou enfoncés (pressed)
   via des ombres doubles — sombre en bas/droite, claire en haut/gauche.
   Adapter --shadow-neu-dark / --shadow-neu-light si le fond change.
   ============================================= */


   @font-face {
    font-family: 'Neo Grey';
    src: url('../assets/fonts/neogreyregular-webfont.woff2') format('woff2'),
         url('../assets/fonts/neogreyregular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }



/* --- Accessibilité : texte sémantique masqué visuellement (SEO, lecteurs d'écran) --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Reset global --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* --- Design tokens --- */
:root {
  /* Surfaces : bg et surface partagent la même teinte (requis pour le neumorphisme) */
  --color-bg: #c4d7ee;
  --color-bg-alt: #b8cce6;       /* sections alternées, champs formulaire */
  --color-surface: #c5d8ef;

  /* Accents tech */
  --color-primary: #0088cc;
  --color-primary-light: #33aaee;
  --color-primary-dark: #006da3;
  --color-accent: #5b6fd6;

  /* Texte */
  --color-text: #152535;
  --color-text-muted: #4a6280;
  --color-border: rgba(255, 255, 255, 0.35);

  /* Ombres neumorphiques — teintées bleu pour fond #c5d8ef */
  --shadow-neu-dark: rgba(90, 125, 170, 0.48);   /* ombre portée */
  --shadow-neu-light: rgba(230, 242, 255, 0.92); /* reflet lumineux */
  --shadow-neu-raised:
    8px 8px 16px var(--shadow-neu-dark),
    -8px -8px 16px var(--shadow-neu-light);
  --shadow-neu-raised-sm:
    4px 4px 8px var(--shadow-neu-dark),
    -4px -4px 8px var(--shadow-neu-light);
  --shadow-neu-pressed:
    inset 5px 5px 10px var(--shadow-neu-dark),
    inset -5px -5px 10px var(--shadow-neu-light);
  --shadow-neu-pressed-sm:
    inset 3px 3px 6px var(--shadow-neu-dark),
    inset -3px -3px 6px var(--shadow-neu-light);
  --shadow-glow: 0 4px 20px rgba(0, 136, 204, 0.25);
  --shadow-glow-strong: 0 6px 28px rgba(0, 136, 204, 0.35);

  /* Typographie & espacements */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius: 1rem;
  --radius-sm: 0.625rem;
  --radius-lg: 1.5rem;
  --header-height: 4.5rem;
  --max-width: 72rem;

  --transition: 0.25s ease;
  --page-transition: 0.08s ease-out; /* Durée du fondu du calque inter-pages */
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: rgba(212, 217, 236, 0.92);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

::selection {
  background-color: rgba(0, 136, 204, 0.18);
  color: var(--color-text);
}

/* =============================================
   Layout — conteneur & sections
   ============================================= */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header--left {
  text-align: left;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

/* Trait accent dégradé sous les titres de section */
.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--space-sm);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.section__header .section__title::after {
  margin-inline: auto;
}

.section__header--left .section__title::after {
  margin-inline: 0;
}

.section__intro {
  color: var(--color-text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.section__header--left .section__intro {
  margin-inline: 0;
}

/* =============================================
   Header & navigation
   ============================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(197, 216, 239, 0.92); /* correspond à --color-bg */
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-neu-raised-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.logo__accent {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-primary);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), box-shadow var(--transition);
}

/* Hover : effet enfoncé (pressed) */
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-primary);
  box-shadow: var(--shadow-neu-pressed-sm);
}

/* Page courante — surlignage bleu (sans JS) */
.nav__link--active {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
}

.nav__link--active:hover,
.nav__link--active:focus-visible {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow-strong);
}

/* index.html — ancre #apropos sur la page d'accueil (CSS :has + :target) */
body:has(#apropos:target) a.nav__link--active[href="index.html"] {
  background: none;
  color: var(--color-text-muted);
  font-weight: 500;
  box-shadow: none;
}

/* Checkbox masquée — menu mobile sans JavaScript */
.nav-toggle__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bouton hamburger — visible uniquement en mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background-color: var(--color-surface);
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neu-raised-sm);
  transition: box-shadow var(--transition);
}

.nav-toggle:active {
  box-shadow: var(--shadow-neu-pressed-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  padding-block: calc(var(--space-xl) * 1.75);
}

.hero__inner {
  max-width: 44rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Accueil — titre marque (aligné sur le logo) */
.hero__title--brand {
  font-family: 'Neo Grey', var(--font-sans);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-xs);
  text-shadow:
    2px 2px 4px var(--shadow-neu-light),
    -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.hero__tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero__title--brand::after {
  content: "";
  display: block;
  width: clamp(4rem, 12vw, 6rem);
  height: 4px;
  margin-top: var(--space-sm);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

.hero__title-accent {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68em;
  letter-spacing: 0.04em;
  vertical-align: 0.12em;
  display: inline-block;
  padding: 0.12em 0.4em 0.16em;
  margin-left: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
  text-shadow: none;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 36rem;
}

/* Accueil — sous-titre mis en valeur (panneau neumorphique) */
.hero__subtitle--featured {
  position: relative;
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 0.5rem);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neu-raised-sm);
  color: var(--color-text);
  font-weight: 500;
}

.hero__subtitle--featured::before {
  content: "";
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  bottom: var(--space-sm);
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.hero__subtitle-highlight {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.hero__subtitle-no-break {
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__actions--center {
  justify-content: center;
}


/* =============================================
   Buttons — primary (gradient) / secondary (neu)
   ============================================= */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-neu-pressed-sm);
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-neu-raised-sm);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-neu-pressed-sm);
}

/* =============================================
   Cards — panneaux surélevés, barre lumineuse au hover
   ============================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}

.card {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neu-raised);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* Barre gradient révélée au survol */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neu-raised), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Pastille indicateur devant le titre */
.card__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* =============================================
   Project cards — cartes projets (contenu texte)
   ============================================= */

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-md);
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neu-raised);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neu-raised), var(--shadow-glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__body {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-xs);
}

.project-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neu-pressed-sm);
  margin-bottom: var(--space-sm);
}

.project-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.project-card__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.project-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* =============================================
   About — bloc texte centré, lisible
   ============================================= */

.about {
  max-width: 42rem;
  margin-inline: auto;
}

.about__list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neu-raised-sm);
  font-size: 0.9375rem;
  transition: box-shadow var(--transition);
}

.about__list li:hover {
  box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  box-shadow: var(--shadow-neu-raised-sm);
}

/* =============================================
   Contact — coordonnées directes (hero)
   ============================================= */

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: var(--space-md);
}

.contact-details__link {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1c57af;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

.contact-details__link:hover,
.contact-details__link:focus-visible {
  color: #055aaf;
}

.hero--contact {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding-block: calc(var(--space-xl) * 2);
}

.hero__inner--center {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.hero--contact .hero__subtitle {
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.contact-details--featured {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
  width: min(100%, 28rem);
  margin-inline: auto;
  margin-top: var(--space-lg);
}

.contact-details--featured .contact-details__link {
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 700;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neu-raised);
  text-decoration: none;
  text-align: center;
  transition: color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-details--featured .contact-details__link:hover,
.contact-details--featured .contact-details__link:focus-visible {
  color: #055aaf;
  box-shadow: var(--shadow-neu-raised-sm);
  transform: translateY(-2px);
}

/* =============================================
   Form — champs enfoncés, panneau surélevé
   ============================================= */

.form {
  max-width: 32rem;
  margin-inline: auto;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neu-raised);
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neu-pressed-sm);
  transition: box-shadow var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  box-shadow: var(--shadow-neu-pressed-sm), 0 0 0 3px rgba(0, 136, 204, 0.18);
}

.form__group input:invalid:not(:placeholder-shown),
.form__group textarea:invalid:not(:placeholder-shown) {
  box-shadow: var(--shadow-neu-pressed-sm), 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form__feedback {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form__feedback--success {
  color: #188038;
}

.form__feedback--error {
  color: #c53030;
}

/* =============================================
   Footer
   ============================================= */

.footer {
  padding-block: var(--space-lg);
  background-color: var(--color-bg-alt);
  box-shadow: inset 0 2px 8px rgba(90, 125, 170, 0.2);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__nav {
  display: flex;
  gap: var(--space-xs);
}

.footer__nav a {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: color var(--transition), box-shadow var(--transition);
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--color-primary);
  box-shadow: var(--shadow-neu-pressed-sm);
}

.footer__legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  padding-top: var(--space-sm);
  margin-top: var(--space-xs);
  border-top: 1px solid rgba(90, 125, 170, 0.18);
}

.footer__legal a {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--color-primary);
}

/* =============================================
   Legal pages — mentions légales, confidentialité
   ============================================= */

.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-block {
  margin-bottom: var(--space-lg);
}

.legal-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.legal-block p,
.legal-block li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-block ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--space-sm);
}

.legal-block a {
  color: #1c57af;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-block a:hover,
.legal-block a:focus-visible {
  color: #055aaf;
}

.legal-block code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(90, 125, 170, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(90, 125, 170, 0.15);
}

.legal-source {
  font-size: 0.8125rem;
  font-style: italic;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* =============================================
   Responsive — breakpoint tablette/mobile
   Nav slide-in + grille about en colonne unique
   ============================================= */

@media (max-width: 768px) {
  .header {
    z-index: 1000;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 1001;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-sm)) var(--space-sm) var(--space-sm);
    background-color: rgba(21, 37, 53, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    box-shadow: none;
  }

  .nav-toggle__checkbox:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    width: min(100%, 17.5rem);
    padding: var(--space-sm);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-neu-raised);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    overflow: visible;
  }

  .nav-toggle__checkbox:checked ~ .nav .nav__list {
    transform: translateX(0);
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: center;
    background-color: var(--color-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-neu-raised-sm);
    transition:
      color var(--transition),
      box-shadow var(--transition),
      background var(--transition);
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background-color: var(--color-bg-alt);
  }

  .nav__link--active {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow);
  }

  .nav__link--active:hover,
  .nav__link--active:focus-visible {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: var(--shadow-neu-raised-sm), var(--shadow-glow-strong);
  }

  /* Animation croix du hamburger (CSS pur via checkbox) */
  .nav-toggle__checkbox:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle__checkbox:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle__checkbox:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .form {
    padding: var(--space-md);
  }

  .hero__subtitle-no-break {
    white-space: normal;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .language-menu {
    z-index: 1100;
  }

  .timeline-card {
    width: 100%;
    max-width: 300px;
  }
}
/* Espacement entre les cartes (cubes) */
.cards,
.team-grid,
.values-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; /* Espacement entre chaque cube */
  margin: 40px 0;
}


/* Style des cartes (cubes) */
.card,
.team-card,
.testimonial-card {
  background: #f0f4ff; /* Fond bleu tech clair */
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    8px 8px 15px rgba(0, 0, 0, 0.05),
    -8px -8px 15px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 200, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}



/*Style des cartes values*/
.value-card {
  background:  rgba(197, 216, 239, 0.92);/* Couleur bleu clair sur les cartes Valeurs*/
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    8px 8px 15px rgba(0, 0, 0, 0.05),
    -8px -8px 15px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 200, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}


/* Effet au survol (optionnel) */
.card:hover,
.team-card:hover,
.value-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.1),
    -10px -10px 20px rgba(255, 255, 255, 0.9);
}

/* Style des cubes de la timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; /* Espacement entre les cubes */
  margin: 40px 0;
}

.timeline-card {
  background: #f0f4ff; /* Fond bleu tech clair */
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    8px 8px 15px rgba(0, 0, 0, 0.05),
    -8px -8px 15px rgba(5, 0, 0, 0.8);
  border: 1px solid rgba(200, 200, 255, 0.3);
}


.timeline-card__date {
  font-weight: 700;
  color: #000103; /* Bleu tech pour la date */
  margin-bottom: 8px;
  font-size: 14px;
}


.timeline-card__title {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.timeline-card__text {
  color: #555;
  line-height: 1.6;
}
/* Style des cubes de la timeline */
.timeline {
  display: flex;
  gap: 32px; /* Espacement entre les deux cubes */
  flex-wrap: wrap; /* Permet aux cubes de passer à la ligne sur mobile */
  justify-content: center; /* Centre les cubes horizontalement */
  margin: 40px 0;
}

.timeline-card {
  background:rgba(197, 216, 239, 0.92);
  border-radius: 16px; /* Bordures arrondies pour un look moderne */
  padding: 24px;
  width: 100%;
  max-width: 300px; /* Largeur max des cubes — 100% sur mobile */
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.08),
    -8px -8px 20px rgb(255, 255, 255);
  border: 1px solid rgba(200, 200, 255, 0.4);
  transition: all 0.3s ease;
}

/* Effet au survol */
.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow:
    12px 12px 25px rgba(0, 0, 0, 0.12),
    -12px -12px 25px rgb(255, 255, 255);
}

/* Style de la date (en bleu professionnel) */
.timeline-card__date {
  font-weight: 700;
  color: #1f5ebd; /* Bleu professionnel */
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

/* Style du titre (noir foncé pour un contraste professionnel) */
.timeline-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* Style du texte (gris foncé pour une lisibilité optimale) */
.timeline-card__text {
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 15px;
}
/* Style des 4 étiquettes */
.quick-nav {
  padding: 20px 0;
  background: transparent;
}

.quick-nav__grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Style commun à toutes les étiquettes */
.quick-nav__tag {
  padding: 12px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    12px 12px 25px rgba(0, 0, 0, 0.12),
    -12px -12px 25px rgb(255, 255, 255);
  
}

/* Style pour les 3 premières étiquettes (fond blanc, texte bleu) */
.quick-nav__tag--light {
  background: rgba(197, 216, 239, 0.92);
  color: #1c57af;
}

/* Style pour la dernière étiquette (dégradé bleu foncé → bleu clair) */
.quick-nav__tag--gradient {
  background: linear-gradient(to right, #055aaf, #0f70d1);
  color: white;
}

/* Effet de survol pour TOUTES les étiquettes */
.quick-nav__tag:hover {
  transform: translateY(-2px);
  box-shadow:
    12px 12px 25px rgba(0, 0, 0, 0.12),
    -12px -12px 25px rgb(255, 255, 255);
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
  .quick-nav__grid {
    gap: 12px;
  }
  .quick-nav__tag {
    padding: 10px 20px;
    font-size: 14px;
  }
}
/* Style des sections */
.section {
  padding: 40px 0;
}

/* Fond bleu clair pour les sections avec la classe section--light */
.section--light {
  background: #e7e8fc; /* Bleu clair */
}

/* Fond blanc pour les sections avec la classe section--white */
.section--white {
  background: rgba(197, 216, 239, 0.92);
}

/* Style des titres et paragraphes dans les sections */
.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.section p {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.6;
}
/* Style des cartes de témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Style de base des cartes de témoignages */
.testimonial-card {
  background: rgb(235, 233, 250);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(200, 200, 255, 0.2);
  position: relative; /* Nécessaire pour positionner la bordure dégradée */
}

/* Bordure supérieure avec dégradé (clair → foncé → clair) */
.testimonial-card--bordered::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px; /* Hauteur de la bordure */
  
  background: linear-gradient(
    to right,
    rgba(100, 180, 255, 0.8), /* Bleu clair à gauche */
    #0066cc, /* Bleu foncé au centre */
    rgba(100, 180, 255, 0.8) /* Bleu clair à droite */
  );
  border-radius: 12px 12px 0 0; /* Bordure arrondie en haut */
}

/* Style de base des cartes de témoignages */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow:
  12px 12px 25px rgba(0, 0, 0, 0.12),
  -12px -12px 25px rgb(255, 255, 255);
  border: 1px solid rgba(200, 200, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

/* Initialisation du pseudo-élément (invisible par défaut) */
.testimonial-card--bordered::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0; /* Hauteur à 0 par défaut */
  background: linear-gradient(
    to right,
    rgb(255, 255, 255),
    #0066cc,
    rgb(255, 255, 255)
  );
  border-radius: 12px 12px 0 0;
  transition: height 0.3s ease; /* Animation de la hauteur */
}

/* Effet au survol : la bordure apparaît */
.testimonial-card--bordered:hover::before{
  height: 3px; /* Hauteur de 4px au survol */
}

/* Effet supplémentaire au survol */
.testimonial-card--bordered:hover {
  transform: translateY(-3px);
  box-shadow:
    12px 12px 25px rgba(0, 0, 0, 0.12),
    -12px -12px 25px rgb(255, 255, 255);
}
/* Style du message temporaire */
.testimonial-card--placeholder {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(200, 200, 255, 0.2);
  text-align: center; /* Centre le texte */
}

.testimonial-card__message {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.testimonial-card__message strong {
  color: #0066cc; /* Bleu pour mettre en valeur */
  font-weight: 600;
}











/* Transitions entre pages — calque bleu (évite le flash blanc du navigateur) */
@media (prefers-reduced-motion: no-preference) {
  html::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: #d4d9ec;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--page-transition);
  }

  html.page-transition-exit::after,
  html.page-transition-enter::after {
    opacity: 1;
  }

  html.page-transition-exit::after {
    transition: none;
  }
}

/* Masque le texte FR le temps du chargement i18next (langue ≠ fr) */
html.i18n-loading [data-i18n] {
  visibility: hidden;
}

/* Style du sélecteur de langue */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: white;
  border: 1px solid #0066cc;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #0066cc;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-btn:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
}

/* Style du menu déroulant (masqué par défaut) */
.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #0066cc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.language-menu.show {
  opacity: 1;
  visibility: visible;
}

/* Style des options de langue */
.lang-option {
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.lang-option:hover {
  background: #f0f4ff;
}
.fi {
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}