/* =========================================
   RESET & BASE
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette principale Scinuance */
  --blue-sky: #5CA9E9;
  --slate-blue: #6C7A89;
  --mint-green: #A5D6A7;
  --pale-gold: #F4D06F;
  --light-grey: #E6E6E6;

  --text-main: #222222;
  --text-muted: #555555;
  --bg-page: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

/* Conteneur principal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titres */
h1, h2, h3 {
  margin-bottom: 12px;
  color: var(--text-main);
}

a {
  color: inherit;
}

/* =========================================
   HEADER / NAV
   ========================================= */

.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000000;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

/* Effet au survol */
.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* État actif : pas de mouvement, mais soulignement blanc */
.main-nav .active {
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid #ffffff;
}


/* Soulignement pour la page active dans le menu */
.main-nav .active {
  border-bottom: 2px solid var(--blue-sky);
  padding-bottom: 4px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.lang-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-bottom: 2px;
}

.lang-link:hover {
  color: #f5f5f5;
}

.lang-link.lang-active {
  border-bottom: 2px solid #c4b5fd;
}

.lang-separator {
  color: #777777;
}

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

.hero {
  background: linear-gradient(135deg, var(--blue-sky), var(--slate-blue));
  color: #ffffff;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-eyebrow {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.hero-inner h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
}

.hero.hero-split {
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-highlights {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.hero-illustration {
  display: flex;
  justify-content: center;
}

.hero-illustration-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =========================================
   PAGE D’ACCUEIL / SECTIONS
   ========================================= */

.about-page {
  margin-top: 40px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-section {
  display: block;
}

.about-block {
  border-radius: 14px;
  padding: 28px 26px;
  margin-top: 8px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
}

/* =========================================
   SERVICES (3 blocs index)
   ========================================= */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.service-formation {
  background-color: #E6F2FC;
  border-color: #CFE5F6;
}

.service-conseil {
  background-color: #E7F5EC;
  border-color: #C9E6D4;
}

.service-ateliers {
  background-color: #FFF6DE;
  border-color: var(--pale-gold);
}

/* =========================================
   BLOC RÉFÉRENCES – EXEMPLES
   ========================================= */

.references-block {
  position: relative;
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.3rem 2.6rem;
  padding-left: 2.8rem;
  border: 1px solid var(--light-grey);
  margin-top: 2.5rem;
  box-shadow: 0 18px 36px rgba(92, 169, 233, 0.08),
              0 8px 20px rgba(165, 214, 167, 0.06);
}

.references-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--blue-sky), var(--mint-green));
  opacity: 0.85;
}

.references-header {
  margin-bottom: 1.8rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--slate-blue);
}

.references-tab {
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-sky), var(--mint-green), var(--pale-gold));
  margin-bottom: 1.2rem;
}

.references-grid {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 900px) {
  .references-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.reference-card {
  background: linear-gradient(145deg, #ffffff 0%, #f9fbff 55%, #f2f9ff 100%);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #E0E7EF;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reference-sector {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate-blue);
  margin-bottom: 0.2rem;
}

.reference-title {
  font-size: 1.02rem;
  margin: 0;
  color: #1E2933;
}

.reference-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1E2933;
}

/* Tags */
.reference-tags-block {
  border-top: 1px solid var(--light-grey);
  padding-top: 1.4rem;
  margin-top: 0.4rem;
}

.reference-tags-title {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--slate-blue);
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  background-color: var(--pale-gold);
  color: #3A3A3A;
}

/* =========================================
   PAGE À PROPOS – BLOCS GRAPHIQUES
   ========================================= */

.about-intro {
  padding: 24px 26px;
  border-radius: 12px;
  background-color: #f7fbff;
  border: 1px solid #e0ecf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.about-block-axes {
  background: linear-gradient(135deg, #E6F2FC, #ffffff);
  border: 1px solid #CFE5F6;
}

.about-block-objectives {
  background: linear-gradient(135deg, #EEF4FF, #ffffff);
  border: 1px solid #D4E0FF;
}

.about-block-concrete {
  background: linear-gradient(135deg, #FFF6DE, #ffffff);
  border: 1px solid var(--pale-gold);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 18px 18px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.objectives-grid {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.objective-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #dde6f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.intervention-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intervention-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intervention-item {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 208, 111, 0.6);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.founder-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.btn-linkedin {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #0A66C2;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-linkedin:hover {
  background-color: #084f97;
}

.section-header-with-illustration {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-illustration-img {
  max-width: 220px;
  height: auto;
}

/* =========================================
   BLOG LIST & ARTICLE
   ========================================= */

.blog-list {
  margin-top: 40px;
}

.blog-card {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dddddd;
}

.blog-card h2 a,
.blog-card h3 a {
  text-decoration: none;
  color: var(--text-main);
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  text-decoration: underline;
}

.article-date {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 6px;
}

.article-excerpt {
  margin: 12px 0;
}

.read-more {
  font-weight: bold;
  color: var(--blue-sky);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.blog-article {
  margin-top: 40px;
  line-height: 1.7;
}

.blog-article h2 {
  margin-top: 30px;
}

.sources {
  margin-top: 20px;
  padding-left: 20px;
}

/* =========================================
   FORMULAIRE DE CONTACT
   ========================================= */

.contact-form {
  max-width: 600px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  color: #34495e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-sky);
  outline: none;
  box-shadow: 0 0 4px rgba(92, 169, 233, 0.3);
}

.btn-primary {
  background-color: var(--blue-sky);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #4a96d3;
  transform: translateY(-1px);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  text-align: center;
}

.footer-main {
  font-size: 1rem;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-sub a {
  color: #ffffff;
  text-decoration: none;
}

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

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-illustration {
    margin-top: 20px;
  }

  .card-grid-3,
  .objectives-grid,
  .intervention-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header-with-illustration {
    flex-direction: column;
  }

  .about-block {
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;


  }
}

@media (max-width: 600px) {
  .about-page {
    gap: 28px;
  }

  .about-intro {
    padding: 18px 16px;
  }

  .references-block {
    padding: 2rem 1.5rem;
    padding-left: 2.2rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 110px;
  }

  .main-nav {
    gap: 8px;
  }

  .hero-inner h1 {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* =========================================
   MODE SOMBRE
   ========================================= */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #111111;
    color: #f2f2f2;
  }

  h1, h2, h3 {
    color: #f7f7f7;
  }

  .hero {
    background: linear-gradient(135deg, #3e7ab3, #222a33);
  }

  .service-card {
    background-color: #1b1b1b;
    border-color: #333333;
  }

  .service-formation {
    background-color: #1c222a;
  }

  .service-conseil {
    background-color: #1c2a22;
  }

  .service-ateliers {
    background-color: #2a251c;
  }

  .blog-card {
    border-bottom-color: #444444;
  }

  .article-date {
    color: #aaaaaa;
  }

  .contact-form input,
  .contact-form textarea {
    background-color: #1b1b1b;
    color: #f2f2f2;
    border-color: #444444;
  }

  .site-footer {
    background-color: #000000;
  }

  .about-intro {
    background-color: #181b20;
    border-color: #303642;
    box-shadow: none;
  }

  .about-block-axes {
    background: linear-gradient(135deg, #17202a, #11151a);
    border-color: #2d3b49;
  }

  .about-block-objectives {
    background: linear-gradient(135deg, #171f2c, #11151a);
    border-color: #30405a;
  }

  .about-block-concrete {
    background: linear-gradient(135deg, #241e15, #15110b);
    border-color: #5a4422;
  }

  .info-card,
  .objective-card,
  .intervention-item,
  .founder-grid,
  .reference-card {
    background-color: #181b20;
    border-color: #333a45;
    box-shadow: none;
  }

  .reference-card {
    background: linear-gradient(145deg, #181b20 0%, #11151a 55%, #101218 100%);
  }

  .reference-text,
  .reference-title,
  .reference-sector {
    color: #e5e7eb;
  }

  .lang-separator {
    color: #aaaaaa;
  }
}
