/* ─────────────────────────────────────────
DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --fd-navy:      #0f1f3d;
  --fd-navy-mid:  #1a3260;
  --fd-blue:      #2251a3;
  --fd-accent:    #3b82f6;
  --fd-light:     #f5f7fb;
  --fd-muted:     #64748b;
  --fd-border:    #e2e8f0;
  --fd-white:     #ffffff;
  --fd-radius:    .75rem;
  --fd-radius-lg: 1.25rem;
  --fd-shadow-sm: 0 1px 4px rgba(15,31,61,.06);
  --fd-shadow:    0 4px 20px rgba(15,31,61,.10);
  --fd-shadow-lg: 0 12px 40px rgba(15,31,61,.14);
}

/* ─────────────────────────────────────────
BASE
───────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--fd-navy);
  background: var(--fd-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

a { text-decoration: none; }

section { scroll-margin-top: 72px; }

@media (max-width: 767px) {
  section#hero > .container > .row > .col-md-6:first-child { 
    padding-left: 16px;
  }
  section#apropos > .container > .row > .col-md-6 { 
    padding-left: 36px;
  }
  section#contact > .container > .row > .col-lg-7 { 
    padding: 10px 20px !important;
  }
}

/* ─────────────────────────────────────────
NAVBAR
───────────────────────────────────────── */
#navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fd-border);
  transition: box-shadow .3s;
}

#navbar.scrolled {
  box-shadow: var(--fd-shadow);
}

.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--fd-navy) !important;
  letter-spacing: -.5px;
}

.navbar-brand img {
  height: 28px;
  width: auto;
}

.logo {
  font-family: 'Sora', sans-serif !important;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.3px;
  margin-left: 10px;
}

.logo .flag { color: #1e293b; }   /* navy */
.logo .dev  { color: #3b82f6; }   /* blue */
.logo .ch   { color: #93c5fd; }   /* light */

.logo-dark {
  font-family: 'Sora', sans-serif  !important;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.3px;
}

/* flag → clair mais pas blanc pur */
.logo-dark .flag { 
  color: #e2e8f0;  /* slate-200 */
}

/* dev → bleu lumineux */
.logo-dark .dev  { 
  color: #60a5fa;  /* blue-400 */
}

/* .ch → plus discret */
.logo-dark .ch   { 
  color: #93c5fd;  /* blue-300 */
}

.navbar-brand span {
  color: var(--fd-blue);
}

.nav-link {
  color: var(--fd-navy) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: .4rem;
  transition: background .2s, color .2s;
}

.nav-link:hover {
  background: var(--fd-light);
  color: var(--fd-blue) !important;
}
.nav-link.btn-nav-cta:hover {
  color: var(--fd-white) !important;
}

.btn-nav-cta {
  background: var(--fd-navy);
  color: var(--fd-white) !important;
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1.25rem !important;
  border-radius: .5rem;
  transition: background .2s, transform .15s;
}

.btn-nav-cta:hover {
  background: var(--fd-blue);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: .3rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* ─────────────────────────────────────────
HERO
───────────────────────────────────────── */
#hero {
  padding-top: 6rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--fd-light) 0%, #dde8ff 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,81,163,.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fd-blue);
  background: rgba(59,130,246,.1);
  padding: .35rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--fd-navy);
  margin-bottom: 1.25rem;
}

.hero-title em {
  color: var(--fd-blue);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--fd-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.btn-primary-fd {
  background: var(--fd-navy);
  color: var(--fd-white);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--fd-radius);
  border: 2px solid var(--fd-navy);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primary-fd:hover {
  background: var(--fd-blue);
  border-color: var(--fd-blue);
  color: var(--fd-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,81,163,.25);
}

.btn-outline-fd {
  background: transparent;
  color: var(--fd-navy);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--fd-radius);
  border: 2px solid var(--fd-navy);
  transition: background .2s, color .2s, transform .15s;
}

.btn-outline-fd:hover {
  background: var(--fd-navy);
  color: var(--fd-white);
  transform: translateY(-2px);
}

.hero-img-wrap {
  position: relative;
}

.hero-img-wrap img {
  border-radius: var(--fd-radius-lg);
  box-shadow: var(--fd-shadow-lg);
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.hero-img-wrap img {
  mix-blend-mode: multiply;
}
.hero-img-wrap img {
  filter: saturate(1.05) contrast(1.02);
}
.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--fd-white);
  border-radius: var(--fd-radius);
  padding: .75rem 1.2rem;
  box-shadow: var(--fd-shadow);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fd-navy);
  white-space: nowrap;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
SECTION HELPERS
───────────────────────────────────────── */
.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fd-blue);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--fd-navy);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--fd-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
SERVICES
───────────────────────────────────────── */
#services {
  padding: 5.5rem 0;
  background: var(--fd-white);
}

.service-card {
  background: var(--fd-light); 
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.service-card:hover {
  box-shadow: var(--fd-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(59,130,246,.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: .75rem;
  background: var(--fd-light);
  color: var(--fd-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background .2s, color .2s;
}

.service-card:hover .service-icon {
  background: var(--fd-navy);
  color: var(--fd-white);
}

.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--fd-navy);
}

.service-card p {
  font-size: .9rem;
  color: var(--fd-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────
RÉALISATIONS
───────────────────────────────────────── */
#realisations {
  padding: 5.5rem 0;
  background: var(--fd-light);
}

.project-card {
  background: var(--fd-white);
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fd-border);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}

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

.project-thumb {
  background: linear-gradient(135deg, #ffffff 0%, #dddddd 100%);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fd-blue);
  transition: gap .2s;
}

.project-link:hover {
  gap: .55rem;
  color: var(--fd-navy);
}

.project-thumb .thumb-icon {
  font-size: 2.5rem;
  color: var(--fd-blue);
  opacity: .4;
}

.project-tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--fd-navy);
  color: var(--fd-white);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 2rem;
}

.project-body {
  padding: 1.5rem;
}

.project-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fd-navy);
  margin-bottom: .5rem;
}

.project-body p {
  font-size: .875rem;
  color: var(--fd-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─────────────────────────────────────────
À PROPOS
───────────────────────────────────────── */
#apropos {
  padding: 5.5rem 0;
  background: var(--fd-white);
}

.stat-item .stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--fd-blue);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-item .stat-label {
  font-size: .85rem;
  color: var(--fd-muted);
  font-weight: 500;
}

.expertise-box {
  background: var(--fd-light);
  border-radius: var(--fd-radius-lg);
  padding: 2rem;
}

.expertise-box h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fd-navy);
  margin-bottom: 1.25rem;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .9rem;
  color: var(--fd-muted);
}

.expertise-item i {
  color: var(--fd-blue);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ─────────────────────────────────────────
CONTACT
───────────────────────────────────────── */
#contact {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--fd-light) 0%, #dde8ff 100%);
}

.contact-form-wrap {
  background: var(--fd-white);
  border-radius: var(--fd-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--fd-shadow);
}

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--fd-navy);
  margin-bottom: .4rem;
}

.form-control {
  border: 1px solid var(--fd-border);
  border-radius: .5rem;
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--fd-navy);
  transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder {
  color: #a0aec0;
}

.form-control:focus {
  border-color: var(--fd-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  outline: none;
}

.btn-submit {
  background: var(--fd-navy);
  color: var(--fd-white);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem;
  border-radius: var(--fd-radius);
  border: none;
  width: 100%;
  transition: background .2s, transform .15s;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--fd-blue);
  transform: translateY(-1px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--fd-white);
  border-radius: .6rem;
  box-shadow: var(--fd-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--fd-blue);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
FOOTER
───────────────────────────────────────── */
footer {
  background: var(--fd-navy);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 2rem;
}

@media (max-width: 767px) {
  footer {
    padding: 40px 15px 20px !important;
  }
} 

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--fd-white);
  margin-bottom: .75rem;
}

.footer-brand span { color: var(--fd-accent); }

#logo_infomaniak {
  width: 150px;
}
#logo_infomaniak img {
  width: 100%;
}

footer p, footer li {
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
}

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,.85);
  transition: color 0.2s ease;
}

footer a:hover { color: var(--fd-white); }

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li + li { margin-top: .5rem; }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.contact-item svg {
  color: #60a5fa; /* bleu cohérent */
  flex-shrink: 0;
  opacity: 0.9;
}

/* ─────────────────────────────────────────
ANIMATIONS (CSS-only)
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .65s ease-out both;
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ─────────────────────────────────────────
ALERT / FEEDBACK
───────────────────────────────────────── */
#form-success, #form-error { display: none; }

/* ─────────────────────────────────────────
RESPONSIVE TWEAKS
───────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-badge { display: none; }
  .hero-img-wrap { margin-top: 2.5rem; }
  #apropos {
    margin-right: 15px;
  }
}