/* ==========================================================
   First Consulting — style.css
   Palette : bleu #5677d4 / bleu foncé #3952c4 / gris #f5f5f5
   Polices : Poppins (titres), Source Sans Pro (texte)
   ========================================================== */

:root {
  --blue: #5677d4;
  --blue-dark: #3952c4;
  --ink: #1c1c1c;
  --grey-bg: #f5f5f5;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(28, 28, 28, .08);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo .logo-icon { height: 42px; width: auto; }
.logo .logo-text { height: 28px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: stretch;
  gap: 30px;
  list-style: none;
}
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); border-color: var(--blue); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 250px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: none;
  white-space: nowrap;
}
.dropdown a .dropdown-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--blue);
}
.dropdown a:hover { background: var(--grey-bg); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 11px 26px !important;
  border-radius: 30px;
  border: none !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* Sélecteur de langues */
.lang-switch .lang-current,
.lang-switch .dropdown a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-switch img { width: 22px; height: auto; border-radius: 2px; }
.lang-switch .dropdown { min-width: 170px; }
.lang-switch .dropdown a { display: flex; }
.lang-switch .dropdown a.current { color: var(--blue); font-weight: 600; }

/* Bouton flèche d'ouverture des sous-menus (mobile) */
.dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.dropdown-toggle svg { width: 13px; height: 13px; transition: transform .25s; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.lang-switch .lang-current {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.lang-switch .lang-current .chevron { width: 10px; height: 10px; margin-left: 2px; opacity: .6; transition: transform .25s; }
.has-dropdown.open .lang-current .chevron { transform: rotate(180deg); }
.dropdown .current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--blue);
  font-weight: 600;
}
.dropdown a.disabled-link { cursor: default; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.hero .container { position: relative; }
.hero .kicker {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .95rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero .sub {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-family: var(--font-head);
  font-weight: 400;
  margin-bottom: 26px;
}
.hero-small { min-height: 52vh; }

/* En-tête de page sans photo (Services, Contact — comme sur le site de référence) */
.page-header {
  padding: 140px 0 64px;
  text-align: center;
  background: var(--white);
}
.page-header .kicker {
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .88rem;
  margin-bottom: 12px;
}
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.page-header .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-family: var(--font-head);
  font-weight: 400;
  color: #555;
}

/* Page 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.error-page p { max-width: 520px; margin: 0 auto 32px; color: #555; }
.error-page .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 32px;
  border: 2px solid var(--blue);
  transition: background .2s, color .2s;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }

/* ---------- 3. Sections ---------- */
.section { padding: 80px 0; }
.section-grey { background: var(--grey-bg); }
.section-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }

.section-head { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.section-head .kicker {
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .88rem;
  margin-bottom: 10px;
}
.section-blue .section-head .kicker { color: rgba(255, 255, 255, .85); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }

/* Cards grid */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(28, 28, 28, .13); }

.card.has-photo { padding: 0; overflow: hidden; }
.card.has-photo .card-body { padding: 24px 24px 26px; }
.card .card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-bg);
}
.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.card .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(86, 119, 212, .35) 0%, rgba(57, 82, 196, .12) 45%, rgba(57, 82, 196, 0) 75%);
  mix-blend-mode: multiply;
}
.card:hover .card-img img { transform: scale(1.07); }

.card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue);
}
.card .card-more svg { width: 12px; height: 12px; transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(3px); }
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.card p { font-size: .98rem; color: #444; }

/* Numbered cards (réussites) */
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* Secteurs */
.sector {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 20px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue-dark);
  transition: transform .25s, box-shadow .25s;
}
.sector:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(28, 28, 28, .13); }
.sector .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(86, 119, 212, .12), rgba(57, 82, 196, .2));
  color: var(--blue-dark);
  transition: background .25s, transform .25s;
}
.sector .icon svg { width: 26px; height: 26px; }
.sector:hover .icon { background: var(--blue); color: var(--white); transform: scale(1.08); }

/* Split (texte + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Photos des sections Services — effet de teinte bleu de marque */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.photo-frame img {
  display: block;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  transition: transform .5s;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(86, 119, 212, .35) 0%, rgba(57, 82, 196, .12) 45%, rgba(57, 82, 196, 0) 75%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius);
  z-index: 2;
  pointer-events: none;
}
.photo-frame:hover img { transform: scale(1.06); }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split p { margin-bottom: 14px; }

/* Fonctionnalités (checklist) */
.features-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  max-width: 560px;
  margin: 26px auto 0;
}
.features-table span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
}
.features-table span::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  margin-right: 10px;
}
.section-blue .features-table span::before { color: var(--white); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; }
.stat .value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--blue);
}
.section-blue .stat .value { color: var(--white); }
.stat .label { font-size: 1.05rem; color: inherit; }

/* Témoignage */
.testimonial-decor {
  position: relative;
  background-size: cover;
  background-position: center;
}
.testimonial-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .88);
}
.testimonial-decor .container { position: relative; }
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial .quote-mark {
  width: 38px;
  height: 30px;
  margin: 0 auto 14px;
  color: var(--blue);
  opacity: .35;
}
.section-blue .testimonial .quote-mark { color: var(--white); opacity: .55; }
.testimonial .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}
.testimonial .stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 16px;
  color: #f5a623;
}
.testimonial .stars svg { width: 16px; height: 16px; }
.testimonial blockquote {
  font-size: 1.3rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 20px;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
}
.section-blue .testimonial cite { color: var(--white); }

/* Grille d'avis (accueil) */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.testimonial-grid .testimonial {
  max-width: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
}
.testimonial-grid .testimonial blockquote { font-size: 1.08rem; }
@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform .25s, opacity .25s;
}
.faq-question .plus::before { width: 14px; height: 2px; }
.faq-question .plus::after { width: 2px; height: 14px; }
.faq-item.open .faq-question .plus::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-question { color: var(--blue-dark); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p { padding: 0 4px 22px; color: #444; }
.faq-item.open .faq-answer { max-height: 300px; }

/* Étapes (comment ça se passe) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step { text-align: center; position: relative; }
.step .step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: #555; }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 26px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* CTA bloc */
.cta-bloc { text-align: center; }
.cta-bloc h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.cta-bloc p { font-size: 1.25rem; margin-bottom: 28px; }

/* Service détaillé (page services) */
.service-detail { scroll-margin-top: 90px; }
.service-detail ul { margin: 18px 0 26px; padding-left: 0; list-style: none; }
.service-detail li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.service-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.service-detail li strong { color: var(--blue-dark); }

.pillars { margin-top: 34px; }
.pillar {
  background: var(--grey-bg);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: .98rem;
}

/* ---------- 4. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: 1.9rem; margin-bottom: 16px; }
.contact-info p { margin-bottom: 16px; }
.contact-info .line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.contact-info .line .ico { color: var(--blue); }
.hours { margin-top: 22px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 18px; }
.hours .row { display: flex; justify-content: space-between; max-width: 320px; padding: 4px 0; }
.hours .row span:first-child { font-weight: 600; font-family: var(--font-head); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  margin: 16px 0 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(86, 119, 212, .18);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { margin-top: 24px; width: 100%; }
.form-success, .form-error {
  display: none;
  border-radius: 6px;
  padding: 14px;
  margin-top: 18px;
  text-align: center;
}
.form-success { background: #e8f5e9; color: #1b5e20; }
.form-error { background: #fdecea; color: #9c1c0c; }
.form-error a { color: inherit; text-decoration: underline; }
.contact-form button[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 5. Footer ---------- */
.site-footer {
  background: #14181f;
  color: #cfd4de;
  padding: 60px 0 0;
  font-size: .97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.site-footer a { display: flex; align-items: center; gap: 10px; color: #cfd4de; text-decoration: none; transition: color .2s; }
.site-footer .dropdown-icon { width: 15px; height: 15px; color: var(--blue); opacity: .85; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { height: 40px; width: auto; }
.footer-logo .logo-text { height: 26px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  text-align: center;
  font-size: .88rem;
  color: #8b92a0;
}

/* ---------- 6. Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- 7. Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  color: #e8e8e8;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.visible { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.cookie-banner p { flex: 1 1 280px; font-size: .92rem; line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid transparent;
}
.cookie-banner .cookie-accept { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cookie-banner .cookie-accept:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.cookie-banner .cookie-decline { background: transparent; color: #e8e8e8; border-color: rgba(255,255,255,.35); }
.cookie-banner .cookie-decline:hover { border-color: #fff; color: #fff; }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner button { flex: 1; }
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 79;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); color: var(--white); }
.back-to-top svg { width: 18px; height: 18px; }
body.nav-open .back-to-top { display: none; }
@media (max-width: 768px) {
  .back-to-top { right: 16px; bottom: 78px; width: 40px; height: 40px; }
}

/* ---------- 8. Bouton flottant WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.07); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.whatsapp-float svg { width: 30px; height: 30px; }
body.nav-open .whatsapp-float { display: none; }

@media (max-width: 768px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

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

@media (max-width: 768px) {
  .hamburger { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--white);
    padding: 88px 0 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .main-nav > ul > li { display: block; border-bottom: 1px solid rgba(0, 0, 0, .07); }

  .has-dropdown { display: flex; align-items: stretch; }
  .has-dropdown > a,
  .has-dropdown > .lang-current { flex: 1; }
  .dropdown-toggle { display: flex; }

  .main-nav a { display: block; padding: 16px 24px; border: none; font-size: 1.05rem; }
  .lang-switch .lang-current { display: flex; align-items: center; gap: 10px; padding: 16px 24px; font-size: 1.05rem; text-align: left; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--grey-bg);
    transition: max-height .3s ease;
  }
  .has-dropdown.open .dropdown { max-height: 340px; }
  .dropdown a, .dropdown .current { padding: 13px 24px 13px 44px; }

  .nav-cta { margin: 20px 24px 0; text-align: center; border-radius: var(--radius); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stats.stats-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .features-table { grid-template-columns: 1fr; }
}

/* ---------- 10. Support RTL (hébreu) ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .card-more svg,
[dir="rtl"] .btn svg,
[dir="rtl"] .dropdown-toggle svg,
[dir="rtl"] .chevron { transform: scaleX(-1); }
[dir="rtl"] .has-dropdown.open .dropdown-toggle svg,
[dir="rtl"] .has-dropdown.open .lang-current .chevron { transform: scaleX(-1) rotate(180deg); }
[dir="rtl"] .contact-info .line { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .hours .row { flex-direction: row-reverse; }
[dir="rtl"] .footer-logo,
[dir="rtl"] .logo,
[dir="rtl"] .site-footer a,
[dir="rtl"] .testimonial-decor,
[dir="rtl"] .cookie-banner,
[dir="rtl"] .cookie-actions { direction: rtl; }
[dir="rtl"] .whatsapp-float { right: auto; left: 22px; }
[dir="rtl"] .back-to-top { right: auto; left: 22px; bottom: 90px; }
[dir="rtl"] .service-detail li { padding: 10px 30px 10px 0; }
[dir="rtl"] .service-detail li::before { left: auto; right: 0; }
[dir="rtl"] .pillar { border-left: none; border-right: 4px solid var(--blue); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .features-table span::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .dropdown a, [dir="rtl"] .dropdown .current { text-align: right; }
@media (max-width: 768px) {
  [dir="rtl"] .whatsapp-float { right: auto; left: 16px; }
  [dir="rtl"] .back-to-top { right: auto; left: 16px; }
}
