/* ==========================================================================
   Olim Assist — feuille de style unique (site statique, sans WordPress)
   Charte reprise du site d'origine : bordeaux #6D071A, gris #707174,
   polices Poppins / Montserrat / Kanit / Abril Fatface.
   ========================================================================== */

:root {
  --primary: #6D071A;
  --primary-dark: #4e0512;
  --text: #707174;
  --accent: #545557;
  --secondary: #C0C0C0;
  --blue: #064474;
  --dark: #222333;
  --light: #efefef;
  --white: #ffffff;
  --header-h: 112px;
  --font-text: "Montserrat", Arial, sans-serif;
  --font-title: "Poppins", Arial, sans-serif;
  --font-kanit: "Kanit", "Poppins", Arial, sans-serif;
  --font-serif: "Abril Fatface", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.25; margin: 0 0 .6em; color: var(--dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn--light { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn--light:hover { background: var(--light); color: var(--primary); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--text);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 9px 15px rgba(96, 96, 96, .11);
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand { flex: 0 0 auto; }
.brand img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 5px rgba(255, 255, 255, .9);
  object-fit: cover;
}

.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { text-decoration: none; color: #ffd9de; }
.main-nav li.is-active > a { color: #ff5f70; border-bottom-color: #ff5f70; }
.main-nav .lang-switch { position: relative; }
.main-nav .lang-switch > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: middle;
}
.main-nav .lang-switch ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 150px;
  padding: 6px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
}
.main-nav .lang-switch:hover ul,
.main-nav .lang-switch:focus-within ul { display: block; }
.main-nav .lang-switch ul a { border: 0; font-size: 14px; }

.header-contact {
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--font-title);
  line-height: 1.3;
}
.header-contact .flags { margin-bottom: 4px; }
.header-contact .flags a {
  display: inline-block;
  background: var(--white);
  padding: 2px 6px;
  font-size: 13px;
  line-height: 1;
  border-radius: 2px;
  margin: 0 1px;
  color: var(--dark);
}
.header-contact .flags a:hover { text-decoration: none; background: var(--light); }
.header-contact .flags a.is-current { outline: 2px solid var(--primary); }
.header-contact .tel-main { font-size: 17px; font-weight: 700; color: var(--white); display: block; }
.header-contact .mail { font-size: 12px; color: var(--white); display: block; }
.header-contact .tel-sec { font-size: 11px; color: var(--white); display: block; margin-top: 2px; }
.header-contact .tel-sec a { color: var(--white); margin: 0 4px; }
.header-contact a:hover { text-decoration: underline; color: #ffd9de; }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --header-h: 96px; }
  .site-header .container { flex-wrap: wrap; }
  .brand img { width: 76px; height: 76px; }
  .nav-toggle { display: block; order: 2; }
  .header-contact { order: 3; }
  .main-nav {
    order: 4;
    flex: 1 1 100%;
    display: none;
    justify-content: flex-start;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; background: var(--primary); margin: 4px -16px 0; }
  .main-nav li { border-top: 1px solid rgba(255, 255, 255, .15); }
  .main-nav a { padding: 14px 20px; }
  .main-nav li.is-active > a { border-bottom-color: transparent; background: rgba(0, 0, 0, .2); color: var(--white); }
  .main-nav .lang-switch ul { position: static; display: block; box-shadow: none; background: rgba(0, 0, 0, .15); margin: 0; }
  .main-nav .lang-switch ul a { padding-left: 40px; }
  .main-nav .lang-switch > a::after { display: none; }
}
@media (max-width: 599px) {
  .header-contact .tel-main { font-size: 15px; }
  .header-contact .tel-sec { display: none; }
  .header-contact .mail { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  min-height: min(calc(100vh - var(--header-h)), 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #3a3a3a url("../img/background.jpg") center center / cover no-repeat;
  color: var(--white);
  padding: 80px 16px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.hero__inner { position: relative; max-width: 860px; }
.hero h1 {
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero .btn { font-size: 15px; padding: 14px 34px; }
.hero__dot {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border: 2px solid var(--white);
  border-radius: 50%;
}
@media (max-width: 767px) {
  .hero { background-image: url("../img/background-mobile.jpg"); min-height: 520px; }
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.section-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  color: var(--dark);
  margin-bottom: 6px;
}
.section-subtitle {
  font-family: var(--font-title);
  font-size: 24px;
  text-align: center;
  color: var(--text);
  margin: 0 0 40px;
}

/* Intro (accueil) */
.intro .lead-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 24px;
}
.intro .lead-title .hl { color: var(--primary); position: relative; display: inline-block; white-space: nowrap; }
.intro .lead-title .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q100 -2 198 5' fill='none' stroke='%236D071A' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.intro p { font-size: 15px; }
.intro .btn { margin-top: 10px; }

/* Tarifs */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.price-card {
  background: var(--primary);
  color: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(216, 216, 216, .5);
  text-align: center;
  padding: 40px 20px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card h3 { color: var(--white); font-size: 19px; margin: 0 0 18px; }
.price-card .price { display: flex; justify-content: center; align-items: flex-start; gap: 6px; line-height: 1; }
.price-card .currency { font-size: 24px; margin-top: 6px; }
.price-card .amount { font-family: var(--font-title); font-size: 56px; font-weight: 600; }
.price-card .period { font-family: var(--font-title); font-size: 15px; margin: 10px 0 20px; }
.price-card .desc { font-size: 14px; font-weight: 500; flex: 1 1 auto; margin-bottom: 24px; }
.price-card .btn { align-self: center; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Témoignages */
.testimonials h2 { font-family: var(--font-title); font-weight: 700; font-size: 28px; color: var(--dark); margin-bottom: 30px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

/* Bande services (accueil) */
.services-band {
  position: relative;
  background: var(--accent);
  color: var(--white);
  padding: 110px 0 120px;
  overflow: hidden;
}
.services-band::before,
.services-band::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 90px;
  background: #d9d9d9;
}
.services-band::before { top: -45px; transform: skewY(-3deg); box-shadow: 0 -20px 0 var(--white); }
.services-band::after { bottom: -45px; transform: skewY(-3deg); box-shadow: 0 20px 0 var(--white); }
.services-band .container { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.services-band .kicker {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .55);
  margin: 0 0 4px;
}
.services-band h2 { color: var(--white); font-size: 22px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; }
.services-band .lead { font-size: 12px; color: var(--white); margin-bottom: 28px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary);
  border: 2px solid var(--white);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .25s, background .25s;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); background: var(--primary-dark); color: var(--white); }
.tile img { width: 30px; height: 30px; flex: 0 0 30px; }
.tile span { flex: 1 1 auto; text-align: center; }
.tile--single { max-width: 300px; }
@media (max-width: 900px) {
  .services-band .container { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile--single { max-width: none; }
}

/* Formulaire de contact */
.contact-form-section { padding: 60px 0 30px; }
.form-card {
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 24px 32px;
  background: var(--white);
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: center; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  width: 100%;
  font: 500 13px var(--font-text);
  color: var(--dark);
  padding: 10px 12px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  background: var(--white);
  outline: none;
}
.contact-form input:focus { box-shadow: 0 0 0 2px rgba(109, 7, 26, .2); }
.contact-form .btn { font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 12px 26px; min-width: 140px; }
.contact-form .hp { position: absolute; left: -9999px; top: -9999px; }
.form-msg { margin: 14px 0 0; font-weight: 600; text-align: center; display: none; }
.form-msg.is-ok { display: block; color: #1a7f37; }
.form-msg.is-err { display: block; color: #b42318; }
@media (max-width: 900px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 599px) {
  .form-card { padding: 20px 16px; }
  .contact-form { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 20px 0 30px; text-align: center; font-size: 13px; }
.site-footer .footer-langs { margin-bottom: 26px; }
.site-footer .footer-langs a { color: var(--text); margin: 0 10px; font-size: 13px; }
.site-footer .footer-contact { margin-bottom: 20px; }
.site-footer .footer-contact h2 { font-size: 18px; font-weight: 600; color: var(--dark); margin: 0 0 4px; }
.site-footer .footer-contact a { font-family: var(--font-title); font-size: 16px; color: var(--primary); display: block; }
.site-footer .copy { color: var(--text); margin: 0; }
.site-footer .copy a { color: var(--primary); }

/* --------------------------------------------------------------------------
   Page Les services
   -------------------------------------------------------------------------- */
.page-title { font-size: 34px; font-weight: 700; color: var(--dark); text-align: center; margin: 0 0 40px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: 10px; width: 100%; object-fit: cover; }
.two-col h2 { font-size: 26px; font-weight: 600; color: var(--dark); margin: 0 0 8px; }
.two-col p { font-size: 13px; }
.two-col p + h2 { margin-top: 26px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.services-list h2 { font-size: 30px; font-weight: 600; color: var(--dark); text-align: center; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.card svg { width: 30px; height: 30px; flex: 0 0 30px; fill: var(--primary); margin-top: 2px; }
.card h3 { font-size: 12px; font-weight: 700; color: var(--primary); margin: 0 0 4px; }
.card p { font-size: 14px; margin: 0; }
.card ul { font-size: 14px; }
.card li { display: inline; }
.card li:not(:last-child)::after { content: " · "; }
.ellipsis { text-align: center; font-size: 28px; letter-spacing: 4px; color: var(--dark); margin: 30px 0 0; }
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Page Présentation
   -------------------------------------------------------------------------- */
.about .two-col { align-items: start; }
.about .about-text p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 20px;
}
.about .about-text p:first-child { font-size: clamp(24px, 2.8vw, 32px); }

/* --------------------------------------------------------------------------
   Page Contact
   -------------------------------------------------------------------------- */
.contact-page { text-align: center; }
.contact-page .illustration { width: 100%; max-width: 760px; margin: 0 auto 20px; }
.contact-page .intro-text { font-family: var(--font-title); font-size: 18px; font-weight: 500; color: var(--dark); max-width: 820px; margin: 0 auto 50px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.info-box { display: flex; gap: 12px; align-items: center; }
.info-box .ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-box .ico svg { width: 20px; height: 20px; fill: var(--white); }
.info-box h3 { font-size: 12px; font-weight: 600; color: var(--dark); margin: 0; }
.info-box a, .info-box span { font-size: 12px; color: var(--text); word-break: break-all; }
@media (max-width: 900px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .info-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   WhatsApp flottant
   -------------------------------------------------------------------------- */
.wa-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.wa-btn:hover { transform: scale(1.06); text-decoration: none; }
.wa-btn svg { width: 30px; height: 30px; fill: var(--white); }

/* Page 404 */
.page-404 { text-align: center; padding: 100px 16px; }
.page-404 h1 { font-size: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
