/* =========================================
   DIGI-UX — Styles principaux (full replace)
   ========================================= */

/* ---------- Thème par défaut (LIGHT) ---------- */
:root {
  --brand-primary: #1B698C;
  --brand-accent:  #F07838;
  --brand-dark:    #0E2733;
  --brand-mid:     #207090;
  --brand-light:   #F7F9FB;

  --text:   #0f172a;
  --muted:  #4b5563;

  --card:   #ffffff;
  --border: rgba(16, 42, 53, .08);
  --shadow: 0 4px 14px rgba(0, 0, 0, .05);

  --bg-pattern: url('assets/bg.svg');
}

/* ---------- Thème forcé (DARK) ---------- */
html[data-theme="dark"] {
  --brand-primary: #53A3C6;
  --brand-accent:  #F89C60;
  --brand-dark:    #E5E7EB;
  --brand-mid:     #2EA2C9;
  --brand-light:   #0E2733;

  --text:  #F7F9FB;
  --muted: #9CA3AF;

  --card:   #1B2B33;
  --border: rgba(255, 255, 255, .10);
  --shadow: 0 6px 22px rgba(0, 0, 0, .45);
}

/* ---------- Préférence système si aucun choix stocké ---------- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --brand-primary: #53A3C6;
    --brand-accent:  #F89C60;
    --brand-dark:    #E5E7EB;
    --brand-mid:     #2EA2C9;
    --brand-light:   #0E2733;

    --text:  #F7F9FB;
    --muted: #9CA3AF;

    --card:   #1B2B33;
    --border: rgba(255, 255, 255, .10);
    --shadow: 0 6px 22px rgba(0, 0, 0, .45);
  }
}

/* =========================================
   Reset & base
   ========================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--brand-light) var(--bg-pattern) no-repeat center top / cover;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-accent); }

/* =========================================
   Header / Navigation
   ========================================= */
.site-header {
  position: relative;
  z-index: 10;
  background: transparent;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}

.site-header .container.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Branding */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-title { margin: 0; font-size: 1.15rem; color: var(--brand-dark); }

/* Logo (header) */
.logo {
  height: auto;
  max-height: 60px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 720px) {
  .logo { max-height: 48px; max-width: 90px; }
}

/* NOUVEAU: Styles de la navigation principale */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    transition: color .2s ease;
}
.main-nav a:hover {
    color: var(--brand-primary);
}
.main-nav .button.primary {
    /* Le bouton 'Contact' ne doit pas prendre le style du lien normal */
    color: #fff; 
}
@media (max-width: 920px) {
    .site-header .container.header-inner {
        /* Permet de centrer la navigation entre le logo et les actions */
        justify-content: center;
    }
    .main-nav {
        order: 3; /* Placer la nav en dessous du logo et des actions */
        width: 100%;
        margin-top: 10px;
    }
    .main-nav ul {
        justify-content: center;
        gap: 16px;
    }
}
@media (max-width: 640px) {
    .site-header .container.header-inner {
        flex-direction: column; 
        align-items: center; 
        text-align: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
    }
}
/* FIN NOUVEAU: Styles de la navigation principale */


/* Actions (LinkedIn + Dark toggle) */
.header-actions { display: inline-flex; align-items: center; gap: 18px; }

.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.icon-link:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.10); border-color: var(--brand-accent); }

/* Bouton Sun/Moon */
.theme-toggle{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:12px; border:1px solid var(--border);
  background:var(--card); color:var(--text); box-shadow:var(--shadow);
  font-weight:500; cursor:pointer; user-select:none;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,0,0,.10); border-color:var(--brand-accent); }
.theme-toggle .icon{ width:18px; height:18px; display:inline-block; }
.theme-toggle .moon{ display:none; }
html[data-theme="dark"] .theme-toggle .sun{ display:none; }
html[data-theme="dark"] .theme-toggle .moon{ display:inline-block; }
.theme-toggle .label{ font-size:.95rem; }
html[data-theme="dark"] .theme-toggle .label::after{ content:"Dark"; }
html[data-theme="light"] .theme-toggle .label::after{ content:"Light"; }
html:not([data-theme]) .theme-toggle .label::after{ content:"Auto"; }
.theme-toggle:hover .icon{ color:var(--brand-accent); }

@media (max-width:640px){
  .header-actions{ margin-top:6px; }
  .theme-toggle .label{ display:none; }
}

/* =========================================
   Sections (structure)
   ========================================= */
.section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.2rem);
  color: var(--brand-dark);
  margin: 0 0 12px;
}
.section-lead { color: var(--muted); max-width: 820px; margin: 0 auto; line-height: 1.5; }

/* =========================================
   Hero (mantra centré + texte justifié + logo large)
   ========================================= */
.hero { padding: 90px 0 60px; }
.hero-inner {
  display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center;
}

/* Logo long (hero) — plus grand */
.logo-block {
  max-width: 440px;
  margin: 0 auto;
}
.logo-block img { width: 100%; height: auto; display: block; }
@media (min-width: 920px) {
  .logo-block { max-width: 500px; }
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  color: var(--brand-dark);
  line-height: 1.3;
}

/* Mantra mis en avant, centré, sans coupures hasardeuses */
.hero .tagline {
  position: relative;
  display: inline-block;
  text-align: center !important;
  margin: 16px auto 20px;
  max-width: 820px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  color: var(--brand-accent);
  /* anti-coupures disgracieuses autour de la ponctuation */
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: manual !important;
}
/* Traits décoratifs parfaitement centrés */
.hero .tagline::before,
.hero .tagline::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
  margin-left: auto;
  margin-right: auto;
}
.hero .tagline::before { margin-bottom: .8rem; }
.hero .tagline::after  { margin-top: .8rem; }

/* Paragraphes du hero : justifiés (hors .tagline) */
.hero p:not(.tagline) {
  text-align: justify !important;
  text-justify: inter-word;
  max-width: 700px;
  margin-bottom: 0.8rem;
  hyphens: auto;
  overflow-wrap: anywhere;
  color: var(--text);
}

/* CTA */
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
/* NOUVEAU: CTA centré après la section d'offres */
.cta-center-container {
    text-align: center;
    margin-top: 40px; 
}
/* FIN NOUVEAU */

@media (min-width: 920px) {
  .hero-inner { grid-template-columns: 360px 1fr; }
  .logo-block { margin: 0; }
  .hero-inner > div { justify-self: start; }
}

/* =========================================
   Boutons
   ========================================= */
.button, .btn {
  display: inline-block; padding:12px 20px; border-radius:12px;
  text-decoration:none; font-weight:500; transition:all .2s ease; border:1px solid transparent;
}
.button.primary, .btn.btn-primary { background:var(--brand-primary); color:#fff; }
.button.primary:hover, .btn.btn-primary:hover { background:var(--brand-mid); }
.button.secondary, .btn.btn-secondary {
  background:var(--card); color:var(--text);
  border:1px solid var(--border); box-shadow:var(--shadow);
}
.button.secondary:hover, .btn.btn-secondary:hover { border-color:var(--brand-accent); transform:translateY(-1px); }

/* =========================================
   Cartes / Tuiles (style capture)
   ========================================= */
.card-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-top-color: var(--brand-primary);
}
.card h3 { color: var(--brand-dark); margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p  { color: var(--muted); margin: 0 0 0.4rem; line-height: 1.5; }
/* NOUVEAU: Styles pour mieux afficher les listes dans les cartes */
.card ul { 
  list-style: disc; 
  padding-left: 1.2rem; 
  margin: 0.6rem 0 0; /* Ajout d'une marge en haut pour séparer du h3/p */
  color: var(--text); 
}
.card ul li {
    margin-bottom: 0.4rem;
}
/* FIN NOUVEAU */
.card blockquote {
  font-style: italic; color: var(--brand-dark);
  border-left: 3px solid var(--brand-accent);
  padding-left: 0.6rem; margin: 0.4rem 0 0.8rem;
}

/* =========================================
   Séparateur orange entre sections (resserré)
   ========================================= */
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--brand-accent);
  border-radius: 3px;
  margin: 20px auto 10px;
  opacity: 0.9;
}
/* on réduit l'espace AVANT la section qui suit le trait */
.section-divider + .section,
.section-divider + #why-digiux {
  padding-top: 24px !important;
}

/* =========================================
   Valeurs
   ========================================= */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.value {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* =========================================
   Contact panel
   ========================================= */
.contact .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   Footer
   ========================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CORRECTION: Utilisation d'une classe CSS pour centrer le contenu du footer */
footer .footer-content {
    text-align: center;
    font-size: 14px; 
    color: #64748b; 
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* FIN CORRECTION */

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
}
/* ... (Code CSS précédent) ... */

/* NOUVEAU: Styles de la navigation principale */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    transition: color .2s ease;
}
.main-nav a:hover {
    color: var(--brand-primary);
}
/* Alignement titre + CTA dans la section contact */
.contact .panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
