/* =========================
   HEADER – SCHÉMA VALIDÉ
   ========================= */

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

#hero {
    scroll-margin-top: 80px; 
}

#references,
#contact {
    scroll-margin-top: 80px;
}

body {
    padding-top: 55px;
}

.main-header {
    background-color: #cbdcf7;
    padding: 0.3rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header .navbar-brand img {
    height: 42px;
    width: auto;
}

/* Logo glow subtil - incite au clic */
.logo-glow {
    position: relative;
    transition: all 0.3s ease;
}

.logo-glow img {
    animation: subtle-glow 3s ease-in-out infinite;
}

.logo-glow:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

@keyframes subtle-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 0px transparent);
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(220, 112, 75, 0.8));
    }
}

.main-header .nav-link {
    color: #1F365B !important;
    font-weight: 600;
    margin-right: 1.2rem;
    font-size: 0.9rem;
}

.main-header .nav-link:hover {
    color: #4a9eff !important;
}

.main-header .btn-demo {
    background-color: #4a9eff;
    border-color: #4a9eff;
    color: white;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.85rem;
}

.main-header .btn-demo:hover {
    background-color: #3a7fd9;
    border-color: #3a7fd9;
}

.navbar-toggler {
    border-color: #1F365B !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 54, 91, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================
   RESPONSIVE – MOBILE
   ========================= */

@media (max-width: 768px) {
    .main-header .nav-link {
        margin-right: 0;
        padding: 0.5rem 0;
    }
    
    #navbarNav {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .main-header .btn-demo {
        width: 100%;
        margin-top: 1rem;
    }
}

/* =========================
   HERO – STRUCTURE
   ========================= */

.hero-section {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0; 
}

/* Container */
.hero-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

/* Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* Texte */
.hero-text {
    text-align: left;
}

.display-3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.hero-title-main {
    color: #1F365B;
}

.soustitres {
    color: #DC704B;
}

.hero-description {
    max-width: 520px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #040b16;
    opacity: 0.9;
}

/* Image */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-app-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .hero-description {
        margin: 0 auto;
    }
}

/* ===============================
   SECTION GLOBALE (comme les autres)
   =============================== */

.section {
    padding: clamp(2rem, 8vh, 5rem) 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

/* ===============================
   ACTIV / ENGAG – 3 COLONNES
   =============================== */

.activ-engag {
    background: linear-gradient(135deg, #0f172a 0%, #193c74 100%); 
}

/* GRID 1 - 1 - 1 */
.activ-engag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}


.activ-title .highlight {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    color: #DC704B;
}

.activ-text {
    max-width: 600px;
    font-size: larger;
    color: #fafbfd;
    line-height: 1.65;
}

/* IMAGE */
.activ-col-image {
    display: flex;
    justify-content: center;
}

.activ-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ENGAGEMENT */
.activ-col-right {
    background: transparent;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.engag-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: #2ecc71;
    font-weight: 800;
    margin-bottom: 1.6rem;
}

.engag-list {
    list-style: none;
    color: rgb(248, 231, 231);
    padding: 0;
    margin-bottom: 1.4rem;
}

.engag-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.engag-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2ecc71;
    
}

.engag-note {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 700;
    color: #DC704B;
    
}

/* ===============================
   RESPONSIVE - TABLET (768px - 1024px)
   =============================== */

@media (max-width: 1024px) and (min-width: 768px) {
    .header-container {
        padding: 0.5rem 1.5rem;
    }
}

/* ===============================
   RESPONSIVE - MOBILE (< 768px)
   =============================== */

@media (max-width: 767px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        padding: 0.5rem 1rem;
    }

    .header-logo {
        grid-column: 1;
    }

    .navbar-toggler {
        grid-column: 3;
        justify-self: end;
    }

    #navbarNav {
        grid-column: 1 / -1;
        justify-self: stretch;
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem;
        background: #e8f0fc;
        border-radius: 8px;
    }

    #navbarNav .nav-link {
        color: #1F365B !important;
    }



    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .header-logo img {
        height: 35px;
    }

    .nav-demo {
        margin-left: 0;
        width: 100%;
    }

    .btn-demo {
        width: 100%;
    }

    .activ-text {
        margin: 0 auto;
    }

    .activ-col-image {
        margin: 2rem 0;
    }

    .hero-app-img {
        width: 100%;
        max-width: 100%;
    }

    .activ-image {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}


/* ================= POURQUOI I-TRACKER ================= */

.why-section {
    background: #ffffff;
    padding: 4rem 0;
}

.why-header {
    text-align: center;
    margin-bottom: 2rem;
}

.why-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1F365B;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.why-divider {
    display: inline-block;
    width: 80px;
    height: 2px;
    background: #DC704B;
    margin-top: 1rem;
    position: relative;
}


/* Grille - 3 blocs */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Cartes */
.why-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Icône */
.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: #193c74;
    color: #ffffff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Titres */
.why-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #DC704B;
    margin-bottom: 1rem;
}

/* Texte */
.why-card p {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-section {
        padding: 4rem 0;
    }
}

/* ===============================
   NOS SPECIFICATIONS
   =============================== */

.specs-section {
    padding: 2rem 0;
    background: #1F365B;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* IMAGE */
.specs-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* CONTENU */
.specs-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #bad0f1;
    margin-bottom: 2.5rem;
}

/* ÉTAPES */
.spec-step {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.spec-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.spec-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #c5c0f7;
}

.spec-step p {
    margin: 0;
    font-size: 0.95rem;
    font-style: oblique;
    line-height: 1.6;
    color: #bec2ca;
    
}

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

@media (max-width: 991px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .specs-title {
        text-align: center;
    }
}


/* ===============================
   DASHBOARD – 2 COLONNES
   =============================== */

.dashboard-section {
    background: #ffffff;
}

/* GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    justify-items: center;
}

/* TEXTE */
.dashboard-content {
    width: 100%;
}

.dashboard-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #d63542;
    margin-bottom: 1.2rem;
}

.dashboard-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #06090e;
    margin-bottom: 1.8rem;
}

/* LISTE */
.dashboard-list {
    list-style: none;
    font-style: oblique;
    color: #6174e0;
    font-weight: 500;
    padding: 0;
}

.dashboard-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.dashboard-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2ecc71;
    
}

/* IMAGE */
.dashboard-image-wrapper {
    display: flex;
    justify-content: center;
}

.dashboard-image {
    width: 100%;
    max-width: 520px;
    height: auto;
}

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

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

    .dashboard-content {
        margin: 0 auto;
        text-align: center;
    }

    .dashboard-list {
        display: inline-block;
        text-align: left;
    }

    .dashboard-image-wrapper {
        margin-top: 2.5rem;
    }
}


/* ===============================
   DÉTAILS SERVICES
   =============================== */

.services-section {
  background: #193c74;
  color: #DC704B;
  padding: 4rem 1rem;
}

.section-container {
  max-width: 1300px;
  margin: auto;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title {
  font-size: clamp(2.8rem,6vw,4.6rem);
  font-weight: 900;
}

.services-subtitle {
  font-size: 1.6rem;
  color: #93c5fd;
  font-weight: 600;
}

.services-intro {
  max-width: 900px;
  margin: 1rem auto 0;
  color: #e0e7ff;
}

/* CARTES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.service-card {
  background: white;
  color: #1e293b;
  padding: 2.5rem 1.8rem;
  border-radius: 1.2rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  transition: .3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

/* DÉTAILS */
.service-details {
  display: none;
  background: #111827;
  border-radius: 1.2rem;
  margin: 3rem auto 0;
  padding: 3rem;
  max-width: 1000px;
}

.service-details h3 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.details-intro {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.service-details ul {
  max-width: 700px;
  margin: auto;
  color: #cbd5e1;
}

.service-details li {
  margin-bottom: .8rem;
}

.service-details img {
  width: 100%;
  margin-top: 2rem;
  border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}



/* ===============================
   NOS RÉFÉRENCES
   =============================== */

.references {
    padding: 4rem 1rem;
    text-align: center;
    background: transparent;
}

.references-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #DC704B;
    margin-bottom: 0.5rem;
}

.references-subtitle {
    padding: 2%;
    font-size: 1.4rem;
    font-style: oblique;
    font-weight: bolder;
    color: #5fb3f3;
    margin-bottom: 2.5rem;
}
html {
    scroll-behavior: smooth;
}

/* GRILLE LOGOS */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.logos-grid img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform .3s ease, opacity .3s ease;
}

.logos-grid img:hover {
    transform: scale(1.08);
    opacity: 1;
}


/* ===============================
   CONTACT
   =============================== */

.contact-section {
    background: #26282c;
    padding: 3rem 1rem 8rem;
    color: #DC704B;
}

.contact-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.contact-header h2 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-style: oblique;
    color: #dbeafe;
    line-height: 1.5;
}

/* GRID */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 100%, 420px), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

/* CARTES */
.contact-card {
    background: transparent;
    border-radius: 1.2rem;
    padding: 2.5rem;
    color: #d9e1ee;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* INFOS */
.contact-info h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: #657bc5;
    text-align: center;
}

.contact-info p {
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.contact-links a {
    color: #a8a9dd;
    font-weight: 600;
    text-decoration: none;
}

/* FORM */
.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: #657bc5;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1.05rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 1rem;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(59,130,246,0.35);
}

.contact-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #9cb6db;
    text-align: center;
}

/* ===============================
   FLOATING FOOTER BAR
   =============================== */

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid #222;
    z-index: 9998;
}

.floating-footer-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    font-size: 0.95rem;
    color: #cbd5e1;
}

.floating-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

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

.footer-sep {
    opacity: 0.4;
}



/* ===============================
   BACK TO TOP
   =============================== */

#backToTop {
    position: fixed;
    bottom: 90px;      /* au-dessus du footer */
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #60a5fa;
    color: #fff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
    background: #3b82f6;
}



/* ===============================
   HEADER - DEMO BUTTON
   =============================== */

.nav-demo {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.btn-demo {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(59,130,246,0.35);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(59,130,246,0.45);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.btn-demo:active {
    transform: translateY(0);
}
