/* =========================================================
   VERSION 2 : améliorations par-dessus style.css et dynamique.css
   Même structure, mêmes couleurs, mêmes photos, mêmes textes.
   ========================================================= */

/* ---------- Lecture : texte un peu plus épais et plus aéré ---------- */
body { font-weight: 400; font-size: 19px; line-height: 1.55; }
.text p { margin-bottom: 18px; }
.text li { margin-bottom: 8px; padding-left: 4px; }
.text li::marker { color: #B79AA8; }
.divider { border-top-width: 3px; margin: 24px 0 28px; }
.center .divider, .section-contact .divider { width: 42px; }

/* contour visible pour la navigation au clavier */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #B79AA8; outline-offset: 4px; }

/* ---------- Boutons : plus sobres (plus de reflet) ---------- */
.btn { font-weight: 500; border-width: 1.5px; }
.btn::before { display: none; }
.btn-dark { border-color: var(--violet); color: #fff; }
.btn-dark:hover { border-color: var(--violet-nuit); }
.btn:hover { translate: none; }
.hero .btn-dark, .site-header .btn-dark { border-color: var(--rose); }
.hero .btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.hero .btn-light:hover { background: #fff; color: var(--violet-nuit); }

/* ---------- En-tête : téléphone à côté du bouton ---------- */
.site-header { padding-top: 34px; }
.header-inner { padding-left: 20px; padding-right: 20px; }
.main-nav { margin-left: -20px; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 19px; }
.header-phone svg { width: 17px; height: 17px; color: var(--rose); flex: none; }
.header-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { width: auto; padding: 12px 28px; }

/* ---------- Haut de page : titre lisible, tout tient dans l'écran ---------- */
.hero { display: flex; flex-direction: column; padding: 150px 0 34px; }
.hero::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(52, 38, 72, .55) 0%, rgba(44, 31, 63, .72) 62%, rgba(44, 31, 63, .64) 100%);
}
.hero-inner { margin-top: auto; margin-bottom: auto; grid-template-columns: 400px minmax(0, 1fr); gap: 90px; padding-left: 20px; }
.hero-text { max-width: 600px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 50px; line-height: 1.15; margin: 0 0 24px; }
.hero h1 .ligne { display: block; }
.hero h1 .tiret { display: block; height: 0; overflow: hidden; }
.hero-text p { font-size: 21px; line-height: 1.5; }
.hero .btn-row { margin-top: 36px; }
.scroll-down { margin: 30px auto 0; flex: none; }

/* ---------- Présentation ---------- */
#presentation { padding: 110px 0 0; }
#presentation .text p:first-child { font-size: 22px; line-height: 1.45; color: var(--violet-nuit); }

/* repères du parcours (informations déjà présentes dans le texte) */
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid #E2D3D8; border-bottom: 1px solid #E2D3D8; }
.reperes li { padding: 26px 24px; border-left: 1px solid #E2D3D8; font-size: 17px; line-height: 1.35; }
.reperes li:first-child { border-left: 0; padding-left: 0; }
.reperes strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.2; color: var(--violet); }

.section-quote { padding: 80px 0 90px; }
.quote { font-size: 27px; line-height: 1.5; color: var(--violet); padding-bottom: 0; text-wrap: balance; }

/* ---------- Bandeau valeurs ---------- */
.band-values { padding: 100px 0; }
.band-values::before { opacity: .8; }
.big-statement { font-size: 40px; line-height: 1.3; max-width: 900px; margin-bottom: 44px; text-wrap: balance; }

/* ---------- Services ---------- */
#services { padding: 100px 0 110px; }
.intro { font-weight: 400; font-size: 21px; line-height: 1.45; margin-bottom: 64px; padding-top: 0; }
.services-grid { gap: 60px; padding: 0; grid-template-columns: 400px minmax(0, 1fr); }
.photo-codes { width: 400px; height: 560px; position: sticky; top: 110px; }
.accordion details,
.accordion details:last-child { margin: 0; border-bottom: 1px solid #DCD3E4; }
.accordion details:first-child { border-top: 1px solid #DCD3E4; }
.accordion summary { height: auto; min-height: 72px; padding: 18px 0; gap: 20px; flex-direction: row-reverse; justify-content: space-between; font-size: 23px; line-height: 1.3; color: var(--violet-nuit); }
.accordion details[open] summary { color: var(--violet); }
.accordion summary:hover h3 { transform: none; }
.accordion .chev { width: 15px; height: 15px; color: var(--violet); }
.accordion .text { padding: 0 0 26px; }
/* titre du domaine + aperçu de ce qu'il contient */
.titre { display: block; }
.apercu { display: block; margin-top: 4px; font-family: var(--sans); font-size: 17px; line-height: 1.35; color: #6A5B7B; }
/* une ligne par thème : titre à gauche, prestations à droite */
.theme { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid #EEE9F2; }
.theme h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--violet); }
.accordion .theme ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.accordion .theme li { margin: 0; padding: 0; line-height: 1.4; }
.theme li strong { display: block; font-weight: 500; color: var(--violet-nuit); }
.theme li span { display: block; font-size: 17px; line-height: 1.4; color: #5B4C6C; }

/* ---------- Proximité ---------- */
.card-proximite { width: 640px; margin-right: 0; padding: 64px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 50px rgba(29, 20, 41, .14); }
.card-proximite:hover { translate: none; box-shadow: 0 20px 50px rgba(29, 20, 41, .14); }
.card-head { height: auto; padding: 0; margin-bottom: 24px; }
.icon-box { width: 84px; height: 84px; border: 0; border-radius: 16px 0; background: var(--rose); }
.icon-box svg { width: 44px; height: 34px; }
.card-proximite.is-visible .icon-box svg, .card-proximite:hover .icon-box svg { animation: none; }
.card-proximite h2, .section-cabinet h2 { text-transform: none; }
.card-proximite .btn-block { display: inline-block; width: auto; }

/* ---------- Honoraires : les modes de calcul en encarts ---------- */
#honoraires { padding: 90px 0 80px; }
#honoraires .text ul.modes { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 14px; }
#honoraires .text ul.modes li,
#honoraires .text ul.modes li:first-child { margin: 0; padding: 22px 26px; background: var(--lavande); border-radius: 16px 0; }
.modes strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--violet); }

/* ---------- Cabinet ---------- */
.section-cabinet { padding: 80px 0 100px; }
.photo-scm { max-width: 480px; }
.signature { font-family: var(--serif); font-size: 21px; color: var(--violet); }
.signature .ico-gavel { color: #B79AA8; }

/* ---------- Contact ---------- */
.section-contact { padding: 100px 0; }
.contact-split { grid-template-columns: minmax(0, 1fr) 560px; gap: 80px; }
.contact-split .form-card { left: 0; margin-right: 0; width: 100%; }
.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.coordonnees li { display: flex; align-items: flex-start; gap: 16px; line-height: 1.4; }
.coordonnees svg { width: 19px; height: 19px; margin-top: 4px; flex: none; color: var(--violet); }
.coordonnees a { color: var(--violet-nuit); text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; text-underline-offset: 4px; }
.coordonnees .tel { font-weight: 700; font-size: 21px; }
.phone:hover svg { animation: none; }

.form-card { padding: 44px; box-shadow: 0 20px 50px rgba(29, 20, 41, .10); }
.form-card:focus-within { translate: none; box-shadow: 0 20px 50px rgba(29, 20, 41, .14); }
#contact-form { width: 100%; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.champ { display: block; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ > span { display: block; margin-bottom: 6px; font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--violet-nuit); }
.champ > span small { font-size: 15px; font-weight: 400; color: #6A5B7B; }
#contact-form input, #contact-form textarea { height: 48px; padding: 10px 14px; border: 1px solid #A79BB5; border-radius: 8px 0; }
#contact-form textarea { height: 140px; }
.note-donnees { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.45; color: #5B4C6C; }
.note-donnees a { text-underline-offset: 3px; }
#contact-form .btn { grid-column: 1 / -1; align-self: auto; justify-self: start; min-width: 190px; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; }
.footer-line { border-top-color: #4A3B60; width: 100%; }

/* ---------- Pages légales et 404 ---------- */
.site-header.solid { padding: 16px 0; }
.page-legale { padding-top: 140px; }

/* =========================================================
   Tablette (≤ 1024 px)
   ========================================================= */
@media (max-width: 1024px) {
  body { font-size: 18px; }
  .site-header { padding-top: 22px; }
  .header-inner { padding: 0 40px; }
  .header-phone { font-size: 18px; }
  .main-nav a { padding-left: 14px; padding-right: 14px; }
  .main-nav { margin-left: -14px; }
  .main-nav a::after { left: 14px; right: 14px; }
  .header-actions { gap: 18px; }
  .hero { padding: 130px 0 34px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 0 40px; }
  .hero-logo { width: 280px; }
  .hero-text { max-width: 640px; text-align: center; }
  .hero h1 { font-size: 46px; }
  .services-grid { grid-template-columns: 1fr; }
  .photo-codes { position: static; width: 100%; height: auto; }
  .card-proximite { width: auto; margin-right: auto; padding: 50px; }
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-split .form-card { max-width: none; margin: 0; }
}
/* entre téléphone et petite tablette, le numéro laisse la place au menu */
@media (max-width: 900px) and (min-width: 768px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
}

/* =========================================================
   Mobile (≤ 767 px) : on garde la disposition de la version 1
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 18px; line-height: 1.5; }
  .container { padding: 0 24px; }
  #services .container, #honoraires .container, .section-cabinet .container, .section-contact .container { padding: 0 24px; }
  .divider, .center .divider, .section-contact .divider { margin: 22px 0 24px; }
  .center .divider { margin-left: auto; margin-right: auto; }

  .site-header { padding: 14px 0; }
  .header-inner { padding: 0 22px; gap: 14px; }
  .main-nav { margin-left: 0; }
  .main-nav a { padding: 14px 22px; }
  .main-nav a::after { left: 22px; right: 22px; }
  .header-actions { gap: 14px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; }
  .header-phone span { display: none; }
  .header-phone svg { width: 20px; height: 20px; }
  .header-cta { padding: 10px 18px; }

  .hero { padding: 100px 0 26px; }
  .hero-inner { gap: 28px; padding: 0 24px; margin-top: 0; margin-bottom: 0; }
  .hero-logo { width: 190px; }
  .scroll-down { margin-top: auto; }
  .hero h1 { font-size: clamp(22px, 7.4vw, 36px); line-height: 1.2; margin-bottom: 18px; }
  .hero-text p { font-size: 18px; }
  .hero .btn-row { margin-top: 28px; gap: 14px; }
  .hero .btn-row .btn { width: 100%; max-width: 300px; }

  #presentation { padding: 80px 0 0; }
  #presentation .text p:first-child { font-size: 20px; }
  .reperes { grid-template-columns: 1fr; margin-top: 50px; }
  .reperes li, .reperes li:first-child { border-left: 0; padding: 18px 0; }
  .reperes li + li { border-top: 1px solid #E2D3D8; }
  .reperes strong { font-size: 23px; margin-bottom: 2px; }
  .section-quote { padding: 64px 0 72px; }
  .quote { font-size: 23px; line-height: 1.45; }

  .band-values { padding: 76px 0; }
  .big-statement { font-size: 28px; line-height: 1.3; margin-bottom: 36px; }

  #services { padding: 72px 0; }
  .intro { font-size: 19px; margin-bottom: 40px; }
  .photo-codes { width: 100%; height: 340px; margin: 0; }
  .accordion summary { font-size: 21px; line-height: 1.3; min-height: 64px; }
  .apercu { font-size: 16px; }
  .theme { grid-template-columns: 1fr; gap: 12px; }
  .theme h4 { font-size: 19px; }

  .card-proximite { margin: 0 0 -81px; padding: 32px 28px; }
  .card-head { gap: 20px; padding: 0; }
  .icon-box { width: 76px; height: 76px; }
  .icon-box svg { width: 40px; height: 31px; }
  .card-proximite .btn-block { display: block; width: 100%; }

  #honoraires { padding: 64px 0; }
  #honoraires .text ul.modes { margin: 8px 0 24px; }
  #honoraires .text ul.modes li, #honoraires .text ul.modes li:first-child { padding: 20px 22px; }
  .section-cabinet { padding: 64px 0 76px; }
  .signature { font-size: 19px; }

  .section-contact { padding: 76px 0; }
  .contact-split .form-card { padding: 28px 22px; }
  #contact-form { grid-template-columns: 1fr; gap: 18px; }
  #contact-form input, #contact-form textarea { font-size: 16px; font-weight: 400; line-height: 1.5; height: 48px; padding: 10px 14px; }
  #contact-form textarea { height: 130px; }
  #contact-form .btn { width: 100%; margin: 0; }
  .footer-grid, .footer-bottom { padding-left: 24px; padding-right: 24px; }
}
