/* ============================================================
   Analogowy Tomatis — feuille de style
   Palette : bleu nuit + ambre (chaleur « analogique »)
   ============================================================ */

:root {
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1b4079;
  --navy-600: #2a5da8;
  --amber: #e8a33d;
  --amber-dark: #c9842a;
  --ink: #1a2433;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-muted: #f4f6fb;
  --bg-soft: #eef2fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(11, 37, 69, 0.25);
  --shadow-lg: 0 24px 50px -20px rgba(11, 37, 69, 0.35);
  --container: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 1rem; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--navy-900); }
.brand__icon { width: 28px; height: 28px; color: var(--navy-700); display: inline-flex; }
.brand__icon svg { width: 100%; height: 100%; }
.brand__name { font-size: 1.2rem; letter-spacing: -.01em; }
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__icon { color: var(--amber); }

.nav__links { margin-left: auto; display: flex; gap: 1.6rem; }
.nav__links a { color: var(--ink); font-weight: 500; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--amber); transition: width .2s;
}
.nav__links a:hover::after { width: 100%; }

.nav__lang select {
  font: inherit; font-size: .9rem; padding: .35rem 1.6rem .35rem .6rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6878' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: .5rem 1.25rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.nav__mobile a { padding: .7rem .25rem; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: #eef2fb; color: var(--navy-900); box-shadow: var(--shadow); }
.btn--outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy-900); }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(232,163,61,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; text-align: center; padding: clamp(4rem, 10vw, 7rem) 0;
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.hero__subtitle { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: #d6e0f0; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--muted { background: var(--bg-muted); }
.section--contact { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.01em; }
.section__subtitle { color: var(--muted); font-size: 1.1rem; margin-top: .75rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about__text p { font-size: 1.08rem; color: #33414f; }
.about__text .section__title { margin-bottom: 1.25rem; text-align: left; }
.about__media {
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about__media img { border-radius: var(--radius-sm); }

/* ---------- Cartes produits ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 60px; height: 60px; border-radius: var(--radius-sm); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--navy-700);
}
.card__icon svg { width: 32px; height: 32px; }
.card__title { font-size: 1.25rem; margin-bottom: .6rem; }
.card__desc { color: #44515f; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }

.link { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link__ext { width: 15px; height: 15px; display: inline-flex; }
.link__ext svg { width: 100%; height: 100%; }

.badge { font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.badge--green { background: #e3f5ec; color: #1f7a4d; }
.badge--blue { background: var(--bg-soft); color: var(--navy-700); }
.badge--amber { background: #fbf0db; color: var(--amber-dark); }

/* ---------- Approche ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; text-align: center;
}
.feature__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--amber);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__title { font-size: 1.2rem; margin-bottom: .5rem; }
.feature__desc { color: var(--muted); }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; margin: 0; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: .2rem; left: 1rem;
  font-size: 3.5rem; line-height: 1; color: var(--amber); opacity: .35; font-family: Georgia, serif;
}
.testimonial__quote {
  margin: 1rem 0 1.5rem; padding: 0; border: 0; flex: 1;
  font-size: 1.05rem; font-style: italic; color: #33414f;
}
.testimonial__author { display: flex; align-items: center; gap: .9rem; }
.testimonial__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.testimonial__meta { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 700; color: var(--navy-900); }
.testimonial__role { font-size: .85rem; color: var(--muted); }
.testimonials__source { text-align: center; margin-top: 2rem; font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.contact__form { padding: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42,93,168,.15);
}
.field textarea { resize: vertical; }

.form-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status--sending { background: var(--bg-soft); color: var(--navy-700); }
.form-status--success { background: #e3f5ec; color: #1f7a4d; }
.form-status--error { background: #fdecec; color: #b3261e; }

.contact__info { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.info-card__title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: .8rem; }
.info-card__icon { width: 22px; height: 22px; color: var(--navy-700); display: inline-flex; }
.info-card__icon svg { width: 100%; height: 100%; }
.office-list, .contact-lines { list-style: none; margin: 0; padding: 0; }
.office-list li, .contact-lines li { padding: .2rem 0; }
.contact-lines a { font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.contact-lines + .small, .info-card .small { margin-top: .6rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c7d2e2; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding: 3rem 1.25rem; }
.footer__tagline { margin-top: 1rem; color: #9fb0c8; max-width: 32ch; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer__col a { color: #c7d2e2; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .9rem; }
.footer__bottom p { margin: 0; color: #9fb0c8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about__media { order: -1; }
  .cards, .features, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__lang { margin-left: auto; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .cards, .features, .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

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