/*
 * AVEC International Pro — Design System Partagé
 * Chargé sur toutes les pages du thème.
 * Ne pas modifier sans mettre à jour toutes les pages.
 */

/* ══ VARIABLES ══════════════════════════════════════════════ */
:root {
  --gold:       #B8973E;
  --gold-light: #D4B060;
  --gold-pale:  #F5EDD8;
  --cream:      #FDFAF4;
  --white:      #FFFFFF;
  --dark:       #1A1612;
  --text:       #3D3530;
  --muted:      #8A7E76;
  --border:     #E8E0D4;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'DM Sans', sans-serif;

  --nav-height: 72px;
  --max-width:  1200px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
}

/* ══ RESET + BASE ════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ══ NAVIGATION ══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover {
  background: var(--gold-pale);
  color: var(--gold);
}
.nav-active {
  background: var(--gold) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
}

/* ══ UTILITAIRES COMMUNS ══════════════════════════════════════ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.gold-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

/* ── Boutons ── */
.btn-primary {
  background: var(--gold);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,151,62,0.3);
}
.btn-secondary {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--gold); }
.link-ghost {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.link-ghost:hover { color: var(--gold-light); }

/* ── Misc ── */
.wp-note {
  background: linear-gradient(135deg, #2563EB10, #1D4ED810);
  border: 1px solid #2563EB25;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #1D4ED8;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ══ FOOTER ══════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.825rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.social-btn:hover { background: var(--gold); color: white; }
.footer-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.footer-social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-social-item:hover { color: var(--gold-light); }
.footer-social-item:hover .social-btn { background: var(--gold); color: white; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-info-block { margin-bottom: 1.5rem; }
.footer-info-block:last-child { margin-bottom: 0; }
.footer-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}
.footer-info-value {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.footer-info-value a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-info-value a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ══ CONTACT FORM 7 ══════════════════════════════════════════ */
.wpcf7 { width: 100%; }
.wpcf7-form { width: 100%; }

/* CF7 met tout dans un <p> — on en fait une grille 2 colonnes */
.wpcf7-form > p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin: 0;
  width: 100%;
}

/* Wrapper <span> → block dans la grille */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Prénom et Nom restent en 2 colonnes (auto) */
/* Email, Select, Textarea, Submit → pleine largeur */
.wpcf7-form-control-wrap[data-name="votre-email"],
.wpcf7-form-control-wrap[data-name="sujet"],
.wpcf7-form-control-wrap[data-name="votre-message"],
.wpcf7-form input[type="submit"],
.wpcf7-response-output {
  grid-column: 1 / -1;
}

/* Champs */
.wpcf7-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
.wpcf7-form-control::placeholder { color: var(--muted); }
.wpcf7-form-control:focus { border-color: var(--gold); }
.wpcf7-form-control.wpcf7-textarea {
  resize: vertical;
  min-height: 120px;
}
.wpcf7-form-control.wpcf7-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A7E76' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Bouton submit */
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,151,62,0.3);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Erreurs */
.wpcf7-not-valid { border-color: #e74c3c !important; }
.wpcf7-not-valid-tip {
  display: block;
  font-size: 0.72rem;
  color: #e74c3c;
  margin-top: 3px;
}

/* Message de réponse */
.wpcf7-response-output {
  margin: 0;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid transparent;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--dark);
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  background: #fff0f0;
  border-color: #e74c3c;
  color: #c0392b;
}

/* Spinner caché, <br> et marges supprimés */
.wpcf7-spinner { display: none; }
.wpcf7 br { display: none; }

@media (max-width: 600px) {
  .wpcf7-form > p { grid-template-columns: 1fr; }
}

/* ══ HAMBURGER ═══════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ MENU MOBILE ═════════════════════════════════════════════ */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(253,250,244,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-mobile-links a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-mobile-links a:hover { background: var(--gold-pale); color: var(--gold); }
.nav-mobile-links .nav-active { background: var(--gold); color: white; }
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(26,22,18,0.3);
}

/* ══ RESPONSIVE PARTAGÉ ══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
  .nav-mobile-overlay { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-social-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 3rem 1.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; }
  .logo-sub { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 2.5rem 1rem 1.5rem; }
}
