/* ===================================================
   Cabinet Avocat Saint-Malo — style.css
   =================================================== */

/* --- Variables ------------------------------------ */
:root {
  --c-primary: #1B3A5C;
  --c-accent:  #C8A844;
  --c-bg:      #F5F8FC;
  --c-white:   #fff;
  --c-text:    #1E293B;
  --c-muted:   #64748B;
  --c-border:  #D8E4F0;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(27,58,92,.10);
  --shadow-sm: 0 2px 8px  rgba(27,58,92,.08);
  --transition: .25s ease;
  --max-w:     1140px;
}

/* --- Reset ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Playfair Display', Georgia, serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ----------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-primary);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { font-size: 1.05rem; color: var(--c-text); }
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 680px; }

/* --- Layout --------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--c-white); }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .6rem;
}
.section-header { margin-bottom: 3rem; }
.section-header .lead { margin-top: .75rem; }

/* --- Button --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-primary);
  border-color: var(--c-accent);
}
.btn-primary:hover { background: #b8952e; border-color: #b8952e; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn-outline:hover { background: var(--c-white); color: var(--c-primary); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline-dark:hover { background: var(--c-primary); color: var(--c-white); transform: translateY(-2px); }

/* --- Header --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
}
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo-sub { display: block; font-size: .68rem; font-weight: 400; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .5rem .9rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color var(--transition), background var(--transition);
}
.nav a:hover, .nav a.active { color: var(--c-primary); background: var(--c-bg); }
.nav a.active { color: var(--c-accent); }
.header-cta { flex-shrink: 0; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #0D2238 100%);
  color: var(--c-white);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff' opacity='.06'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 { color: var(--c-white); margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 1.5rem;
  width: 220px;
  flex-shrink: 0;
  text-align: center;
}
.hero-badge svg { width: 56px; height: 56px; margin: 0 auto 1rem; }
.hero-badge p { font-size: .9rem; color: rgba(255,255,255,.8); }

/* --- Cards Grid ----------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; margin-bottom: 1.25rem; }
.card h3 { margin-bottom: .6rem; }
.card p  { font-size: .95rem; color: var(--c-muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-accent);
  transition: gap var(--transition);
}
.card-link:hover { gap: .6rem; }

/* --- Stats ---------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item { padding: 2rem 1rem; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .9rem; color: var(--c-muted); }

/* --- Highlight strip ------------------------------ */
.highlight-strip {
  background: var(--c-primary);
  color: var(--c-white);
  padding: 3.5rem 0;
}
.highlight-strip h2 { color: var(--c-white); margin-bottom: .75rem; }
.highlight-strip p  { color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 1.75rem; }
.highlight-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* --- Testimonial ---------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-white);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 12px 12px 0;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-text { font-style: italic; color: var(--c-muted); margin-bottom: 1rem; }
.testimonial-author { font-weight: 700; font-size: .9rem; color: var(--c-primary); }

/* --- Team ----------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--c-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.team-card-avatar {
  background: linear-gradient(135deg, var(--c-primary), #0D2238);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-avatar svg { width: 72px; height: 72px; }
.team-card-body { padding: 1.5rem; }
.team-card-body h3 { margin-bottom: .25rem; }
.team-card-body .role { font-size: .85rem; color: var(--c-accent); font-weight: 700; margin-bottom: .75rem; }
.team-card-body p { font-size: .92rem; color: var(--c-muted); }

/* --- Values --------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}
.value-item svg { width: 44px; height: 44px; margin: 0 auto 1rem; }
.value-item h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.value-item p  { font-size: .9rem; color: var(--c-muted); }

/* --- Domain page ---------------------------------- */
.domain-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--c-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
}
.domain-block:hover { box-shadow: var(--shadow); }
.domain-block svg { width: 52px; height: 52px; flex-shrink: 0; }
.domain-block h3 { margin-bottom: .6rem; }
.domain-block p  { font-size: .97rem; color: var(--c-muted); margin-bottom: .6rem; }
.domain-block ul { padding-left: 0; }
.domain-block ul li {
  font-size: .93rem;
  color: var(--c-muted);
  padding: .2rem 0 .2rem 1.2rem;
  position: relative;
}
.domain-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-size: .85rem;
}

/* --- Contact page --------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--c-muted); margin-bottom: 1.75rem; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.info-item svg { width: 32px; height: 32px; flex-shrink: 0; margin-top: .1rem; }
.info-item h4 { font-size: .9rem; font-weight: 700; color: var(--c-primary); margin-bottom: .2rem; }
.info-item p  { font-size: .92rem; color: var(--c-muted); margin: 0; }
.phone-big {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: background var(--transition);
}
.phone-big:hover { background: #0D2238; }
.phone-big svg { width: 28px; height: 28px; }
.contact-form-wrapper {
  background: var(--c-white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h3 { margin-bottom: .5rem; }
.contact-form-wrapper p { font-size: .9rem; color: var(--c-muted); margin-bottom: 1.5rem; }

/* --- Access section ------------------------------- */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.access-card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--c-border);
}
.access-card svg { width: 40px; height: 40px; margin-bottom: 1rem; }
.access-card h4 { margin-bottom: .5rem; }
.access-card p  { font-size: .92rem; color: var(--c-muted); }

/* --- Page hero (inner pages) ---------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #0D2238 100%);
  color: var(--c-white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--c-white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Breadcrumb ----------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-muted);
  padding: .75rem 0;
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb a { color: var(--c-primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-muted); }

/* --- Footer --------------------------------------- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 {
  color: var(--c-white);
  font-size: .95rem;
  margin-bottom: 1.1rem;
  letter-spacing: .05em;
}
.footer-col p  { font-size: .9rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .9rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo svg { width: 40px; height: 40px; }
.footer-logo span { font-size: 1.05rem; font-weight: 700; color: var(--c-white); }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: .75rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--c-accent); }

/* --- Floating call button (mobile) ---------------- */
.float-call {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  background: var(--c-accent);
  color: var(--c-primary);
  border-radius: 50px;
  padding: .85rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(200,168,68,.45);
  align-items: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-call:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(200,168,68,.55); }
.float-call svg { width: 22px; height: 22px; }

/* --- Utility -------------------------------------- */
.text-accent { color: var(--c-accent); }
.text-muted  { color: var(--c-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Responsive ----------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }

  .nav { display: none; flex-direction: column; gap: 0; background: var(--c-white); position: fixed; top: 72px; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.25rem; box-shadow: var(--shadow); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 1rem; font-size: 1.05rem; border-radius: var(--radius); border-bottom: 1px solid var(--c-border); }
  .burger { display: flex; }
  .header-cta { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .float-call { display: flex; }

  .domain-block { grid-template-columns: 1fr; }
  .domain-block svg { width: 44px; height: 44px; }

  .highlight-inner { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
