/* ============================================================
   MCDZ — Front CSS
   Typographie : Sora (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
   --accent: #1e3fa8;
   --accent-2: #0ea5e9;
   --accent-dark: #152c7a;
   --green: #10b981;
   --bg: #f8faff;
   --bg-2: #eef1f9;
   --bg-card: #ffffff;
   --tx-1: #0d1526;
   --tx-2: #3d4f72;
   --tx-3: #8696b8;
   --bd: #dde4f0;
   --radius-sm: 6px;
   --radius-md: 12px;
   --radius-lg: 20px;
   --radius-xl: 28px;
   --shadow-sm: 0 1px 4px rgba(30, 63, 168, .07);
   --shadow-md: 0 4px 24px rgba(30, 63, 168, .10);
   --shadow-lg: 0 12px 48px rgba(30, 63, 168, .14);
}

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

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: 'DM Sans', system-ui, sans-serif;
   background: var(--bg);
   color: var(--tx-1);
   line-height: 1.65;
   -webkit-font-smoothing: antialiased;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}

/* Pousse le footer en bas */
main#main-content {
   flex: 1 0 auto;
}

footer.footer {
   flex-shrink: 0;
}

h1, h2, h3, h4 {
   font-family: 'Plus Jakarta Sans', sans-serif;
   font-weight: 700;
   line-height: 1.2;
   letter-spacing: -.02em;
}

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

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

/* ── Container ────────────────────────────────────────────── */
.container {
   width: 100%;
   max-width: 1140px;
   margin: 0 auto;
   padding: 0 1.5rem;
}

/* ── Navbar ───────────────────────────────────────────────── */
.nav {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 100;
   height: 64px;
   background: rgba(248, 250, 255, .85);
   backdrop-filter: blur(16px);
   border-bottom: 0.5px solid var(--bd);
   transition: all .3s;
}

.nav.scrolled {
   box-shadow: var(--shadow-md);
   background: rgba(255, 255, 255, .95);
}

.nav-inner {
   height: 64px;
   display: flex;
   align-items: center;
   gap: 2rem;
}

.nav-logo {
   display: flex;
   align-items: center;
   text-decoration: none;
}

@keyframes mcdz-heartbeat {
   0%, 100% {
      transform: scale(1);
   }

   8% {
      transform: scale(1.12);
   }

   16% {
      transform: scale(1);
   }

   24% {
      transform: scale(1.07);
   }

   40% {
      transform: scale(1);
   }
}

.nav-logo-img {
   height: 36px;
   width: auto;
   object-fit: contain;
   display: block;
   animation: mcdz-heartbeat 3.7s ease-in-out infinite;
   transform-origin: center;
}

.nav-links {
   display: flex;
   align-items: center;
   gap: .25rem;
   margin-left: auto;
   list-style: none;
}

.nav-links a {
   padding: 6px 14px;
   border-radius: var(--radius-sm);
   font-size: .9rem;
   font-weight: 500;
   color: var(--tx-2);
   transition: all .15s;
}

.nav-links a:hover {
   background: var(--bg-2);
   color: var(--accent);
}

.nav-links a.active {
   color: var(--accent);
   font-weight: 600;
}

.nav-cta {
   padding: 8px 20px;
   background: var(--accent);
   color: #fff !important;
   border-radius: var(--radius-md);
   font-size: .88rem;
   font-weight: 600;
   transition: all .2s;
   white-space: nowrap;
}

.nav-cta:hover {
   background: var(--accent-dark) !important;
   transform: translateY(-1px);
}

.nav-burger {
   display: none;
   background: none;
   border: none;
   cursor: pointer;
   padding: 6px;
   color: var(--tx-2);
   font-size: 1.5rem;
   margin-left: auto;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 28px;
   border-radius: var(--radius-md);
   font-size: .95rem;
   font-weight: 600;
   font-family: 'DM Sans', sans-serif;
   cursor: pointer;
   border: none;
   transition: all .2s;
   white-space: nowrap;
}

.btn-primary {
   background: var(--accent);
   color: #fff;
   box-shadow: 0 4px 16px rgba(30, 63, 168, .3);
}

.btn-primary:hover {
   background: var(--accent-dark);
   transform: translateY(-2px);
   box-shadow: 0 6px 24px rgba(30, 63, 168, .35);
}

.btn-outline {
   background: transparent;
   color: var(--accent);
   border: 1.5px solid var(--accent);
}

.btn-outline:hover {
   background: var(--accent);
   color: #fff;
}

.btn-white {
   background: #fff;
   color: var(--accent);
   box-shadow: var(--shadow-md);
}

.btn-white:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
}

.btn-lg {
   padding: 15px 36px;
   font-size: 1rem;
   border-radius: var(--radius-lg);
}

.btn-sm {
   padding: 8px 18px;
   font-size: .85rem;
   border-radius: var(--radius-sm);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 5px 14px;
   border-radius: 20px;
   font-size: .8rem;
   font-weight: 600;
   letter-spacing: .02em;
}

.badge-blue {
   background: rgba(30, 63, 168, .1);
   color: var(--accent);
}

.badge-green {
   background: rgba(16, 185, 129, .12);
   color: #059669;
}

.badge-sky {
   background: rgba(14, 165, 233, .12);
   color: #0284c7;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
   padding: 100px 0;
}

.section-sm {
   padding: 60px 0;
}

.section-label {
   font-size: .8rem;
   font-weight: 700;
   letter-spacing: .12em;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: .75rem;
}

.section-title {
   font-size: clamp(1.75rem, 4vw, 2.75rem);
   color: var(--tx-1);
   margin-bottom: 1rem;
}

.section-sub {
   font-size: 1.05rem;
   color: var(--tx-2);
   max-width: 560px;
   line-height: 1.7;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
   background: var(--bg-card);
   border: 0.5px solid var(--bd);
   border-radius: var(--radius-md);
   padding: 2rem;
   transition: all .25s;
}

/* Hover activé uniquement sur les cards interactives (features, FAQ) */
.card-hover:hover {
   border-color: rgba(30, 63, 168, .18);
   box-shadow: 0 4px 20px rgba(30, 63, 168, .06), var(--shadow-md);
   transform: translateY(-3px);
   background: #e2eaff;
}

.card-icon {
   width: 52px;
   height: 52px;
   border-radius: var(--radius-md);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1.25rem;
   background: rgba(30, 63, 168, .08);
   color: var(--accent);
   font-size: 1.5rem;
}

/* ── Grille ───────────────────────────────────────────────── */
.grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
}

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

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

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
   padding: 130px 0 80px;
   position: relative;
   overflow: hidden;
}

.hero-bg {
   position: absolute;
   inset: 0;
   z-index: 0;
   background:
      radial-gradient(ellipse 70% 60% at 80% 50%, rgba(30, 63, 168, .08) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 10% 80%, rgba(14, 165, 233, .06) 0%, transparent 60%);
}

.hero-grid {
   position: absolute;
   inset: 0;
   z-index: 0;
   background-image:
      linear-gradient(rgba(30, 63, 168, .04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30, 63, 168, .04) 1px, transparent 1px);
   background-size: 48px 48px;
   mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
   position: relative;
   z-index: 1;
}

/* Hero 2 colonnes */
.hero-inner {
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
   gap: 3rem;
}

.hero-text {}

/* Photo avec fondu */
.hero-photo {
   position: relative;
   display: flex;
   justify-content: flex-end;
   align-items: flex-end;
}

.hero-photo-img {
   width: 100%;
   max-width: 480px;
   height: auto;
   object-fit: contain;
   object-position: bottom;
   display: block;
   filter: drop-shadow(0 20px 60px rgba(30, 63, 168, .15));
   transform: translateY(0);
   -webkit-transform: translateY(0);
   transition: transform .4s ease;
}

.hero-photo:hover .hero-photo-img {
   transform: translateY(-6px);
}

@media (max-width: 900px) {
   .hero-inner {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .hero-text .badge,
   .hero-text p {
      margin-left: auto;
      margin-right: auto;
   }

   .hero-text>div[style*="flex"] {
      justify-content: center;
   }

   .hero-photo {
      justify-content: center;
      order: -1;
      max-height: 320px;
      overflow: hidden;
   }

   .hero-photo-img {
      max-width: 300px;
   }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
   background: var(--tx-1);
   color: rgba(255, 255, 255, .55);
   padding: 64px 0 32px;
}

.footer-logo-img {
   height: 40px;
   width: auto;
   object-fit: contain;
   display: block;
   margin-bottom: .75rem;
}

.footer-tagline {
   font-size: .925rem;
   margin-bottom: 2rem;
   line-height: 1.6;
}

.footer-cols {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 3rem;
   margin-bottom: 3rem;
}

.footer-col h4 {
   font-family: 'Plus Jakarta Sans', sans-serif;
   font-size: .875rem;
   color: #fff;
   font-weight: 600;
   margin-bottom: 1rem;
   letter-spacing: .02em;
}

.footer-col ul {
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: .3rem;
}

.footer-col ul li {
   line-height: 1.3;
}

.footer-col ul a {
   font-size: .925rem;
   color: rgba(255, 255, 255, .6);
   transition: color .2s, transform .2s;
   display: inline-flex;
   align-items: center;
   gap: 4px;
   position: relative;
   text-decoration: none;
}

.footer-col ul a::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 1px;
   background: #fff;
   transition: width .25s ease;
}

.footer-col ul a:hover {
   color: #fff;
   transform: translateX(3px);
}

.footer-col ul a:hover::after {
   width: 100%;
}

.footer-bottom {
   border-top: 0.5px solid rgba(255, 255, 255, .08);
   padding-top: 1.5rem;
   text-align: center;
   font-size: .8rem;
}

.footer-copyright {
   color: rgba(255, 255, 255, .35);
   font-size: .85rem;
   line-height: 1.6;
}

.footer-dzsil {
   color: rgba(255, 255, 255, .55);
   text-decoration: none;
   transition: color .2s;
   font-weight: 500;
}

.footer-dzsil:hover {
   color: #fff;
}

/* ── Formulaires front ────────────────────────────────────── */
.form-group {
   margin-bottom: 1.25rem;
}

.form-group label {
   display: block;
   font-size: .875rem;
   font-weight: 500;
   color: var(--tx-2);
   margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
   width: 100%;
   padding: 11px 16px;
   border: 1px solid var(--bd);
   border-radius: var(--radius-md);
   background: var(--bg-card);
   color: var(--tx-1);
   font-size: .95rem;
   font-family: 'DM Sans', sans-serif;
   transition: border-color .15s, box-shadow .15s;
   outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
   border-color: var(--accent);
   box-shadow: 0 0 0 3px rgba(30, 63, 168, .12);
}

.form-group textarea {
   resize: vertical;
   min-height: 120px;
}

.form-error {
   font-size: .8rem;
   color: #ef4444;
   margin-top: .25rem;
}

.form-success {
   background: rgba(16, 185, 129, .1);
   border: 1px solid rgba(16, 185, 129, .25);
   border-radius: var(--radius-md);
   padding: 14px 18px;
   color: #059669;
   font-size: .9rem;
   margin-bottom: 1.25rem;
}

/* ── Animations ───────────────────────────────────────────── */
.reveal {
   opacity: 0;
   transform: translateY(24px);
   transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
   opacity: 1;
   transform: translateY(0);
}

/* Entrée depuis la gauche */
.reveal-left {
   opacity: 0;
   transform: translateX(-48px);
   transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
   opacity: 1;
   transform: translateX(0);
}

/* Entrée depuis la droite */
.reveal-right {
   opacity: 0;
   transform: translateX(48px);
   transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
   opacity: 1;
   transform: translateX(0);
}

.reveal-delay-1 {
   transition-delay: .1s;
}

.reveal-delay-2 {
   transition-delay: .2s;
}

.reveal-delay-3 {
   transition-delay: .3s;
}

.reveal-delay-4 {
   transition-delay: .4s;
}

.reveal-delay-5 {
   transition-delay: .5s;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
   .grid-4 {
      grid-template-columns: repeat(2, 1fr);
   }

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

   .footer-cols {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
   }

   .nav-links {
      display: none;
   }

   .nav-burger {
      display: flex;
   }

   .nav-links.open {
      display: flex;
      flex-direction: column;
      position: fixed;
      inset: 64px 0 0;
      background: #fff;
      padding: 2rem 1.5rem;
      align-items: flex-start;
      gap: .5rem;
      border-top: 0.5px solid var(--bd);
      overflow-y: auto;
   }

   .nav-links.open a {
      font-size: 1.1rem;
      padding: 10px 14px;
      width: 100%;
   }

   .nav-links.open .nav-cta {
      width: 100%;
      justify-content: center;
      margin-top: .5rem;
   }
}

@media (max-width: 640px) {
   .grid-2, .grid-3, .grid-4 {
      grid-template-columns: 1fr;
   }

   .footer-cols {
      grid-template-columns: 1fr;
   }

   .hero {
      padding: 120px 0 60px;
   }

   .section {
      padding: 70px 0;
   }

   .btn-lg {
      padding: 13px 26px;
   }
}

/* ── Utilitaires ──────────────────────────────────────────── */
.text-center {
   text-align: center;
}

.text-accent {
   color: var(--accent);
}

.text-green {
   color: var(--green);
}

.text-muted {
   color: var(--tx-3);
}

.flex {
   display: flex;
}

.flex-center {
   display: flex;
   align-items: center;
   justify-content: center;
}

.gap-2 {
   gap: .5rem;
}

.gap-3 {
   gap: .75rem;
}

.gap-4 {
   gap: 1rem;
}

.mt-1 {
   margin-top: .25rem;
}

.mt-2 {
   margin-top: .5rem;
}

.mt-3 {
   margin-top: .75rem;
}

.mt-4 {
   margin-top: 1rem;
}

.mb-4 {
   margin-bottom: 1rem;
}

.mb-6 {
   margin-bottom: 1.5rem;
}

.mb-8 {
   margin-bottom: 2rem;
}

/* ── FAQ details hover ─────────────────────────────────────── */
details.card {
   transition: all .25s;
}

details.card.card-hover:hover {
   border-color: rgba(30, 63, 168, .18);
   box-shadow: 0 4px 20px rgba(30, 63, 168, .06);
   background: #e2eaff;
}

details.card.card-hover[open] {
   border-color: rgba(30, 63, 168, .2);
   background: #e2eaff;
}

/* ── Input group icons — taille backend (19px) ─────────────── */
.ig-text {
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0 13px;
   background: var(--bg-2);
   border-right: 0.5px solid var(--bd);
   color: var(--tx-3);
   font-size: 1.2rem;
   flex-shrink: 0;
   transition: color .15s, border-color .15s;
}

.ig:focus-within .ig-text {
   border-color: var(--accent);
   color: var(--accent);
}