/* =========================================================
   IACAS — Styles
   Charte: Pêche Rosée #E57373, Thé Vert #B2DFBC, Ivoire #F5F5F0
   Typo: Sora (titres), Lexend (texte)
========================================================= */

:root{
  --bg: #F5F5F0;
  --surface: #FFFFFF;
  --text: #3D3D3D;
  --muted: #6B6B6B;

  --primary: #E57373;  /* CTA */
  --secondary: #B2DFBC;/* Success/positive */

  --shadow: 0 18px 45px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-sm: 12px;

  --container: min(100vw, 1120px);
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible{
  outline: 3px solid rgba(229,115,115,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Typography */
h1, h2, h3{
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 .6rem 0;
}
h1{ font-weight: 800; font-size: clamp(2rem, 3.3vw, 3rem); }
h2{ font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
h3{ font-weight: 600; font-size: 1.25rem; }
p{ margin: 0 0 1rem 0; }
.muted{ color: var(--muted); }
.lead{ font-size: 1.05rem; max-width: 58ch; }

/* Helpers */
.container{
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}
.section{
  padding: clamp(3.2rem, 6vw, 5rem) 0;
}
.section--alt{
  background: #e8e3d8;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.section__head{
  display: grid;
  gap: .4rem;
  margin-bottom: 1.8rem;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--surface);
  padding: .75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}
.skip-link:focus{ left: 1rem; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,245,240,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.brand__mark{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(229,115,115,.16);
  color: var(--primary);
  font-weight: 800;
  font-family: "Sora";
}
.brand__name{
  font-family: "Sora";
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__logo{
  height: 150px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav a{
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover{ color: var(--text); }

.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: .5rem;
  border-radius: 12px;
}
.nav-toggle__bar{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 10px;
}

/* Bandeau construction */
.construction-banner{
  background: rgba(245,245,240,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
    color: #E57373;
    padding: .65rem 1.2rem;
    border-top: 1px solid rgba(0,0,0,.06);
    text-align: left;
    font-size: 1.35rem;
}
.construction-banner span{
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: .3px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(229,115,115,.35);
}
.btn--primary:hover{ box-shadow: 0 18px 36px rgba(229,115,115,.42); }

.btn--ghost{
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.08);
}
.btn--ghost:hover{ background: rgba(255,255,255,.95); }

.btn--sm{
  padding: .65rem .9rem;
  border-radius: 12px;
}

/* Hero */
.hero{
  padding: clamp(2.6rem, 5vw, 4rem) 0;
}
.hero__grid{
  display: grid;
  align-items: center;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 750px;
}
.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.2rem 0 1rem;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(178,223,188,.35);
  border: 1px solid rgba(178,223,188,.6);
  padding: .45rem .75rem;
  border-radius: 999px;
  font-weight: 500;
  width: fit-content;
}
.badge__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--secondary);
}
.trust{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  color: var(--muted);
}

.hero__card{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,.06);
}
.card-ui{
  border-radius: 16px;
  background: rgba(245,245,240,.55);
  padding: 1rem;
}
.card-ui__top, .card-ui__bottom{
  display: flex;
  justify-content: space-between;
  gap: .6rem;
}
.pill{
  font-size: .9rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--muted);
}
.pill--ok{
  background: rgba(178,223,188,.45);
  border-color: rgba(178,223,188,.7);
  color: #2f5b3a;
}
.card-ui__body{ margin: 1rem 0; }
.line{
  height: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
  margin-bottom: .65rem;
}
.line--short{ width: 68%; }
.mini-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .9rem;
}
.mini{
  height: 34px;
  border-radius: 12px;
  background: rgba(229,115,115,.12);
  border: 1px solid rgba(229,115,115,.18);
}
.kpi{ color: var(--muted); }
.kpi strong{ color: var(--text); }

/* Cards (offers) */
.cards{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}
.list{
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.list li{ margin: .35rem 0; }

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}
.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.step__n{
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(229,115,115,.14);
  color: var(--primary);
  font-family: "Sora";
  font-weight: 800;
}

/* Benefits */
.grid-3{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.stat{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.stat__kpi{
  color: var(--muted);
  margin: 0 0 .35rem;
}
.stat__value{
  font-family: "Sora";
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 .25rem;
}
.stat__desc{ color: var(--muted); margin: 0; }

/* FAQ */
.faq{
  display: grid;
  gap: .75rem;
}
.faq__item{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.faq__item summary{
  cursor: pointer;
  font-weight: 600;
  font-family: "Sora";
}
.faq__item p{ margin: .7rem 0 0; color: var(--muted); }

/* Contact */
.contact{
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
}
.contact__box{
  background: rgba(178,223,188,.28);
  border: 1px solid rgba(178,223,188,.6);
  border-radius: var(--radius);
  padding: 1rem;
}
.contact__hint{ margin: 0; color: #2f5b3a; }

.form{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  display: grid;
  gap: .85rem;
}
label span{
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
}
input, textarea{
  width: 100%;
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(245,245,240,.45);
  font: inherit;
  color: var(--text);
}
textarea{ resize: vertical; min-height: 120px; }
.form__meta{ font-size: .92rem; margin: .2rem 0 0; }

/* Footer */
.footer{
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__links{
  display: flex;
  gap: 1rem;
  color: var(--muted);
}
.footer__links a:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    position: absolute;
    right: 1rem;
    top: 64px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: .9rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .nav a{ padding: .5rem .4rem; }
  .nav.is-open{ display: flex; }
  /* Badge SSL dans le menu mobile */
  #ssl-badge {
    margin-top: 0.5rem;
    justify-content: center;
  }
}
.texte-defilant { white-space: nowrap; display: inline-block; ; animation: defilement 12s linear infinite; }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Bandeau cookies RGPD */
.cookie-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 1.2rem 0;
  z-index: 45;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.4s;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out, visibility 0s linear 0s;
}

.cookie-banner__content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  min-width: 280px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__link:hover {
  color: var(--text);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}
