@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); }
/*
  InnovaDEV — feuille de style
  Basée sur la mise en page "Infinite Loop" (Tooplate 2117)
  Typographie conservée : Raleway
*/


:root {
  --bleu: #0F2B5B;        /* couleur principale */
  --bleu-2: #1A3F7F;      /* survol */
  --accent: #1E9BFF;      /* bleu du logo */
  --blanc: #FFFFFF;
  --fond: #F5F7FA;
  --texte: #202938;
  --texte-doux: #5A6475;
}

body {
  font-family: "Raleway", sans-serif;
  font-size: 1.2em;
  color: var(--texte-doux);
  background: var(--blanc);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  transition: all 0.3s ease;
  color: var(--accent);
}

a:hover,
a:focus {
  text-decoration: none;
  color: var(--bleu);
}

a:focus { outline: none; }

.btn { padding: 8px 32px; }

blockquote {
  font-size: 0.86em;
  line-height: 1.8em;
}

p { line-height: 1.9; }

.tm-section-pad-top {
  padding-top: 80px;
  padding-bottom: 40px;
}

.tm-content-box {
  padding-top: 20px;
  padding-bottom: 40px;
}

.tm-text-primary { color: var(--bleu); }

.tm-font-big { font-size: 1.25rem; }

.tm-btn-primary {
  display: inline-block;
  color: white;
  background-color: var(--bleu);
  padding: 14px 30px;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: white;
  background-color: var(--accent);
}

.tm-btn-ghost {
  display: inline-block;
  color: white;
  border: 1px solid white;
  padding: 13px 30px;
  margin-left: 10px;
}

.tm-btn-ghost:hover,
.tm-btn-ghost:focus {
  color: var(--bleu);
  background-color: white;
}

/* ---------- Navbar ---------- */

.tm-navbar {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding-top: 14px;
  padding-bottom: 14px;
}

.tm-navbar.scroll {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  padding-top: 8px;
  padding-bottom: 8px;
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand .logo-couleur { display: none; }
.tm-navbar.scroll .navbar-brand .logo-blanc { display: none; }
.tm-navbar.scroll .navbar-brand .logo-couleur { display: block; height: 36px; }

.nav-item { list-style: none; }

.tm-nav-link { color: white; }

.tm-navbar.scroll .tm-nav-link { color: var(--bleu); }

.tm-navbar.scroll .tm-nav-link:hover,
.tm-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover,
.tm-nav-link.current {
  color: #FFF;
  background-color: var(--bleu);
}

.navbar-toggler {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
}

.navbar-toggler-icon {
  color: white;
  padding-top: 6px;
}

.tm-navbar.scroll .navbar-toggler { border: 1px solid var(--texte-doux); }
.tm-navbar.scroll .navbar-toggler-icon { color: var(--texte-doux); }

/* ---------- Hero ---------- */

#accueil {
  background-color: var(--bleu);
  background-image: url(../img/hero-equipe.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0px;
  height: 100vh;
  min-height: 520px;
  position: relative;
}

#accueil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 91, 0.78) 0%, rgba(15, 43, 91, 0.55) 55%, rgba(15, 43, 91, 0.85) 100%);
}

.tm-hero-text-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 0 16px;
}

.tm-hero-text-container-inner { margin-top: -60px; }

.tm-hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  color: #BFE2FF;
  margin-bottom: 14px;
}

.tm-hero-title {
  font-size: 3.5rem;
  text-shadow: 2px 2px 2px #0a1a36;
}

.tm-hero-title span { color: var(--accent); }

.tm-hero-subtitle {
  text-shadow: 2px 2px 2px #0a1a36;
  max-width: 720px;
  margin: 0 auto 30px auto;
}

.tm-hero-actions .tm-btn-primary { background-color: var(--accent); }
.tm-hero-actions .tm-btn-primary:hover { background-color: white; color: var(--bleu); }

.tm-intro-next {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
}

@media (max-height: 600px) {
  .tm-hero-text-container-inner { margin-top: 20px; }
  .tm-intro-next { bottom: 20px; }
}

.tm-down-arrow-link { display: block; }

.tm-down-arrow {
  color: #FFF;
  cursor: pointer;
  background: var(--bleu);
  padding: 15px 40px;
  transition: all 0.3s ease;
}

.tm-down-arrow:hover,
.tm-down-arrow:focus {
  color: #FFF;
  background: var(--accent);
  padding: 20px 50px;
}

/* ---------- Services ---------- */

.tm-section-title {
  font-size: 2.6rem;
  font-weight: normal;
}

.tm-intro-text { font-size: 1.2rem; }

.tm-icon {
  display: block;
  color: var(--accent);
}

.tm-continue { padding: 20px 0 30px 0; }

.tm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}

.tm-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.9;
}

.tm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- À propos (parallax) ---------- */

#apropos {
  color: white;
  background-color: var(--bleu);
  background-image: url(../img/dakar-nuit.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  padding-bottom: 20px;
}

@media (max-width: 991px) {
  #apropos { background-image: url(../img/dakar-nuit.jpg); }
}

.tm-testimonials-content {
  position: relative;
  z-index: 100;
}

.tm-bg-overlay {
  width: 100%;
  height: 100%;
  background: rgba(15, 43, 91, 0.45);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.tm-mv {
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.tm-mv-item {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin-bottom: 30px;
}

.tm-mv-item h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.tm-mv-item p {
  font-size: 1.05rem;
  margin: 0;
}

.tm-values-title {
  font-size: 1.6rem;
  font-weight: normal;
  margin-top: 40px;
}

.tm-testimonials-carousel {
  max-width: 1050px;
  margin: 0 auto;
}

.tm-testimonial-item {
  max-width: 290px;
  margin-left: 35px;
  margin-right: 35px;
  text-align: center;
}

.tm-value-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 43, 91, 0.55);
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
}

.tm-value-icon i { color: white; }

.tm-testimonial-item blockquote { text-align: left; }

.tm-testimonial-item figcaption {
  text-align: right;
  font-style: italic;
  font-size: 1.1rem;
}

/* ---------- Pour qui (galerie) ---------- */

#clients { background: var(--fond); }

.tm-section-desc {
  max-width: 650px;
  width: 100%;
  font-size: 0.9rem;
}

.tm-gallery-container {
  padding-top: 70px;
  padding-bottom: 120px;
}

.tm-gallery-item { margin: 0 15px; }

.slick-dots { bottom: -65px; }

.slick-dots li { margin: 0 13px; }

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--accent);
}

.tm-testimonials-carousel .slick-dots li button:before {
  color: white;
  opacity: 0.5;
}

.tm-testimonials-carousel .slick-dots li button:hover:before,
.tm-testimonials-carousel .slick-dots li button:focus:before,
.tm-testimonials-carousel .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

.slick-dots li button:before { font-size: 18px; }

/* Effet de survol (Honey) */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: var(--bleu);
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after { pointer-events: none; }

.grid figure figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.9em;
  font-weight: 300;
}

.grid figure h2 span { font-weight: 600; }

.grid figure h2,
.grid figure p { margin: 0; }

figure.effect-honey {
  background: var(--bleu);
  max-width: 220px;
}

figure.effect-honey img {
  opacity: 1;
  transition: opacity 0.35s;
}

figure.effect-honey:hover img { opacity: 0.35; }

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--accent);
  content: "";
  transform: translate3d(0, 10px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.5em;
  width: 100%;
  text-align: left;
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 { transition: transform 0.35s; }

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Libellé toujours visible (mobile / sans survol) */
.tm-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(180deg, rgba(15, 43, 91, 0.85), rgba(15, 43, 91, 0));
  transition: opacity 0.35s;
}

figure.effect-honey:hover .tm-tile-label { opacity: 0; }

.tm-container-gallery { padding-top: 30px; }

/* ---------- Contact ---------- */

#contact {
  color: white;
  background-color: #08183A;
  background-image: url(../img/dakar-nuit.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 900px;
  position: relative;
  padding-bottom: 140px;
  padding-top: 100px;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 58, 0.55);
}

.tm-container-contact { position: relative; z-index: 2; }

.contact-item {
  margin-left: 20px;
  margin-bottom: 45px;
}

.item-link {
  display: flex;
  align-items: center;
}

.item-link i,
.item-link span {
  color: white;
  transition: all 0.3s ease;
}

.item-link i { width: 40px; text-align: center; }

.item-link:hover i,
.item-link:hover span { color: var(--accent); }

.tm-input {
  margin: 0 0 20px 0;
  width: 90%;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid white;
  background: transparent;
  color: white;
}

select.tm-input option { color: var(--texte); }

.tm-btn-submit {
  font-size: 0.9em;
  color: #fff;
  background-color: var(--accent);
  width: 50%;
  margin-bottom: 60px;
}

.tm-btn-submit:hover {
  color: var(--bleu);
  background-color: white;
}

::placeholder { color: white; opacity: 1; }
:-ms-input-placeholder { color: white; }
::-ms-input-placeholder { color: white; }

.tm-footer {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  padding: 0 15px;
  z-index: 2;
}

.tm-footer a { color: #fff; }
.tm-footer a:hover { color: #9CF; }

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .tm-intro-text-container { padding-left: 0px; }

  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (min-width: 1200px) {
  .container { max-width: 1275px; }
  .tm-container-gallery { max-width: 1290px; }
  .tm-container-contact { max-width: 1063px; }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    padding-left: 15px;
    padding-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-icon { text-align: left !important; padding-left: 15px; max-width: 600px; margin: 0 auto; }

  .tm-btn-submit {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .navbar-nav {
    max-width: 220px;
    margin-left: auto;
    text-align: right;
  }

  .navbar-collapse {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 3px;
    margin-top: 10px;
  }

  .navbar-collapse .nav-link {
    color: var(--texte-doux);
    padding-right: 20px;
  }

  .navbar-brand img { height: 32px; }

  .tm-hero-title { font-size: 2.6rem; }
  .tm-hero-subtitle { font-size: 1.05rem; }
  .tm-btn-ghost { margin-left: 0; margin-top: 12px; }
  .tm-section-title { font-size: 2.1rem; }
  .tm-input, .tm-btn-submit { width: 100%; }
  .contact-item { margin-left: 0; margin-bottom: 30px; }
  .contact-item span { font-size: 1rem; word-break: break-word; }
}

@media (max-width: 480px) {
  .tm-gallery-container {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-gallery-container-2 { max-width: 350px; }

  .slick-dots li { margin: 0 8px; }

  .tm-gallery-item { margin: 0; }
}

/* =========================================================
   Pages internes : Portfolio & Équipe
   ========================================================= */

.tm-page-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  background-color: var(--bleu);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0px;
}

.tm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 43, 91, 0.82) 0%, rgba(15, 43, 91, 0.6) 60%, rgba(15, 43, 91, 0.9) 100%);
}

.tm-page-hero .tm-hero-text-container-inner { margin-top: 40px; }

#hero-portfolio { background-image: url(../img/dakar-nuit.jpg); }
#hero-equipe { background-image: url(../img/hero-equipe.jpg); }

.tm-breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #BFE2FF;
}
.tm-breadcrumb a { color: white; }
.tm-breadcrumb a:hover { color: var(--accent); }

.tm-maquette-note {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--bleu);
  background: #E3F1FF;
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin-bottom: 30px;
}

/* ---------- Filtres ---------- */
.tm-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 50px 0;
}

.tm-filter {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--bleu);
  background: transparent;
  border: 1px solid var(--bleu);
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tm-filter:hover,
.tm-filter.active {
  color: white;
  background: var(--bleu);
}

.tm-filter:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Cartes projet ---------- */
.tm-project {
  background: white;
  margin-bottom: 30px;
  border: 1px solid #E4E8EF;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}

.tm-project:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 43, 91, 0.14);
}

.tm-project-thumb {
  position: relative;
  background: var(--bleu);
  padding: 22px 22px 0 22px;
  overflow: hidden;
}

.tm-project-thumb.v2 { background: #14366F; }
.tm-project-thumb.v3 { background: #0B2149; }

/* Mini-navigateur (maquette) */
.tm-browser {
  background: white;
  border-radius: 6px 6px 0 0;
  height: 190px;
  overflow: hidden;
  transition: transform 0.35s ease;
}
.tm-project:hover .tm-browser { transform: translateY(-6px); }

.tm-browser-bar {
  height: 22px;
  background: #E9EDF3;
  display: flex;
  align-items: center;
  padding-left: 10px;
  gap: 5px;
}
.tm-browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #B8C2D3; }

.tm-browser-body { padding: 12px; }
.wf { background: #E3E9F2; margin-bottom: 8px; }
.wf.nav { height: 8px; width: 100%; }
.wf.hero { height: 56px; background: linear-gradient(90deg, var(--bleu), var(--accent)); }
.wf.hero.alt { background: linear-gradient(90deg, #1A3F7F, #6CC0FF); }
.wf.line { height: 7px; }
.wf.w60 { width: 60%; } .wf.w40 { width: 40%; } .wf.w80 { width: 80%; }
.wf-row { display: flex; gap: 8px; }
.wf-row .wf { flex: 1; height: 44px; }
.wf.acc { background: #CDE8FF; }
.wf-dash { display: flex; gap: 8px; }
.wf-side { width: 26%; height: 140px; background: var(--bleu); }
.wf-main { flex: 1; }
.wf-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-bottom: 8px; }
.wf-bars i { flex: 1; background: var(--accent); display: block; }
.wf-phone { width: 86px; height: 150px; margin: 4px auto 0; border: 6px solid var(--bleu); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 8px 6px; }

.tm-project-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 4px 10px;
}

.tm-project-body {
  padding: 24px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tm-project-cat {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.tm-project h3 {
  font-size: 1.35rem;
  color: var(--bleu);
  font-weight: 500;
  margin-bottom: 10px;
}

.tm-project p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tm-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tm-techs span {
  font-size: 0.75rem;
  color: var(--bleu);
  background: var(--fond);
  border: 1px solid #E4E8EF;
  padding: 3px 10px;
}

.tm-project-link {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--bleu);
  font-weight: 500;
}
.tm-project-link i { transition: transform 0.3s ease; margin-left: 6px; }
.tm-project-link:hover i { transform: translateX(5px); }

.tm-project-col.is-hidden { display: none; }

/* ---------- Bande parallax (CTA / processus) ---------- */
.tm-band {
  color: white;
  background-color: var(--bleu);
  background-image: url(../img/dakar-nuit.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 90px 0 70px 0;
}

.tm-band.equipe-bg { background-image: url(../img/hero-equipe.jpg); }

.tm-band .tm-bg-overlay { background: rgba(15, 43, 91, 0.72); }
.tm-band .container { position: relative; z-index: 2; }

.tm-step {
  text-align: center;
  padding: 0 10px 30px 10px;
}

.tm-step-num {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  font-size: 1.8rem;
  font-weight: 300;
}

.tm-step h3 { font-size: 1.3rem; font-weight: 500; }
.tm-step p { font-size: 0.95rem; margin: 0; }

/* ---------- Équipe ---------- */
.tm-member {
  text-align: center;
  background: white;
  border: 1px solid #E4E8EF;
  padding: 40px 30px 34px 30px;
  margin-bottom: 30px;
  height: calc(100% - 30px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.tm-member::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.tm-member:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 43, 91, 0.14); }
.tm-member:hover::before { transform: scaleX(1); }

.tm-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 26px auto;
  background: linear-gradient(135deg, var(--bleu), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 2px;
  position: relative;
  border: 6px solid var(--fond);
  box-shadow: 0 0 0 1px #E4E8EF;
}

.tm-avatar small {
  position: absolute;
  bottom: -6px;
  right: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid #E4E8EF;
}

.tm-member h3 { font-size: 1.5rem; color: var(--bleu); font-weight: 500; margin-bottom: 4px; }

.tm-member-role {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.tm-member p { font-size: 0.95rem; line-height: 1.75; }

.tm-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 22px 0;
}
.tm-skills span {
  font-size: 0.75rem;
  color: var(--bleu);
  background: var(--fond);
  border: 1px solid #E4E8EF;
  padding: 3px 10px;
}

.tm-socials { display: flex; justify-content: center; gap: 10px; }
.tm-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu);
  border: 1px solid #D5DCE6;
  font-size: 1rem;
}
.tm-socials a:hover { color: white; background: var(--bleu); border-color: var(--bleu); }

.tm-fill { color: #9AA6B8; font-style: italic; }

/* ---------- Bande contact courte ---------- */
.tm-contact-strip {
  color: white;
  background: #08183A;
  padding: 60px 0 30px 0;
}
.tm-contact-strip .contact-item { margin: 0 0 30px 0; }
.tm-contact-strip .item-link span { font-size: 1rem; }
.tm-contact-strip .tm-footer { position: static; margin-top: 30px; opacity: 0.85; }

@media (max-width: 767px) {
  .tm-page-hero { height: auto; min-height: 380px; padding: 120px 0 60px 0; }
  .tm-page-hero .tm-hero-text-container-inner { margin-top: 0; }
  .tm-filter { padding: 7px 14px; font-size: 0.85rem; }
}

/* Lien actif bien visible sur le héro sombre */
.tm-navbar:not(.scroll) .tm-nav-link.current { background-color: var(--accent); }

/* Correctifs de finition */
.tm-navbar { top: 0; left: 0; }
.navbar-collapse .tm-nav-link.current,
.navbar-collapse .tm-nav-link:hover { color: #FFF; }
a[href="#"] { cursor: default; }
.tm-project-link[href="#"]::after { content: " (bientôt)"; font-size: 0.8rem; color: #9AA6B8; font-weight: 400; }
@media (max-width: 480px) {
  .tm-hero-kicker { letter-spacing: 2px; font-size: 0.75rem; }
}

/* =========================================================
   Pages Services, À propos, Contact
   ========================================================= */

#hero-services { background-image: url(../img/hero-equipe.jpg); }
#hero-apropos  { background-image: url(../img/hero-equipe.jpg); background-position: center 30%; }
#hero-contact  { background-image: url(../img/dakar-nuit.jpg); }

.tm-bg-light { background: var(--fond); }

@media (min-width: 768px) and (max-width: 1199px) {
  .navbar-expand-md .navbar-nav .nav-link { padding-left: 12px; padding-right: 12px; font-size: 1rem; }
  .navbar-brand img { height: 32px; }
}

/* Raccourcis */
.tm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 20px 0; }
.tm-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; color: var(--bleu);
  border: 1px solid #D5DCE6; background: white; padding: 8px 18px;
}
.tm-chip i { color: var(--accent); }
.tm-chip:hover { color: white; background: var(--bleu); border-color: var(--bleu); }
.tm-chip:hover i { color: white; }

/* Bloc service détaillé */
.tm-service { padding: 80px 0; border-top: 1px solid #E4E8EF; }
.tm-service-num {
  font-size: 4.5rem; font-weight: 100; line-height: 1;
  color: var(--accent); margin-bottom: 10px;
}
.tm-service h2 { font-size: 2.2rem; color: var(--bleu); font-weight: normal; margin-bottom: 18px; }
.tm-service .lead-text { font-size: 1.15rem; margin-bottom: 26px; }
.tm-service .tm-icon { margin-bottom: 18px; }

.tm-box {
  background: white;
  border: 1px solid #E4E8EF;
  padding: 30px 32px;
  margin-bottom: 24px;
}
.tm-bg-light .tm-box { background: white; }
.tm-service:not(.tm-bg-light) .tm-box { background: var(--fond); }
.tm-box h3 {
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.tm-box p { font-size: 1rem; margin: 0; }

.tm-check { list-style: none; padding: 0; margin: 0; }
.tm-check li { position: relative; padding-left: 30px; line-height: 1.8; font-size: 1.02rem; margin-bottom: 6px; color: var(--texte); }
.tm-check li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.9rem;
}
.tm-band .tm-check li { color: white; }

/* FAQ */
.tm-faq { max-width: 860px; margin: 0 auto; }
.tm-faq details {
  background: white; border: 1px solid #E4E8EF; margin-bottom: 12px;
  transition: box-shadow 0.3s ease;
}
.tm-faq details[open] { box-shadow: 0 12px 30px rgba(15, 43, 91, 0.10); }
.tm-faq summary {
  cursor: pointer; list-style: none; padding: 20px 60px 20px 26px;
  font-size: 1.1rem; color: var(--bleu); position: relative; font-weight: 500;
}
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--bleu); color: white; font-size: 1.2rem; transition: background 0.3s ease;
}
.tm-faq details[open] summary::after { content: "–"; background: var(--accent); }
.tm-faq details p { padding: 0 26px 22px 26px; margin: 0; font-size: 1rem; }

/* À propos */
.tm-about-img { position: relative; margin: 10px 0 30px 0; }
.tm-about-img img { width: 100%; display: block; position: relative; z-index: 2; }
.tm-about-img::before {
  content: ""; position: absolute; z-index: 1;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 3px solid var(--accent);
}
.tm-about-badge {
  position: absolute; z-index: 3; left: -14px; bottom: 30px;
  background: var(--bleu); color: white; padding: 16px 22px; font-size: 0.95rem;
}
.tm-about-badge strong { display: block; font-size: 1.8rem; font-weight: 300; line-height: 1.1; }

.tm-mv-card {
  background: white; border: 1px solid #E4E8EF; padding: 40px 36px; height: calc(100% - 30px);
  margin-bottom: 30px; position: relative; overflow: hidden;
}
.tm-mv-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--fond);
}
.tm-mv-card i { color: var(--accent); position: relative; z-index: 2; }
.tm-mv-card h3 { font-size: 1.8rem; color: var(--bleu); font-weight: normal; margin: 18px 0 12px 0; }
.tm-mv-card p { font-size: 1.08rem; margin: 0; }

.tm-value {
  text-align: center; padding: 34px 24px; margin-bottom: 30px;
  border: 1px solid #E4E8EF; background: white; height: calc(100% - 30px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tm-value:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 43, 91, 0.12); }
.tm-value .ic {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px auto;
  background: var(--fond); color: var(--bleu);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  transition: all 0.35s ease;
}
.tm-value:hover .ic { background: var(--bleu); color: white; }
.tm-value h3 { font-size: 1.3rem; color: var(--bleu); font-weight: 500; }
.tm-value p { font-size: 0.95rem; margin: 0; }

.tm-why { display: flex; gap: 20px; margin-bottom: 36px; }
.tm-why i { color: var(--accent); width: 44px; flex-shrink: 0; text-align: center; padding-top: 4px; }
.tm-why h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.tm-why p { font-size: 1rem; margin: 0; }

.tm-target {
  display: flex; align-items: center; gap: 16px; background: white;
  border: 1px solid #E4E8EF; padding: 20px 22px; margin-bottom: 20px;
  font-size: 1.05rem; color: var(--bleu);
}
.tm-target i { color: var(--accent); width: 34px; text-align: center; font-size: 1.4rem; }

/* Contact */
.tm-contact-card {
  display: block; text-align: center; background: white; border: 1px solid #E4E8EF;
  padding: 36px 20px; margin-bottom: 30px; height: calc(100% - 30px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tm-contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 43, 91, 0.12); }
.tm-contact-card .ic {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px auto;
  background: var(--bleu); color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: background 0.3s ease;
}
.tm-contact-card:hover .ic { background: var(--accent); }
.tm-contact-card h3 { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.tm-contact-card span { color: var(--bleu); font-size: 1.05rem; word-break: break-word; }

.tm-form-light label { font-size: 0.85rem; color: var(--bleu); font-weight: 600; margin-bottom: 6px; display: block; }
.tm-input-light {
  width: 100%; margin: 0 0 20px 0; padding: 11px 16px; font-family: inherit; font-size: 1rem;
  border: 1px solid #D5DCE6; background: white; color: var(--texte); border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tm-input-light::placeholder { color: #9AA6B8; }
.tm-input-light:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 155, 255, 0.15); }
.tm-radios { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tm-radios label { margin: 0; }
.tm-radios input { position: absolute; opacity: 0; }
.tm-radios span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid #D5DCE6; padding: 8px 16px; font-size: 0.95rem; color: var(--bleu); font-weight: 400;
}
.tm-radios input:checked + span { background: var(--bleu); color: white; border-color: var(--bleu); }
.tm-radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-form-actions button { border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.tm-btn-wa { display: inline-block; color: white; background: #1FA855; padding: 14px 30px; }
.tm-btn-wa:hover { background: #178a45; color: white; }

.tm-side {
  background: var(--bleu); color: white; padding: 36px 32px; margin-bottom: 24px;
}
.tm-side h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 18px; }
.tm-side p { font-size: 0.98rem; }
.tm-side .row-i { display: flex; gap: 14px; margin-bottom: 14px; font-size: 0.98rem; }
.tm-side .row-i i { color: var(--accent); width: 20px; padding-top: 6px; text-align: center; }
.tm-map { border: 1px solid #E4E8EF; background: var(--fond); height: 260px; }
.tm-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.8); }

@media (max-width: 767px) {
  .tm-service { padding: 56px 0; }
  .tm-service h2 { font-size: 1.8rem; }
  .tm-service-num { font-size: 3.2rem; }
  .tm-about-img::before { right: -10px; bottom: -10px; top: 10px; left: 10px; }
  .tm-about-badge { left: 0; }
  .tm-mv-card { padding: 30px 24px; }
}
@media (max-width: 575px) {
  .tm-contact-card { padding: 24px 10px; }
  .tm-contact-card .ic { width: 54px; height: 54px; font-size: 1.3rem; margin-bottom: 12px; }
  .tm-contact-card h3 { font-size: 0.7rem; letter-spacing: 1px; }
  .tm-contact-card span { font-size: 0.85rem; }
}

/* =========================================================
   Accueil version courte
   ========================================================= */
.tm-svc-card {
  display: block; background: white; border: 1px solid #E4E8EF;
  padding: 34px 30px; margin-bottom: 30px; height: calc(100% - 30px);
  position: relative; transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tm-svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.35s ease;
}
.tm-svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 43, 91, 0.12); }
.tm-svc-card:hover::before { transform: scaleY(1); }
.tm-svc-card i.ic { color: var(--accent); margin-bottom: 20px; display: block; }
.tm-svc-card h3 { font-size: 1.4rem; color: var(--bleu); font-weight: 500; margin-bottom: 10px; }
.tm-svc-card p { font-size: 1rem; color: var(--texte-doux); margin-bottom: 16px; line-height: 1.75; }
.tm-svc-card .more { font-size: 0.95rem; color: var(--bleu); font-weight: 500; }
.tm-svc-card .more i { margin-left: 6px; transition: transform 0.3s ease; }
.tm-svc-card:hover .more i { transform: translateX(5px); }

#apropos-court {
  color: white; background-color: var(--bleu);
  background-image: url(../img/dakar-nuit.jpg); background-size: cover; background-position: center;
  position: relative; padding: 100px 0 90px 0;
}
#apropos-court .tm-bg-overlay { background: rgba(15, 43, 91, 0.6); }
#apropos-court .container { position: relative; z-index: 2; }
#apropos-court .tm-about-img::before { border-color: rgba(255,255,255,0.8); }
#apropos-court p { font-size: 1.1rem; }

#realisations { background: var(--fond); padding-bottom: 80px; }

#cta {
  color: white; text-align: center; background-color: var(--bleu);
  background-image: url(../img/hero-equipe.jpg); background-size: cover; background-position: center;
  position: relative; padding: 100px 0;
}
#cta::before { content: ""; position: absolute; inset: 0; background: rgba(15, 43, 91, 0.82); }
#cta .container { position: relative; z-index: 2; }
#cta p { max-width: 640px; margin: 0 auto 34px auto; font-size: 1.15rem; }
.tm-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tm-cta-actions a { margin: 0; }

/* =========================================================
   FINITION : ombres sur les grilles + blocs plus compacts
   ========================================================= */
:root {
  --ombre: 0 4px 18px rgba(15, 43, 91, 0.08), 0 1px 3px rgba(15, 43, 91, 0.05);
  --ombre-hover: 0 14px 34px rgba(15, 43, 91, 0.16), 0 3px 8px rgba(15, 43, 91, 0.06);
  --rayon: 10px;
}

/* Cartes : plus de bordure, une ombre douce */
.tm-svc-card, .tm-project, .tm-member, .tm-value, .tm-contact-card,
.tm-mv-card, .tm-box, .tm-target, .tm-faq details, .tm-side, .tm-map {
  border: 0 !important;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.tm-svc-card:hover, .tm-project:hover, .tm-member:hover, .tm-value:hover,
.tm-contact-card:hover, .tm-target:hover, .tm-faq details[open] {
  box-shadow: var(--ombre-hover);
}
.tm-target { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tm-target:hover { transform: translateY(-3px); }
.tm-project-thumb { border-radius: var(--rayon) var(--rayon) 0 0; }

/* Blocs plus compacts */
.tm-svc-card { padding: 24px 22px; }
.tm-svc-card i.ic { margin-bottom: 14px; font-size: 1.6rem; }
.tm-svc-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tm-svc-card p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; }
.tm-svc-card .more { font-size: 0.88rem; }

.tm-project-thumb { padding: 16px 16px 0 16px; }
.tm-browser { height: 150px; }
.tm-project-body { padding: 18px 20px 20px 20px; }
.tm-project h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tm-project p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.tm-techs { margin-bottom: 12px; }
.tm-techs span, .tm-skills span { border: 0; border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; }
.tm-project-link { font-size: 0.88rem; }

.tm-member { padding: 28px 22px 24px 22px; }
.tm-avatar { width: 110px; height: 110px; font-size: 2rem; margin-bottom: 18px; border-width: 4px; }
.tm-avatar small { width: 34px; height: 34px; font-size: 0.85rem; }
.tm-member h3 { font-size: 1.25rem; }
.tm-member-role { font-size: 0.72rem; margin-bottom: 12px; }
.tm-member p { font-size: 0.9rem; line-height: 1.6; }
.tm-skills { margin: 4px 0 16px 0; }
.tm-socials a { width: 34px; height: 34px; font-size: 0.9rem; border: 0; border-radius: 50%; background: var(--fond); }

.tm-value { padding: 24px 18px; }
.tm-value .ic { width: 58px; height: 58px; font-size: 1.35rem; margin-bottom: 12px; }
.tm-value h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tm-value p { font-size: 0.88rem; line-height: 1.6; }

.tm-mv-card { padding: 28px 26px; }
.tm-mv-card i { font-size: 2rem; }
.tm-mv-card h3 { font-size: 1.4rem; margin: 12px 0 8px 0; }
.tm-mv-card p { font-size: 0.95rem; line-height: 1.7; }
.tm-mv-card::after { width: 110px; height: 110px; right: -30px; top: -30px; }

.tm-contact-card { padding: 24px 14px; }
.tm-contact-card .ic { width: 52px; height: 52px; font-size: 1.25rem; margin-bottom: 12px; }
.tm-contact-card span { font-size: 0.95rem; }

.tm-box { padding: 20px 22px; margin-bottom: 16px; }
.tm-box h3 { margin-bottom: 10px; font-size: 0.72rem; }
.tm-box p, .tm-box .tm-check li { font-size: 0.92rem; }
.tm-check li { line-height: 1.65; margin-bottom: 4px; font-size: 0.95rem; }

.tm-target { padding: 14px 18px; font-size: 0.95rem; margin-bottom: 16px; }
.tm-target i { font-size: 1.15rem; width: 26px; }

.tm-faq details { margin-bottom: 10px; }
.tm-faq summary { padding: 15px 56px 15px 22px; font-size: 1rem; }
.tm-faq summary::after { width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; }
.tm-faq details p { padding: 0 22px 16px 22px; font-size: 0.93rem; }

.tm-side { padding: 26px 24px; }
.tm-side h3 { font-size: 1.2rem; }
.tm-map { height: 220px; }

/* Grilles un peu plus serrées */
.row.tm-grid-tight, #services .row, #realisations .row, #projets .row, #membres .row { margin-left: -10px; margin-right: -10px; }
#services .row > [class*="col-"], #realisations .row > [class*="col-"], #projets .row > [class*="col-"], #membres .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
.tm-svc-card, .tm-project, .tm-member, .tm-value, .tm-contact-card, .tm-mv-card { margin-bottom: 20px; height: calc(100% - 20px); }

/* Sections moins hautes */
.tm-section-pad-top { padding-top: 64px; padding-bottom: 32px; }
.tm-service { padding: 54px 0; }
.tm-service-num { font-size: 3.2rem; margin-bottom: 4px; }
.tm-service h2 { font-size: 1.8rem; margin-bottom: 12px; }
.tm-service .lead-text { font-size: 1.02rem; margin-bottom: 18px; }
.tm-band, #apropos-court, #cta { padding-top: 70px; padding-bottom: 60px; }
.tm-step-num { width: 70px; height: 70px; font-size: 1.4rem; margin-bottom: 14px; }
.tm-step h3 { font-size: 1.15rem; }
.tm-step p { font-size: 0.9rem; }
.tm-why { margin-bottom: 24px; }

/* Petits éléments arrondis assortis */
.tm-filter, .tm-chip, .tm-radios span { border-radius: 30px; }
.tm-input-light { border-radius: 8px; }
.tm-maquette-note { border-radius: 6px; }
.tm-btn-primary, .tm-btn-ghost, .tm-btn-wa { border-radius: 6px; }
.tm-about-img img { border-radius: var(--rayon); box-shadow: var(--ombre-hover); }
.tm-about-img::before { border-radius: var(--rayon); }
.tm-about-badge { border-radius: 8px; box-shadow: var(--ombre-hover); }

@media (max-width: 767px) {
  .tm-section-pad-top { padding-top: 52px; }
  .tm-service { padding: 44px 0; }
  .tm-band, #apropos-court, #cta { padding-top: 56px; padding-bottom: 48px; }
}


/* =========================================================
   TYPOGRAPHIE : Poppins (titres) + Inter (textes)
   ========================================================= */
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.05rem; color: #4A5568; -webkit-font-smoothing: antialiased; }
p { line-height: 1.75; }
h1, h2, h3, h4, .tm-section-title, .tm-hero-title, .tm-service-num, .tm-step-num, .tm-avatar,
.tm-btn-primary, .tm-btn-ghost, .tm-btn-wa, .tm-filter, .tm-chip, .tm-hero-kicker, .tm-breadcrumb,
.tm-project-cat, .tm-member-role, .tm-box h3, .tm-contact-card h3, .tm-project-tag, .tm-tile-label, figcaption {
  font-family: "Poppins", "Inter", sans-serif;
}
.tm-section-title { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.5px; }
.tm-hero-title { font-size: 3.6rem; font-weight: 700; letter-spacing: -1px; }
.tm-hero-subtitle { font-size: 1.15rem; }
.tm-hero-kicker { font-weight: 500; font-size: 0.8rem; letter-spacing: 3px; }
.tm-intro-text { font-size: 1.08rem; }
.tm-section-desc { font-size: 0.98rem; }
.tm-svc-card h3, .tm-project h3, .tm-member h3, .tm-value h3, .tm-mv-card h3, .tm-step h3, .tm-why h3 { font-weight: 600; letter-spacing: -0.2px; }
.tm-service h2 { font-weight: 600; letter-spacing: -0.4px; }
.tm-service-num { font-weight: 300; }
.tm-btn-primary, .tm-btn-ghost, .tm-btn-wa { font-weight: 500; font-size: 0.98rem; }
.tm-faq summary { font-family: "Poppins", sans-serif; font-weight: 500; }
@media (max-width: 767px) {
  .tm-hero-title { font-size: 2.5rem; }
  .tm-section-title { font-size: 1.85rem; }
}

/* =========================================================
   BARRE DE NAVIGATION (nouvelle version)
   ========================================================= */
.tm-navbar { padding: 18px 0; transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; }
.tm-navbar.scroll { padding: 10px 0; border-bottom: 0; box-shadow: 0 4px 20px rgba(15, 43, 91, 0.10); background: rgba(255,255,255,0.97); }
.navbar-brand img { height: 38px; }
.tm-navbar.scroll .navbar-brand .logo-couleur { height: 34px; }

.navbar-expand-md .navbar-nav { align-items: center; }
.navbar-expand-md .navbar-nav .nav-link.tm-nav-link {
  font-family: "Poppins", sans-serif; font-size: 0.95rem; font-weight: 500;
  padding: 8px 4px; margin: 0 14px; position: relative; color: rgba(255,255,255,0.88);
  background: transparent !important;
}
.tm-nav-link::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform 0.3s ease;
}
.tm-nav-link:hover, .tm-nav-link.current { color: white !important; }
.tm-nav-link:hover::after, .tm-nav-link.current::after { transform: scaleX(1); }
.tm-navbar.scroll .navbar-nav .nav-link.tm-nav-link { color: var(--texte); }
.tm-navbar.scroll .tm-nav-link:hover, .tm-navbar.scroll .tm-nav-link.current { color: var(--bleu) !important; }
.tm-navbar:not(.scroll) .tm-nav-link.current { background: transparent !important; }

.tm-nav-cta {
  font-family: "Poppins", sans-serif; font-size: 0.9rem; font-weight: 500;
  color: white; background: var(--accent); padding: 10px 20px; border-radius: 30px; margin-left: 14px;
  white-space: nowrap; box-shadow: 0 6px 16px rgba(30, 155, 255, 0.35);
}
.tm-nav-cta:hover, .tm-nav-cta:focus { color: white; background: var(--bleu); box-shadow: 0 6px 16px rgba(15, 43, 91, 0.3); }
.tm-navbar:not(.scroll) .tm-nav-cta:hover { background: white; color: var(--bleu); }

.navbar-toggler { border: 0; border-radius: 8px; background: rgba(255,255,255,0.12); padding: 8px 12px; }
.navbar-toggler-icon { padding-top: 0; font-size: 1.1rem; }
.tm-navbar.scroll .navbar-toggler { border: 0; background: var(--fond); }
.tm-navbar.scroll .navbar-toggler-icon { color: var(--bleu); }

@media (min-width: 768px) and (max-width: 1199px) {
  .navbar-expand-md .navbar-nav .nav-link.tm-nav-link { margin: 0 8px; font-size: 0.88rem; }
  .tm-nav-cta { padding: 8px 14px; font-size: 0.82rem; margin-left: 8px; }
  .navbar-brand img { height: 30px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .tm-nav-item-cta { display: none; }
}

@media (max-width: 767px) {
  .tm-navbar { padding: 12px 0; }
  .navbar-collapse {
    background: white; border-radius: 12px; margin-top: 12px; padding: 10px;
    box-shadow: 0 16px 40px rgba(15, 43, 91, 0.18);
  }
  .navbar-nav { max-width: none; text-align: left; margin-left: 0; }
  .navbar-expand-md .navbar-nav .nav-link.tm-nav-link,
  .navbar-collapse .nav-link.tm-nav-link {
    color: var(--texte) !important; margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 1rem;
  }
  .navbar-collapse .tm-nav-link::after { display: none; }
  .navbar-collapse .tm-nav-link.current { background: #EAF4FF !important; color: var(--bleu) !important; }
  .navbar-collapse .tm-nav-link:hover { background: var(--fond) !important; }
  .tm-nav-item-cta { padding: 8px 4px 4px 4px; }
  .tm-nav-cta { display: block; text-align: center; margin: 0; padding: 12px; }
}
.navbar-toggler:focus { outline: none; box-shadow: 0 0 0 2px rgba(30,155,255,0.5); }
@media (max-width: 767px) {
  .navbar-expand-md .navbar-nav { align-items: stretch; }
  .tm-navbar .navbar-collapse .nav-link.tm-nav-link.current { background: #EAF4FF !important; color: var(--bleu) !important; }
  .tm-navbar .navbar-collapse .nav-link.tm-nav-link:hover { background: var(--fond) !important; }
}
.tm-hero-title, .tm-hero-subtitle { text-shadow: 0 2px 12px rgba(5, 15, 35, 0.45); }
.tm-down-arrow { padding: 0; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.5); }
.tm-down-arrow:hover, .tm-down-arrow:focus { padding: 0; background: var(--accent); border-color: var(--accent); }

/* =========================================================
   PIED DE PAGE + RÉSEAUX SOCIAUX
   ========================================================= */
.tm-site-footer { background: #08183A; color: #C9D6EA; padding: 60px 0 0 0; font-size: 0.95rem; }
.tm-footer-logo { height: 36px; margin-bottom: 16px; }
.tm-footer-text { color: #9FB2D0; font-size: 0.93rem; line-height: 1.7; max-width: 320px; }
.tm-footer-title { font-family: "Poppins", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: white; margin-bottom: 18px; }
.tm-footer-links, .tm-footer-contact { list-style: none; padding: 0; margin: 0; }
.tm-footer-links li, .tm-footer-contact li { margin-bottom: 10px; }
.tm-footer-links a, .tm-footer-contact a { color: #C9D6EA; display: inline-flex; align-items: center; gap: 12px; }
.tm-footer-links a:hover, .tm-footer-contact a:hover { color: var(--accent); transform: translateX(3px); }
.tm-footer-contact i { width: 18px; text-align: center; color: var(--accent); }
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 20px; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #8195B5;
}
.tm-back-top {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: white;
}
.tm-back-top:hover { background: var(--accent); color: white; transform: translateY(-3px); }

.tm-social-links { display: flex; gap: 10px; margin-top: 18px; }
.tm-social-links a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: white; font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.tm-social-links a:hover { background: var(--accent); color: white; transform: translateY(-3px); }
.tm-social-links svg { display: block; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes tmPageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

body { animation: tmPageIn 0.5s ease both; }
body.is-leaving { opacity: 0; transition: opacity 0.25s ease; }

/* Entrée du héro */
.tm-hero-text-container-inner > * { animation: tmFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both; }
.tm-hero-text-container-inner > *:nth-child(1) { animation-delay: 0.10s; }
.tm-hero-text-container-inner > *:nth-child(2) { animation-delay: 0.22s; }
.tm-hero-text-container-inner > *:nth-child(3) { animation-delay: 0.34s; }
.tm-hero-text-container-inner > *:nth-child(4) { animation-delay: 0.46s; }
.tm-intro-next { animation: tmFadeUp 0.8s 0.7s ease both; }
.tm-navbar { animation: tmPageIn 0.6s 0.05s ease both; }

/* Apparition au défilement (activée par JS) */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.reveal-left { transform: translateX(-30px); }
.js-anim .reveal.reveal-right { transform: translateX(30px); }
.js-anim .reveal.reveal-zoom { transform: scale(0.94); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* Flèche du héro qui rebondit */
@keyframes tmBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.tm-down-arrow { animation: tmBounce 2s ease-in-out 1.5s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  body.is-leaving { opacity: 1; }
}

@media (max-width: 767px) {
  .tm-footer-bottom { flex-direction: row; }
}
.tm-footer-hours { color: #C9D6EA; display: inline-flex; align-items: center; gap: 12px; }
.tm-footer-hours i { width: 18px; text-align: center; color: var(--accent); }

/* =========================================================
   PORTFOLIO : vraies captures des projets
   ========================================================= */
.tm-project-shot { display: block; }
.tm-project-shot .tm-browser { position: relative; height: 170px; background: #E9EDF3; }
.tm-browser-bar { position: relative; z-index: 2; }
.tm-browser-bar em {
  font-style: normal; font-size: 0.68rem; color: #6B7A90; margin-left: 8px;
  background: white; border-radius: 10px; padding: 1px 10px; max-width: 70%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-project-shot img {
  position: absolute; top: 22px; left: 0; width: 100%; height: calc(100% - 22px);
  object-fit: cover; object-position: top center; z-index: 1;
  transition: transform 0.6s ease;
}
.tm-project:hover .tm-project-shot img { transform: scale(1.05); }
.tm-shot-fallback {
  position: absolute; top: 22px; left: 0; right: 0; bottom: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.2rem; color: white;
  background: linear-gradient(135deg, var(--bleu), var(--accent));
}
.tm-project-shot img.is-broken { display: none; }
.tm-project-link i { font-size: 0.75rem; }
@media (min-width: 1200px) {
  #projets .tm-project-shot .tm-browser { height: 150px; }
}
.tm-soon { color: #8A97AB !important; display: inline-flex; align-items: center; gap: 6px; }
.tm-soon i { margin-left: 0 !important; transform: none !important; }

/* =========================================================
   RÉPARTITION DES PHOTOS (aucune photo répétée sur une même page)
   Accueil     : équipe (héro) · Dakar (fond à propos) · idées (image à propos) · téléphone (bandeau CTA)
   Services    : code (héro) · idées (méthode)
   À propos    : Dakar (héro) · équipe (qui sommes-nous) · téléphone (pourquoi nous)
   Portfolio   : créateur (héro) · code (méthode)
   Équipe      : idées (héro) · Dakar (ce qui nous réunit)
   Contact     : téléphone (héro)
   ========================================================= */
#hero-services  { background-image: url(../img/services-code.jpg); }
#hero-apropos   { background-image: url(../img/dakar-nuit.jpg); }
#hero-portfolio { background-image: url(../img/portfolio-createur.jpg); }
#hero-equipe    { background-image: url(../img/equipe-idees.jpg); }
#hero-contact   { background-image: url(../img/contact-telephone.jpg); }
#cta            { background-image: url(../img/contact-telephone.jpg); background-position: center 30%; }
.tm-band.bg-idees     { background-image: url(../img/equipe-idees.jpg); }
.tm-band.bg-code      { background-image: url(../img/services-code.jpg); }
.tm-band.bg-telephone { background-image: url(../img/contact-telephone.jpg); background-position: center 25%; }
.tm-band.bg-dakar     { background-image: url(../img/dakar-nuit.jpg); }

/* =========================================================
   RÉPARTITION FINALE : chaque photo n'apparaît qu'une seule fois sur le site
   Accueil   : hero-equipe (héro) · reunion-analyse (qui sommes-nous)
   Services  : services-solutions (héro) · services-code (méthode)
   À propos  : dakar-nuit (héro) · developpeur-bureau (qui sommes-nous)
   Portfolio : portfolio-createur (héro)
   Équipe    : equipe-idees (héro)
   Contact   : contact-telephone (héro)
   Les autres bandeaux utilisent un dégradé bleu aux couleurs InnovaDEV.
   ========================================================= */
#hero-services { background-image: url(../img/services-solutions.jpg); }
.tm-band.bg-degrade, #apropos-court, #cta {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(30, 155, 255, 0.28) 0, rgba(30, 155, 255, 0) 45%),
    radial-gradient(circle at 85% 85%, rgba(30, 155, 255, 0.18) 0, rgba(30, 155, 255, 0) 40%),
    linear-gradient(135deg, #0A1F45 0%, #0F2B5B 55%, #163C7A 100%);
  background-size: cover;
}
.tm-band.bg-degrade .tm-bg-overlay, #apropos-court .tm-bg-overlay { background: transparent; }
#cta::before { background: transparent; }
/* Empêche tout débordement horizontal (animations latérales sur mobile) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* Bandeaux avec photo (réutilisation autorisée, jamais deux fois sur la même page) */
#apropos-court { background-image: url(../img/dakar-nuit.jpg); background-size: cover; background-position: center; }
#apropos-court .tm-bg-overlay { background: rgba(15, 43, 91, 0.62); }
#cta { background-image: url(../img/contact-telephone.jpg); background-size: cover; background-position: center 30%; }
#cta::before { background: rgba(15, 43, 91, 0.80); }
.tm-band.bg-idees   { background-image: url(../img/equipe-idees.jpg); }
.tm-band.bg-code    { background-image: url(../img/services-code.jpg); }
.tm-band.bg-reunion { background-image: url(../img/reunion-analyse.jpg); background-position: center 30%; }
.tm-band.bg-idees .tm-bg-overlay, .tm-band.bg-code .tm-bg-overlay, .tm-band.bg-reunion .tm-bg-overlay { background: rgba(15, 43, 91, 0.74); }

/* Équipe : vraies photos */
.tm-avatar-photo { background: var(--fond); padding: 0; overflow: hidden; }
.tm-avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.tm-member { position: relative; }
.tm-member-badge {
  position: absolute; top: 16px; right: 16px; font-family: "Poppins", sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: white; background: var(--accent); padding: 4px 10px; border-radius: 20px;
}
.tm-member-lead .tm-avatar { box-shadow: 0 0 0 3px var(--accent); }

/* Sécurité d'affichage : plus de fondu de sortie, et le fondu d'entrée ne peut pas laisser la page invisible */
body.is-leaving { opacity: 1 !important; }
body { animation: none; }
main, section, footer { animation: tmPageIn 0.5s ease; }
