/* ════════════════════════════════════════════════
   chokinfo-index.css — Styles de index.html
   ChoKInfO — chok.info
   ════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
       TOKENS — couleurs exactes nicepage / chokinfo
       ══════════════════════════════════════════════ */
    :root {
      --p-base:     #2e22ee;
      --p-dark:     #1e11e3;
      --p-light:    #e9e8fd;
      --p-hover:    #bebbf9;
      --bg-body:    #ffffff;
      --bg-dark:    #333333;
      --bg-grey80:  #4d4d4d;
      --bg-grey5:   #f2f2f2;
      --text-body:  #333333;
      --text-white: #ffffff;
      --text-muted: #666666;
      --font-head:  'Oswald', sans-serif;
      --font-body:  'Roboto', 'Open Sans', sans-serif;
      --radius:     8px;
      --trans:      0.28s cubic-bezier(.4,0,.2,1);
    }

    /* ══ RESET ═══════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; scroll-behavior: smooth; }
    body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-body); }
html { overflow-x: hidden; }
    a { color: var(--p-base); text-decoration: none; }
    img { max-width: 100%; display: block; }
    ul { list-style: none; }

    /* ══ NAVBAR ══════════════════════════════════════ */
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      height: 64px;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px;
      background: rgba(255,255,255,0.94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 2.5px solid var(--p-base);
      transition: box-shadow var(--trans);
    }
    .navbar.scrolled { box-shadow: 0 2px 20px rgba(46,34,238,0.13); }

    .navbar-logo {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none; flex-shrink: 0;
    }
    .navbar-logo img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--p-base); }
    .navbar-logo span {
      font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
      color: var(--p-base); letter-spacing: .06em;
    }

    .portail-wrap {
      display: flex; align-items: center; gap: 10px;
      flex: 1; margin: 0 16px; overflow: hidden; min-width: 0;
    }
    #portail-text {
      font-family: var(--font-head); font-size: .8rem; font-weight: 500;
      color: var(--p-base); letter-spacing: .2em; text-transform: uppercase;
      opacity: 0; transform: translateY(5px);
      transition: opacity .5s ease, transform .5s ease;
      white-space: nowrap; flex-shrink: 0;
    }
    #portail-text.visible { opacity: 1; transform: translateY(0); }
    #portail-line {
      height: 2px;
      background: linear-gradient(90deg, var(--p-base), rgba(46,34,238,0));
      width: 0; flex: 1;
      transition: width 1.2s cubic-bezier(.4,0,.2,1);
    }
    #portail-line.visible { width: 100%; }

    .hamburger {
      background: var(--p-base); border: none; border-radius: 7px;
      padding: 9px 11px; cursor: pointer;
      display: flex; flex-direction: column; gap: 5px;
      transition: background var(--trans); flex-shrink: 0;
      position: relative; z-index: 201;
    }
    .hamburger:hover { background: var(--p-dark); }
    .hamburger .bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
    .hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open .bar:nth-child(2) { opacity: 0; }
    .hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ══ SIDEBAR ═════════════════════════════════════ */
    .sidebar-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.5);
      z-index: 198; opacity: 0; pointer-events: none; transition: opacity var(--trans);
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

    .sidebar {
      position: fixed; top: 0; left: 0;
      width: 260px; height: 100%;
      background: var(--bg-dark); z-index: 199;
      display: flex; flex-direction: column;
      padding: 76px 0 32px;
      transform: translateX(-100%);
      transition: transform .35s cubic-bezier(.4,0,.2,1);
      box-shadow: 2px 0 18px rgba(0,0,0,0.3);
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar nav { display: flex; flex-direction: column; }
    .sidebar nav a {
      display: block; padding: 14px 24px;
      color: #fff; font-size: 1.05rem; font-weight: 400;
      transition: background var(--trans), padding-left var(--trans);
    }
    .sidebar nav a:hover { background: #00bcd4; border-radius: 0 8px 8px 0; padding-left: 32px; }
    .sidebar-footer {
      margin-top: auto; padding: 18px 24px 0;
      border-top: 1px solid rgba(255,255,255,0.15);
      font-size: .78rem; color: rgba(255,255,255,.45);
    }

    /* Bouton Notez-nous dans la sidebar */
    .sidebar-notez {
      display: block; margin: 0 0 6px;
      padding: 14px 24px;
      background: var(--p-base); color: #fff;
      font-family: var(--font-head); font-size: 1.05rem; font-weight: 500;
      letter-spacing: .04em; text-transform: uppercase;
      border: none; cursor: pointer; text-align: left;
      transition: background var(--trans), padding-left var(--trans);
      border-radius: 0 8px 8px 0;
    }
    .sidebar-notez:hover { background: var(--p-dark); padding-left: 32px; color: #fff; }

    /* ══ HERO ════════════════════════════════════════ */
    .hero {
      position: relative; min-height: 100vh;
      display: flex; align-items: center; justify-content: center; text-align: center;
      overflow: hidden; padding: 80px 20px 60px;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background-image: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('images/Fond ChoKInfO-3-ecrans-002.jpg');
      background-size: cover; background-position: 50% 50%;
      z-index: 0; will-change: transform;
    }
    .hero-content { position: relative; z-index: 5; max-width: 760px; width: 100%; }

    .hero h1 {
      font-family: var(--font-head); font-size: 6rem; font-weight: 700;
      color: #fff; margin: 60px auto 0; line-height: 1; letter-spacing: .02em;
      animation: fadeUp .8s .2s both;
    }
    .hero-sub {
      font-size: 1.15rem; color: rgba(255,255,255,.88); line-height: 1.7;
      margin: 30px auto 0; animation: fadeUp .8s .4s both;
    }
    .hero-cta { margin: 40px auto 60px; animation: fadeUp .8s .6s both; display: flex; align-items: center; justify-content: center; gap: 0; }

    /* Bouton Commencer avec anneau pulsant */
    .btn-wrap { position: relative; display: inline-block; }
    .btn-wrap::before, .btn-wrap::after {
      content: ''; position: absolute; inset: -9px;
      border-radius: 10px; border: 1.5px solid rgba(46,34,238,0.55);
      animation: ringPulse 2.4s ease-out infinite; pointer-events: none;
    }
    .btn-wrap::after { animation-delay: 1.2s; }
    @keyframes ringPulse {
      0% { transform: scale(1); opacity: .7; }
      100% { transform: scale(1.35); opacity: 0; }
    }

    .btn-commencer {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 16px 44px;
      background: var(--p-base); color: #fff;
      font-family: var(--font-head); font-size: 1rem; font-weight: 700;
      letter-spacing: .12em; text-transform: uppercase;
      border-radius: 4px; position: relative; overflow: hidden;
      box-shadow: 0 6px 28px rgba(46,34,238,.45);
      transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
    }
    .btn-commencer:hover { background: var(--p-dark); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(46,34,238,.6); color: #e6e6e6; }

    .btn-plus {
      display: inline-flex; align-items: center; justify-content: center;
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--p-base); color: #fff;
      font-size: 1.4rem; font-weight: 700;
      margin-left: 18px;
      box-shadow: 0 4px 18px rgba(46,34,238,.35);
      transition: background var(--trans), transform var(--trans);
    }
    .btn-plus:hover { background: var(--p-dark); transform: scale(1.12) rotate(45deg); }

    .hero-scroll {
      position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
      z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
      font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
      color: rgba(255,255,255,.5); animation: fadeUp .8s .9s both;
    }
    .hero-scroll-line {
      width: 1px; height: 40px;
      background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
      animation: scrollLine 2s ease-in-out infinite;
    }
    @keyframes scrollLine { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

    /* ══ SECTION SERVICES ════════════════════════════ */
    .section-services { background: #fff; padding: 80px 24px; }
    .sheet { max-width: 1140px; margin: 0 auto; }

    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
	.section-services, .section-recap, footer {
		position: relative;
		z-index: 5; /* Très haut pour que le logo passe bien dessous au scroll */
		background: #fff; /* Important : une couleur de fond pour masquer le logo */
	}
    /* Composition images circulaires */
    .circles-col { position: relative; height: 520px; }

    .circle-img {
      position: absolute; border-radius: 50%; overflow: hidden;
      background-size: cover; background-position: 50%;
    }
    .circle-img-1 {
      width: 340px; height: 340px; top: 0; right: 0;
      background-image: url('images/Robot-Poignee-de-main-625x625.jpg');
      border: 9px solid #b8d4ea;
      box-shadow: 0 12px 40px rgba(0,0,0,.16);
      transition: transform .4s ease, box-shadow .4s ease;
    }
    .circle-img-1:hover { transform: scale(1.04); box-shadow: 0 20px 56px rgba(46,34,238,.2); }
    .circle-img-2 {
      width: 210px; height: 210px; bottom: 80px; left: 0;
      background-image: url('images/Robot-Phone-625x625.jpg');
      border: 9px solid #b8d4ea;
      box-shadow: 0 8px 28px rgba(0,0,0,.14);
      transition: transform .4s ease;
    }
    .circle-img-2:hover { transform: scale(1.06); }
    .circle-img-3 {
      width: 270px; height: 270px; bottom: 0; right: 70px;
      background-image: url('images/Robot-Main-AI-625x625.jpg');
      border: 20px solid #fff;
      box-shadow: 0 8px 28px rgba(0,0,0,.12);
      transition: transform .4s ease;
    }
    .circle-img-3:hover { transform: scale(1.04); }

    .app-badge {
      position: absolute; top: 168px; left: -12px;
      background: #fff; border: 1.5px solid rgba(46,34,238,.18);
      border-radius: var(--radius); padding: 10px 14px;
      display: flex; align-items: center; gap: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,.11);
      text-decoration: none;
      transition: transform var(--trans), box-shadow var(--trans);
    }
    .app-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.16); }
    .app-badge img { width: 42px; border-radius: 8px; }
    .app-badge-text { font-size: .74rem; line-height: 1.4; color: var(--text-body); }
    .app-badge-text strong { display: block; font-size: .82rem; color: var(--p-base); }

    .deco-svg {
      position: absolute; top: 36px; right: -16px;
      width: 110px; height: 110px;
      color: var(--p-light); opacity: .55; pointer-events: none;
    }

    /* Colonne droite : boutons + about */
    .services-col { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }

    .btn-service {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 28px; border-radius: 4px;
      background: var(--p-base); color: #fff;
      font-family: var(--font-head); font-size: .95rem; font-weight: 500;
      letter-spacing: .08em; text-transform: uppercase;
      align-self: flex-start; width: 100%;
      box-shadow: 0 4px 16px rgba(46,34,238,.28);
      position: relative; overflow: hidden;
      transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
    }
    .btn-service::after {
      content: '→'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
      font-size: 1.1rem; opacity: 0; transition: opacity var(--trans), right var(--trans);
    }
    .btn-service:hover { background: var(--p-dark); transform: translateX(5px); box-shadow: 0 8px 24px rgba(46,34,238,.4); color: #e6e6e6; }
    .btn-service:hover::after { opacity: 1; right: 16px; }

    /* About box */
    .about-box {
      background: var(--bg-grey5); border-radius: var(--radius);
      padding: 30px 32px; margin-top: 6px;
      box-shadow: 0 2px 14px rgba(46,34,238,.06);
      transition: box-shadow var(--trans);
    }
    .about-box:hover { box-shadow: 0 8px 30px rgba(46,34,238,.12); }
    .about-title {
      font-family: var(--font-head); font-size: 3rem; font-weight: 300;
      text-transform: uppercase; color: var(--p-base); margin-bottom: 14px; letter-spacing: .03em;
    }
    .about-text { font-size: 1.05rem; line-height: 1.75; color: var(--text-body); margin-bottom: 20px; }
    .btn-ensavoir {
      display: inline-flex; align-items: center;
      padding: 14px 38px 15px; border: 2px solid var(--p-base); border-radius: 4px;
      color: var(--text-body); font-family: var(--font-head);
      font-size: 1.05rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
      transition: background var(--trans), color var(--trans), transform var(--trans);
    }
    .btn-ensavoir:hover { background: var(--p-base); color: #fff; transform: translateY(-2px); }
    .about-sub { margin-top: 18px; font-size: .92rem; color: var(--text-muted); line-height: 1.65; }
    .about-sub a { border-bottom: 1px solid var(--p-base); transition: color var(--trans); }
    .about-sub a:hover { color: var(--p-dark); }

    /* ══ SECTION sec-b685 (Réconciliation fusionnée) ═ */
    .section-recap { background: var(--bg-grey5); padding: 70px 24px; border-top: 3px solid var(--p-light); }
    .recap-inner { max-width: 700px; margin: 0 auto; text-align: center; }
    .recap-inner h2 {
      font-family: var(--font-head); font-size: 2.4rem; font-weight: 300;
      text-transform: uppercase; color: var(--p-base); margin-bottom: 16px; letter-spacing: .04em;
    }
    .recap-inner p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; }
    .recap-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
    .btn-recap {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 24px; border-radius: 4px;
      background: var(--p-base); color: #fff;
      font-family: var(--font-head); font-size: .88rem; font-weight: 500;
      letter-spacing: .08em; text-transform: uppercase;
      box-shadow: 0 4px 14px rgba(46,34,238,.28);
      transition: background var(--trans), transform var(--trans);
    }
    .btn-recap:hover { background: var(--p-dark); transform: translateY(-2px); color: #e6e6e6; }
    .btn-recap.outline {
      background: transparent; border: 2px solid var(--p-base); color: var(--p-base);
      box-shadow: none;
    }
    .btn-recap.outline:hover { background: var(--p-base); color: #fff; }

    /* ══ FOOTER ══════════════════════════════════════ */
    footer { background: var(--bg-grey80); padding: 32px 20px 20px; }
    .footer-inner { max-width: 1140px; margin: 0 auto; text-align: center; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 2px 0; justify-content: center; margin-bottom: 18px; }
    .footer-links a { color: #fff; font-size: .82rem; padding: 4px 9px; transition: color var(--trans); white-space: nowrap; }
    .footer-links a:hover { color: var(--p-hover); }
    .footer-links span { color: rgba(255,255,255,.3); line-height: 1.8; font-size: .8rem; padding: 0 2px; }
    .footer-up {
      display: inline-block; margin: 8px auto 0;
      padding: 8px 32px; background: var(--p-base); color: #fff;
      border-radius: 4px; font-family: var(--font-head);
      font-size: .85rem; font-weight: 600; letter-spacing: .1em;
      transition: background var(--trans), transform var(--trans);
    }
    .footer-up:hover { background: var(--p-dark); transform: translateY(-2px); }
    .footer-credit { margin-top: 14px; font-size: .78rem; color: rgba(255,255,255,.45); }
    .footer-credit a { color: rgba(255,255,255,.65); transition: color var(--trans); }
    .footer-credit a:hover { color: #fff; }

    /* ══ SCROLL REVEAL ═══════════════════════════════ */
    .reveal        { opacity: 0; transform: translateY(22px);  transition: opacity .65s ease, transform .65s ease; }
    .reveal-left   { opacity: 0; transform: translateX(-22px); transition: opacity .65s ease, transform .65s ease; }
    .reveal-right  { opacity: 0; transform: translateX(22px);  transition: opacity .65s ease, transform .65s ease; }
    .reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

    /* ══ RESPONSIVE MOBILE (<768px) ══════════════════ */
    @media (max-width: 767px) {
      /* Navbar */
      .navbar         { height: 56px; padding: 0 14px; }
      .navbar-logo img { width: 32px; height: 32px; }
      .navbar-logo span { font-size: 1rem; }
      .portail-wrap   { margin: 0 10px; }
      #portail-text   { font-size: .72rem; letter-spacing: .14em; }

      /* Hero */
      .hero           { padding: 70px 16px 48px; min-height: 100svh; }
      .hero h1        { font-size: 3rem; margin-top: 32px; }
      .hero-sub       { font-size: .95rem; }
      .hero-cta       { margin: 28px auto 40px; flex-direction: column; align-items: center; gap: 12px; }
      .btn-commencer  { padding: 14px 36px; font-size: .92rem; }
      .btn-plus       { margin-left: 0; width: 40px; height: 40px; }

      /* Layout 1 colonne */
      .two-col        { grid-template-columns: 1fr; gap: 32px; }

      /* Images circulaires adaptées mobile */
      .circles-col    { height: 290px; }
      .circle-img-1   { width: 180px; height: 180px; right: 0; top: 0; border-width: 6px; }
      .circle-img-2   { width: 120px; height: 120px; left: 0; bottom: 20px; border-width: 6px; }
      .circle-img-3   { width: 150px; height: 150px; right: 40px; bottom: 0; border-width: 10px; }
      .app-badge      { top: 104px; left: -6px; padding: 8px 10px; }
      .app-badge img  { width: 34px; }
      .deco-svg       { display: none; }

      /* Boutons services full-width */
      .services-col   { gap: 10px; padding-top: 0; }
      .btn-service    { font-size: .88rem; padding: 12px 18px; justify-content: center; }
      .btn-service:hover { transform: translateY(-2px); }

      /* About */
      .about-box      { padding: 20px 18px; }
      .about-title    { font-size: 2rem; }
      .about-text     { font-size: .93rem; }
      .btn-ensavoir   { font-size: .88rem; padding: 12px 22px; }

      /* Récap */
      .section-recap  { padding: 50px 16px; }
      .recap-inner h2 { font-size: 1.9rem; }
      .recap-btns     { gap: 10px; }
      .btn-recap      { font-size: .82rem; padding: 11px 18px; }

      /* Footer */
      footer          { padding: 22px 12px 16px; }
      .footer-links a { font-size: .76rem; padding: 3px 6px; }
    }

    @media (max-width: 380px) {
      .hero h1        { font-size: 2.4rem; }
      .sidebar        { width: 100%; }
      .circle-img-1   { width: 155px; height: 155px; }
      .circle-img-3   { width: 130px; height: 130px; }
    }

    /* ══════════════════════════════════════════════════
       DARK MODE — html.dark
       ══════════════════════════════════════════════════ */

    html.dark {
      --bg-body:    #121222;
      --bg-grey5:   #1c1c35;
      --bg-grey80:  #0a0a18;
      --text-body:  #ddddf5;
      --text-muted: #9898c0;
      --p-light:    rgba(46,34,238,0.18);
      --p-hover:    #9b96f7;
    }

    /* Navbar */
    html.dark .navbar {
      background: rgba(18,18,34,0.96);
      border-bottom-color: rgba(46,34,238,0.5);
    }
    html.dark .navbar-logo span { color: #c5c0ff; }
    html.dark #portail-text     { color: #9b96f7; }
    html.dark #portail-line     { background: linear-gradient(90deg, #9b96f7, transparent); }

    /* Section services (fond blanc) */
    html.dark .section-services { background: #121222; }

    /* About box */
    html.dark .about-box   { background: #1c1c35; }
    html.dark .about-text  { color: #ddddf5; }
    html.dark .about-sub   { color: #9898c0; }

    /* App badge */
    html.dark .app-badge            { background: #1c1c35; border-color: rgba(46,34,238,.35); }
    html.dark .app-badge-text       { color: #ddddf5; }
    html.dark .app-badge-text strong { color: #9b96f7; }

    /* Section recap */
    html.dark .section-recap  { background: #191930; border-top-color: rgba(46,34,238,.3); }
    html.dark .recap-inner h2 { color: #c5c0ff; }
    html.dark .recap-inner p  { color: #9898c0; }
    html.dark .btn-recap.outline { border-color: #9b96f7; color: #9b96f7; }
    html.dark .btn-recap.outline:hover { background: var(--p-base); color: #fff; }

    /* Footer */
    html.dark footer { background: #0a0a18; }

    /* Transitions douces */
    html, body,
    .navbar, .section-services, .section-recap,
    .about-box, .app-badge, footer {
      transition: background-color 0.35s ease, color 0.25s ease, border-color 0.35s ease;
    }
