/* =========================================================
   Axelle Testini - Avocat : site one-page en HTML/CSS
   Couleurs, polices et mesures relevées sur le site d'origine
   (grand écran > 1024 px, tablette ≤ 1024 px, mobile ≤ 767 px)
   Polices : fonts.css (fichiers dans fonts/) — Images : img/
   ========================================================= */

:root {
  --violet: #44335C;      /* boutons, titres */
  --violet-nuit: #1D1429; /* pied de page, textes forts */
  --violet-texte: #362849;/* texte courant */
  --rose: #F1DEDE;        /* filets, icônes, fonds doux */
  --lavande: #F7F5FA;     /* fond contact, bouton clair */
  --blanc: #FDFDFD;
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --radius: 20px 0;       /* coins arrondis en diagonale (signature du site) */
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--violet-texte);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 20px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Deux colonnes égales (présentation, honoraires, cabinet) */
.split, .cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

/* Photos en noir et blanc (comme l'original) */
.photo-codes, .photo-rotonde, .photo-scm { filter: saturate(0); }

/* ---------- Titres et textes ---------- */
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 35px;
  line-height: 1.1;
  color: var(--violet);
  margin: 0;
}
.divider {
  display: block;
  width: 42px;
  height: 0;
  border-top: 4.8px solid var(--rose);
  margin: 35px 0 34px;
}
.center .divider { margin-left: auto; margin-right: auto; width: 56px; }
.section-contact .divider { width: 26px; }

.text p { margin: 0 0 14.4px; }
.text ul { margin: 0; padding-left: 40px; }
.text li { margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 17.6px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 10px 0;
  border: 2.4px solid;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-dark { background: var(--violet); color: var(--rose); border-color: var(--rose); }
.btn-dark:hover { background: var(--violet-nuit); }
.btn-light { background: var(--lavande); color: var(--violet-nuit); border-color: var(--violet-nuit); }
.btn-light:hover { background: var(--rose); }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 80px 0 0;
  transition: background-color .3s, padding .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(29, 20, 41, .94);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-left: 30px; padding-right: 29px; }
.main-nav { display: flex; }
.main-nav a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 20px;
  line-height: 26px;
  padding: 13px 20px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 8px;
  border-top: 2px solid var(--rose);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { width: 324px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--blanc); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #F7F5FA;
  background: url("img/sainte-victoire-aix-en-provence002.webp") center / cover no-repeat fixed;
  padding: 344px 0 99px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violet);
  opacity: .58;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 470px 505px;
  gap: 50px;
  align-items: center;
  padding-left: 30px;
}
.hero-logo { width: 305px; justify-self: center; }
.hero h1 { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 26px; margin: 0 0 20px; }
.hero-text p { margin: 0 0 14.4px; }
.hero .btn-row { margin-top: 54.4px; }
.scroll-down {
  position: relative;
  display: block;
  width: 41px;
  height: 41px;
  margin: 193px auto 0;
  color: var(--blanc);
  animation: bounce 2s infinite;
}
.scroll-down svg { width: 41px; height: 41px; }
@keyframes bounce {
  0%, 100% { translate: 0 0; opacity: .9; }
  50% { translate: 0 8px; opacity: .5; }
}

/* ---------- Présentation ---------- */
#presentation { padding: 100px 0 10px; }
.photo { border-radius: var(--radius); }
.photo-portrait { height: 555px; width: auto; justify-self: center; }

.section-quote { padding: 100px 0; }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  max-width: 930px;
  margin: 0 auto;
  padding-bottom: 14.4px;
  color: var(--violet-texte);
}

/* ---------- Bandeau valeurs ---------- */
.band { position: relative; }
.band-values {
  background: url("img/sainte-victoire-aix-en-provence002.webp") center / cover no-repeat fixed;
  padding: 100px 0 90px;
  text-align: center;
}
.band-values::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  opacity: .66;
}
.band-inner { position: relative; }
.big-statement {
  font-family: var(--serif);
  font-size: 50px;
  line-height: 55px;
  color: var(--violet-nuit);
  max-width: 950px;
  margin: 0 auto 70px;
}

/* ---------- Services ---------- */
#services { padding: 70px 0 90px; }
.intro { font-weight: 700; max-width: 641px; margin: 0 auto 144px; padding-top: 11px; }
.services-grid { display: grid; grid-template-columns: 412px 1fr; gap: 40px; align-items: start; padding: 0 20px; }
.photo-codes { width: 412px; height: 616px; object-fit: cover; }

.accordion details { margin-bottom: 10px; }
.accordion details:last-child { margin-bottom: 0; }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 10px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 30px;
  color: #1F2124;
}
.accordion summary::-webkit-details-marker { display: none; }
/* titres des services : balises h3 pour Google, même apparence qu'avant */
.accordion summary h3 { font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: inherit; }
address { font-style: normal; }
.accordion .chev { width: 13px; height: 15px; flex: none; transition: transform .25s; }
.accordion details[open] .chev { transform: rotate(180deg); }
.accordion .text { padding: 20px 10px 10px; }

/* ---------- Proximité ---------- */
.band-proximite {
  /* comme l'original : image à sa taille réelle, calée en haut à gauche */
  background: var(--rose) url("img/avocat-aix-en-provence-02.webp") 0 0 / auto no-repeat;
  padding: 60px 0;
  margin-bottom: 140px;
}
.card-proximite {
  position: relative;
  width: 706px;
  margin-left: auto;
  margin-right: -11px;
  margin-bottom: -150px; /* l'encart déborde sous le bandeau, comme l'original */
  background: var(--lavande);
  border: 1.6px solid var(--violet);
  padding: 90px;
}
.card-head { display: flex; align-items: center; gap: 25px; height: 130px; padding: 10px; margin-bottom: 20px; }
.icon-box {
  flex: none;
  width: 105px; height: 105px;
  border: 2.4px solid var(--violet);
  display: grid;
  place-items: center;
  color: var(--violet);
}
.icon-box svg { width: 52px; height: 40px; }
.card-proximite h2 { text-transform: uppercase; }
.card-proximite .text { margin: 0 0 35.4px; }

/* ---------- Honoraires ---------- */
#honoraires { padding: 70px 0 71px; }
#honoraires .text ul { margin: 34.4px 0 20px; }
#honoraires .text li:first-child { margin-bottom: 26px; } /* ligne vide de l'original */
.photo-rotonde { width: 100%; }

/* ---------- Cabinet ---------- */
.section-cabinet { padding: 70px 0; }
.photo-scm { width: 100%; }
.section-cabinet h2 { text-transform: uppercase; }
.section-cabinet .text { margin: 0 0 34.4px; }
.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--violet-nuit);
  font-weight: 500;
}
.signature .ico-gavel { width: 33px; height: 33px; color: var(--rose); flex: none; }

/* ---------- Contact ---------- */
.section-contact { background: var(--lavande); padding: 90px 0; }
.contact-split { grid-template-columns: 514px 556px; justify-content: space-between; align-items: start; }
.contact-split .form-card { justify-self: end; position: relative; left: -20px; }
.contact-split > div:first-child { padding-top: 10px; }
.section-contact .text { margin-bottom: 34.4px; }
.phone { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--violet-nuit); margin: 0; }
.phone svg { width: 25px; height: 25px; color: var(--rose); flex: none; }
.phone a { text-decoration: none; }

.form-card {
  width: 556px;
  margin-right: -11px;
  background: var(--blanc);
  padding: 30px;
  border-radius: 30px 0;
  box-shadow: 9px 13px 10px rgba(0, 0, 0, .21);
}
#contact-form { width: 397px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
#contact-form input,
#contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--violet-texte);
  background: #fff;
  border: .8px solid #69727D;
  border-radius: 3px;
  padding: 8px 16px;
  height: 42px;
}
#contact-form input:focus,
#contact-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
#contact-form textarea { resize: vertical; height: 108px; }
#contact-form .btn { align-self: center; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 12px 16px; margin-bottom: 18px; border-radius: 10px 0; font-size: 16px; }
.form-message.ok { background: #E7F3EA; color: #1E5631; }
.form-message.erreur { background: #FBE9E9; color: #8A1F1F; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--violet-nuit); color: var(--blanc); font-size: 16px; line-height: 24px; padding: 70px 0 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 153px 518px 249px; gap: 30px 100px; align-items: start; padding: 0 20px 10px; }
.footer-logo { width: 153px; border-radius: var(--radius); }
.site-footer h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 24px; color: var(--rose); margin: 0 0 20px; }
.site-footer p { margin: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 27px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; min-height: 32px; margin-bottom: 5px; }
.footer-contact svg { width: 19px; height: 19px; margin-top: 4px; flex: none; color: var(--blanc); }
.footer-line-wrap { padding: 0 10px; }
.footer-line { margin: 25px auto; width: 95%; border-top: .8px solid var(--violet-texte); }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px 20px 40px;
  color: #F7F5FA;
}
.footer-bottom .legal { text-align: right; }

/* ---------- Mentions légales ---------- */
.page-legale { padding: 160px 0 90px; }
.page-legale .container { max-width: 968px; }
.page-legale h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.2; color: var(--violet); margin: 0; }
.page-legale h2 { font-size: 26px; margin: 40px 0 12px; }
.page-legale .todo { background: #FFF4CC; padding: 0 4px; }
.site-header.solid { background: var(--violet-nuit); padding: 20px 0; }

/* =========================================================
   Tablette (≤ 1024 px) : tout passe sur une colonne
   ========================================================= */
@media (max-width: 1024px) {
  body { font-size: 18px; line-height: 1.5; }
  .container { padding: 0 40px; }
  .site-header { padding: 26px 0; }
  .header-inner { padding: 0 40px; }
  .main-nav a { font-size: 18px; }
  .header-cta { width: auto; }
  .btn { font-size: 16px; line-height: 1.5; }

  .hero, .band-values { background-attachment: scroll; } /* le fond fixe fonctionne mal sur tablette/téléphone */
  .hero { min-height: min(100vh, 1080px); padding: 150px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 30px; padding: 0 40px; }
  .hero-logo { width: 449px; }
  .hero-text { max-width: 848px; width: 100%; }
  .hero h1 { font-size: 18px; }
  .hero .btn-row { justify-content: center; }
  .scroll-down { margin-top: 40px; }

  .split, .cabinet-grid, .contact-split { grid-template-columns: 1fr; gap: 40px; }
  #presentation { padding: 100px 0 0; }
  .photo-portrait { height: auto; width: 100%; max-width: 410px; }
  .photo-rotonde { max-width: 706px; margin: 0 auto; }
  .photo-scm { max-width: 495px; }
  .section-quote { padding: 90px 0; }

  .big-statement { font-size: 40px; line-height: 1.3; margin-bottom: 40px; }
  .intro { margin-bottom: 60px; }
  .services-grid { grid-template-columns: 1fr; padding: 0; }
  .photo-codes { width: 100%; height: auto; max-width: 360px; margin: 0 auto; }

  .band-proximite { margin-bottom: 120px; }
  .card-proximite { width: auto; max-width: 640px; margin: 0 auto -100px; padding: 50px; }
  .card-head { height: auto; padding: 0; gap: 40px; }
  .icon-box { width: 100px; height: 100px; }

  .form-card { width: 100%; max-width: 560px; margin: 20px auto 0; }
  #contact-form { width: 100%; padding: 10px; }

  .footer-grid { grid-template-columns: 153px 1fr 1fr; gap: 30px 40px; padding: 0 0 10px; }
  .footer-bottom { padding: 20px 0 40px; }
}

/* =========================================================
   Mobile (≤ 767 px) : mesures relevées sur le site d'origine
   (téléphone de 375 px de large)
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 18px; line-height: 23.4px; }

  /* marges latérales : 28 px (haut de page, présentation, bandeaux, pied)
     ou 18 px (services, honoraires, cabinet, contact), comme l'original */
  .container { padding: 0 30px 0 28px; }
  #services .container, #honoraires .container, .section-cabinet .container, .section-contact .container { padding: 0 20px 0 18px; }

  h2 { font-size: 28px; line-height: 30.8px; }
  .divider, .center .divider, .section-contact .divider { width: 42px; margin: 34px 0 35px; }
  .center .divider { margin-left: auto; margin-right: auto; }
  .btn { font-size: 16px; line-height: 20.8px; padding: 15px 30px; }

  /* ---------- En-tête : disposition propre à cette version (préférée à l'original) ---------- */
  /* comme sur ordinateur : transparent en haut de page, fond coloré dès qu'on descend */
  .site-header { padding: 14px 0; background: transparent; box-shadow: none; }
  .site-header.is-scrolled { padding: 14px 0; background: rgba(29, 20, 41, .94); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
  /* menu ouvert en haut de page : la barre se colore aussi pour rester lisible */
  .site-header:has(.main-nav.open) { background: var(--violet-nuit); }
  .header-inner { padding: 0 22px; }
  .burger { display: block; }
  .header-cta { width: auto; padding: 10px 18px; font-size: 14px; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--violet-nuit);
    padding: 10px 0 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 22px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* ---------- Haut de page ---------- */
  .hero { min-height: 100vh; padding: 105px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; justify-items: stretch; gap: 30px; padding: 0 30px 0 28px; }
  .hero-logo { width: 209px; justify-self: center; }
  .hero-text { max-width: none; }
  .hero h1 { font-size: 18px; line-height: 23.4px; margin: 0 0 20px; }
  .hero .btn-row { flex-direction: column; align-items: center; gap: 20px; margin-top: 36px; }
  .scroll-down { width: 24px; height: 24px; margin: 9px auto 0; }
  .scroll-down svg { width: 24px; height: 24px; }

  /* ---------- Présentation ---------- */
  #presentation { padding: 100px 0 10px; }
  #presentation .split { gap: 20px; }
  .photo-portrait { width: 285px; max-width: 100%; height: auto; justify-self: center; }

  .section-quote { padding: 100px 0; }
  .quote { font-size: 24px; line-height: 31.2px; }

  /* ---------- Bandeau valeurs (avec sa photo, comme sur ordinateur) ---------- */
  .band-values { background: url("img/sainte-victoire-aix-en-provence002.webp") center / cover no-repeat scroll; padding: 98px 0 90px; }
  .big-statement { font-size: 30px; line-height: 39px; margin-bottom: 70px; }
  .band-values .btn { vertical-align: top; }

  /* ---------- Services ---------- */
  #services { padding: 60px 0; }
  .intro { padding-top: 0; margin: 0 auto 65px; }
  .services-grid { gap: 31px; }
  .photo-codes { width: calc(100% - 20px); max-width: none; margin: 0 10px; }
  .accordion summary { height: auto; min-height: 49px; font-size: 23px; line-height: 29.9px; }

  /* ---------- Proximité (avec sa photo, comme sur ordinateur) ---------- */
  .band-proximite { background: var(--rose) url("img/avocat-aix-en-provence-02.webp") center / cover no-repeat; padding: 60px 0 1px; margin-bottom: 140px; }
  .card-proximite { width: auto; max-width: none; margin: 0 -3px -81px 0; padding: 30px; }
  .card-head { flex-direction: column; align-items: flex-start; gap: 52px; height: auto; padding: 10px; margin-bottom: 20px; }
  .icon-box { width: 104px; height: 104px; }
  .icon-box svg { width: 50px; height: 38px; }
  .card-proximite h2 { font-size: 28px; }
  .card-proximite .btn-block { display: table; width: auto; margin: 0 auto; }

  /* ---------- Honoraires ---------- */
  #honoraires { padding: 60px 0; }
  #honoraires .split { gap: 51px; }
  #honoraires .text ul { margin: 35px 0 20px; }
  #honoraires .text li:first-child { margin-bottom: 0; }
  .photo-rotonde { max-width: none; }

  /* ---------- Cabinet : le texte passe avant la photo ---------- */
  .section-cabinet { padding: 60px 0; }
  .cabinet-grid { display: flex; flex-direction: column; gap: 53px; }
  .cabinet-grid > div { order: 1; }
  .cabinet-grid .photo-scm { order: 2; max-width: none; }
  .section-cabinet h2 { font-size: 28px; }
  .signature { gap: 11px; font-size: 20px; line-height: 26px; }
  .signature .ico-gavel { width: 29px; height: 29px; }

  /* ---------- Contact ---------- */
  .section-contact { padding: 90px 0; }
  .contact-split { gap: 50px; }
  .contact-split > div:first-child { padding-top: 0; }
  .phone { font-size: 18px; line-height: 23.4px; }
  .form-card,
  .contact-split .form-card { width: auto; max-width: none; margin: 0; left: 0; padding: 20px; justify-self: stretch; }
  #contact-form { width: 100%; padding: 0; gap: 20px; }
  #contact-form input,
  #contact-form textarea { font-size: 15px; line-height: 19.5px; font-weight: 300; height: 40px; padding: 8px 16px; }
  #contact-form textarea { height: 89px; padding: 5px 14px; }
  #contact-form .btn { margin-top: 2px; }

  /* ---------- Pied de page : disposition propre à cette version (préférée à l'original) ---------- */
  .site-footer { padding: 70px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 30px 10px 28px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 20px; padding: 20px 30px 0 28px; text-align: center; }
  .footer-bottom .credit { display: none; }
  .footer-bottom .legal {
    text-align: center;
    /* marge sous le dernier lien : le bouton rond des cookies ne le recouvre pas */
    padding-bottom: 90px;
  }
}
