/* Clean Dole - feuille de style
   Palette derivee du flyer : bleu marine + blanc, accent eau (sky). */

:root {
  --navy: #1f3a5c;
  --navy-700: #16293f;
  --navy-300: #3e5c82;
  --accent: #2fa8e0;
  --accent-700: #1b7fb8;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-navy: #1f3a5c;
  --border: #e2e8f0;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow: 0 10px 30px rgba(31, 58, 92, 0.10);
  --shadow-sm: 0 4px 14px rgba(31, 58, 92, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #06263a; }
.btn-primary:hover { background: var(--accent-700); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef4fb; color: var(--navy-700); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
  font-weight: 800;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 1.25rem; letter-spacing: .2px; line-height: 1; }
.brand-name small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
}
.nav a.nav-link:hover { color: var(--accent-700); text-decoration: none; }
.nav .btn { padding: .6rem 1.1rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(20,38,62,.72), rgba(20,38,62,.82)), var(--navy) center/cover no-repeat;
  background-image: linear-gradient(rgba(20,38,62,.74), rgba(16,30,52,.86)), url("../img/hero.jpg");
}
.hero-inner { padding: 4.5rem 0 4rem; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .4em; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #dbe7f4; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  color: #eaf2fb;
}
.hero-badge svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: .6rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; }
.service-body h3 svg { width: 22px; height: 22px; color: var(--accent-700); flex: none; }
.service-body p { color: var(--muted); margin: 0 0 1rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .45rem;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.service-note {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Credit d'impot ---------- */
.tax {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff;
}
.tax .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.tax h2 { color: #fff; }
.tax p { color: #d7e3f1; }
.tax ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.tax ul li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: #eaf2fb; }
.tax ul li svg { position: absolute; left: 0; top: .15em; width: 22px; height: 22px; color: var(--accent); }
.tax-badge {
  justify-self: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2c4f78, var(--navy-700));
  border: 4px solid var(--accent);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.tax-badge .pct { font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 800; color: #fff; line-height: 1; }
.tax-badge .label { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-size: .85rem; }
.tax-badge .sub { font-size: .8rem; color: #cdddee; margin-top: .4rem; }
.tax-fineprint { font-size: .82rem; color: #aebfd2; margin-top: 1.6rem; }

/* ---------- Pourquoi ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eaf5fc;
  display: grid; place-content: center;
  margin-bottom: 1rem;
}
.feature .ico svg { width: 26px; height: 26px; color: var(--accent-700); }
.feature h3 { font-size: 1.12rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Zone d'intervention ---------- */
.zone .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.zone-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: .9rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-700);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 1.2fr .9fr; gap: 2.5rem; }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,168,224,.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-consent input { width: auto; margin-top: .25rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.contact-info {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-info h3 { color: #fff; }
.contact-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.contact-info .info-row svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-info a { color: #fff; font-weight: 700; }
.contact-info .info-row span { color: #d7e3f1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-700);
  color: #c5d3e3;
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: #c5d3e3; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem;
  font-size: .8rem;
  color: #91a4ba;
}
.footer-legal p { margin: .3rem 0; }
.placeholder {
  color: #f5c451;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: .5rem 0 1.2rem;
    transform: translateY(-130%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a.nav-link { padding: .9rem 20px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin: .8rem 20px 0; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .tax .container,
  .zone .container,
  .contact .container { grid-template-columns: 1fr; }
  .tax-badge { grid-row: 1; margin-bottom: 1rem; }
  .zone-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

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