/* =========================================================================
   Cabinet De Oliveira Dghimi Laetitia — site vitrine une page
   Repris de la maquette Claude Design "Site Cabinet De Oliveira Dghimi".
   ========================================================================= */

:root {
  /* Palette (cf. planche "Styles" de la maquette) */
  --rose:            #F0D3D9;   /* bouton principal */
  --rose-hover:      #E9C4CB;
  --rose-border:     #E3BFC7;
  --rose-bg:         #FDF8F9;   /* fond rose léger */
  --rose-bg-2:       #F8EEF0;   /* barre utilitaire, étiquette pleine */
  --rose-bg-border:  #EFDCE0;
  --accent:          #C79AA3;   /* icônes, filets */
  --accent-strong:   #E9C4CB;   /* filet haut des chiffres clés */
  --blue-grey:       #6E8291;   /* liens */
  --blue-grey-hover: #4F6472;
  --grey-blue-bg:    #F4F6F7;   /* section Modalités */
  --grey-blue-border:#DDE3E7;
  --footer-bg:       #2F3A41;
  --footer-rule:     #47535B;
  --footer-text:     #C3CCD1;
  --footer-faint:    #AEB9BF;

  --ink:    #2A2726;   /* texte principal */
  --ink-2:  #3D3835;
  --ink-3:  #4A423E;   /* corps de texte */
  --muted:  #5C534F;
  --muted-2:#6B6360;
  --field-border: #E0DAD5;
  --hairline: #EDEAE6;
  --canvas: #EFEDEA;
  --white: #FFFFFF;

  /* Rayons */
  --r-field: 8px;
  --r-btn: 10px;
  --r-card: 12px;

  --tap: 48px;                    /* zone tactile minimale */
  --pad: clamp(20px, 5vw, 72px);  /* marge horizontale des sections */
  --maxw: 1440px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.15; text-wrap: pretty; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 21px); }
p  { margin: 0; }

a { color: var(--blue-grey); text-decoration: none; }
a:hover { color: var(--blue-grey-hover); text-decoration: underline; }

img, iframe { max-width: 100%; }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

.overline {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A817B;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--rose);
  --btn-fg: var(--ink);
  --btn-bd: var(--rose-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; background: var(--rose-hover); border-color: var(--rose-hover); color: var(--ink); }
.btn--primary { --btn-bg: var(--rose); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: #DAD5CF;
  --btn-fg: var(--ink-2);
}
.btn--ghost:hover { background: rgba(0,0,0,.03); border-color: #cfc9c2; color: var(--ink-2); }
.btn--lg { padding: 15px 26px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Barre utilitaire ---------- */
.topbar {
  background: var(--rose-bg-2);
  border-bottom: 1px solid var(--rose-bg-border);
  color: var(--muted);
  font-size: 16px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
}
.topbar__zone { margin: 0; }
.topbar__hours { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.topbar__hours span { color: var(--accent); font-size: 11px; vertical-align: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(42,39,38,.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding-block: 16px;
}

.brand { order: 1; display: flex; flex-direction: column; gap: 2px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__name { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
.brand__role { font-size: 16px; color: var(--muted); }

.nav { order: 2; display: flex; gap: 26px; font-size: 17px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

.header-cta { order: 3; display: flex; align-items: center; gap: 14px; }
.tel-strong {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.tel-strong:hover { color: var(--ink); }

.nav-toggle {
  order: 3;
  display: none;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid #DAD5CF;
  border-radius: var(--r-btn);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--ink-2); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--rose-bg); border-bottom: 1px solid var(--hairline); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 76px);
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.lead {
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.hero__media {
  align-self: stretch;
  min-height: 300px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-bg) 0%, var(--rose) 100%);
}
.hero__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.hero__media.is-fallback {
  position: relative;
  min-height: 340px;
}
.hero__media.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(255,255,255,.55) 0 22%, transparent 60%),
    radial-gradient(circle at 18% 82%, rgba(255,255,255,.4) 0 24%, transparent 60%);
}

/* ---------- Étiquettes (pills) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pill {
  font-size: 16px;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--rose-bg-border);
  padding: 10px 16px;
  border-radius: 999px;
}

/* ---------- Sections génériques ---------- */
.section { padding-block: clamp(48px, 8vw, 84px); }
.section--rose { background: var(--rose-bg); }
.section--grey { background: var(--grey-blue-bg); }

.section__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.section__grid--half { grid-template-columns: 1fr 1fr; align-items: center; }
.section__grid--top { align-items: start; }
.section__body { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.section__body h2 + p { margin-top: -4px; }
.section__aside .overline { display: block; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 34px;
}
.section__head > div { display: flex; flex-direction: column; gap: 12px; }
.section__head h2 { margin-top: 2px; }
.section__head--stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.section__head-note {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- Chiffres clés (Présentation) ---------- */
.facts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.facts li { border-top: 2px solid var(--accent-strong); padding-top: 14px; }
.facts__title { display: block; font-size: 17px; font-weight: 700; }
.facts__desc { display: block; font-size: 16px; color: var(--muted); padding-top: 4px; }

/* ---------- Cartes ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--rose-bg-border);
  border-radius: var(--r-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cards--plain .card { border-color: transparent; }
.section--grey .cards--plain .card { box-shadow: 0 1px 2px rgba(42,39,38,.04); }
.card__icon { color: var(--accent); flex: none; }
.card h3 { font-weight: 700; }
.card p { font-size: 17px; line-height: 1.6; color: var(--ink-3); }

/* ---------- Notes ---------- */
.note {
  margin-top: 28px;
  font-size: 16px;
  color: var(--muted);
}
.note--rose { border-left: 2px solid var(--accent-strong); padding-left: 16px; }
.section--grey .note { color: #55606A; }

/* ---------- Zone / carte ---------- */
.addr { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.addr__label { font-size: 18px; font-weight: 700; }
.addr address { font-style: normal; font-size: 18px; line-height: 1.6; color: var(--ink-3); }

.map {
  height: clamp(280px, 42vw, 420px);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--grey-blue-border);
  background: var(--grey-blue-bg);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.coords { margin: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.coords > div { display: flex; flex-direction: column; gap: 4px; }
.coords dt { font-size: 16px; color: var(--muted); }
.coords dd { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; }
.coords__tel { font-size: 28px; font-weight: 700; color: var(--ink); }
.coords__tel:hover { color: var(--ink); }

.streetview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 18px;
  border: 1px solid var(--grey-blue-border);
  border-radius: var(--r-card);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0 10px, rgba(0,0,0,0) 10px 20px),
    var(--grey-blue-bg);
  color: #55606A;
  font-size: 16px;
  font-weight: 600;
}
.streetview:hover { text-decoration: none; color: var(--ink-2); border-color: #cfd6da; }
.streetview svg { flex: none; }

.contact-form {
  background: var(--rose-bg);
  border: 1px solid var(--rose-bg-border);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form h3 { font-size: 21px; }
.hp-field { display: none !important; }
.contact-form__intro { font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--r-field);
  padding: 14px 14px;
  min-height: var(--tap);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--blue-grey); outline-offset: 1px; border-color: var(--blue-grey); }
.contact-form__legal { font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.contact-form__status {
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: #EAF3EC;
  border: 1px solid #CDE4D3;
  color: #2F5D3A;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #E8ECEE;
  padding-block: clamp(36px, 6vw, 54px);
  font-size: 16px;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer__cols > div,
.site-footer__links { display: flex; flex-direction: column; gap: 6px; }
.site-footer__cols p { margin: 0; color: var(--footer-text); }
.site-footer__name { font-size: 19px; font-weight: 700; color: #fff !important; }
.site-footer__links { gap: 8px; }
.site-footer hr { border: 0; height: 1px; background: var(--footer-rule); margin: 24px 0; }
.site-footer__disclaimer { font-size: 15px; line-height: 1.6; color: var(--footer-faint); max-width: 900px; margin: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
/* En-tête : bascule en menu déroulant plus tôt que le reste, faute de place */
@media (max-width: 1024px) {
  :root { --header-h: 128px; }
  .nav-toggle { display: flex; }

  .nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--hairline); }

  .header-cta {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }
  .header-cta .tel-strong {
    flex: 1 1 auto;
    min-height: var(--tap);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose-bg-2);
    border: 1px solid var(--rose-bg-border);
    border-radius: var(--r-btn);
  }
  .header-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 1080px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .section__grid { grid-template-columns: 1fr; }
  .section__aside .overline { margin-bottom: -8px; }
  .section__grid--half { grid-template-columns: 1fr; align-items: start; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-top: 0; border-left: 2px solid var(--accent-strong); padding: 2px 0 2px 14px; }
}

@media (max-width: 900px) {
  .topbar__zone { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar { text-align: center; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; min-height: 210px; }
  .hero__media img { min-height: 210px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__head-note { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .cards--3 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .hero__actions .btn { width: 100%; }
  .coords__tel { font-size: 24px; }
}

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