/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://agence1235.com/
 Description:  Thème enfant sur mesure pour Agence 1235 basé sur Hello Elementor et la nouvelle maquette 2026.
 Author:       Agence 1235
 Template:     hello-elementor
 Version:      2.5.0
*/

:root {
  --a-fond: #FAF7F0;
  --a-fondAlt: #F3EDE0;
  --a-fondSurface: #FAF7F0;
  --a-encre: #191510;
  --a-encre2: #5C5749;
  --a-encre3: #6A6455;
  --a-encre4: #78725F;
  --a-or: #8A6A1F;
  --a-orFort: #A8842C;
  --a-orDoux: rgba(168,132,44,0.65);
  --a-filet: rgba(30,24,14,0.13);
  --a-filetDoux: rgba(30,24,14,0.09);
  --a-filetFort: rgba(30,24,14,0.3);
  --a-aubergine: #4A1942;
  --a-aubergineEncre: #E9CFE4;
  --a-halo: rgba(74,25,66,0.10);
  --a-haloOr: rgba(168,132,44,0.10);
  --a-ombre: rgba(30,24,14,0.14);
  --a-entete: rgba(250,247,240,0.96);
  --a-erreur: #8C3A1E;
  --a-erreurFond: #F7EDE7;
  --a-gradCarte: linear-gradient(135deg,#F0E9DA 0%,#E4DAC5 100%);
  --a-gradEcran: linear-gradient(160deg,#F2ECDE 0%,#E2D8C3 100%);
  --a-puce: #D8D0BE;
  --a-boutonEncre: #191510;
}

[data-theme="dark"] {
  --a-fond: #12100D;
  --a-fondAlt: #1C1814;
  --a-fondSurface: #181511;
  --a-encre: #F5EFDF;
  --a-encre2: #C4BDAC;
  --a-encre3: #A39D8C;
  --a-encre4: #78725F;
  --a-or: #C9A44A;
  --a-orFort: #D8B45A;
  --a-orDoux: rgba(216,180,90,0.5);
  --a-filet: rgba(245,239,223,0.12);
  --a-filetDoux: rgba(245,239,223,0.08);
  --a-filetFort: rgba(245,239,223,0.25);
  --a-aubergine: #2C0F27;
  --a-aubergineEncre: #F3D9EE;
  --a-halo: rgba(74,25,66,0.25);
  --a-haloOr: rgba(216,180,90,0.15);
  --a-ombre: rgba(0,0,0,0.4);
  --a-entete: rgba(18,16,13,0.96);
  --a-erreur: #F28B68;
  --a-erreurFond: #2D1812;
  --a-gradCarte: linear-gradient(135deg,#1E1A15 0%,#26211B 100%);
  --a-gradEcran: linear-gradient(160deg,#191511 0%,#221C16 100%);
  --a-puce: #4A4438;
  --a-boutonEncre: #12100D;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--a-fond);
  color: var(--a-encre);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

a {
  color: var(--a-or);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--a-orFort);
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

::placeholder {
  color: var(--a-encre4);
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--a-orFort);
  outline-offset: 3px;
}

/* TYPOGRAPHIE RESPONSIVE */
h1, .h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.5px;
}

h2, .h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 3.8vw, 34px);
  line-height: 1.25;
}

h3, .h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.35;
}

p.chapo, .chapo {
  font-size: clamp(14px, 2.2vw, 16.5px);
  line-height: 1.75;
  color: var(--a-encre2);
}

/* HEADER & NAVIGATION RESPONSIVE */
header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--a-entete);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--a-filet);
}

.navlinks {
  display: flex;
  gap: 22px;
  font-size: 13px;
  align-items: center;
}

.navlinks a {
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  color: var(--a-encre2);
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.actif,
.navlinks a.current-menu-item {
  color: var(--a-encre);
  border-bottom-color: var(--a-orFort);
}

/* BOUTON BURGER MOBILE ET ANIMATION */
.menu-mobile-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--a-filet);
  border-radius: 2px;
  width: 36px;
  height: 36px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.menu-mobile-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--a-orFort);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

.menu-mobile-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-mobile-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-mobile-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* BUTTONS */
.btn-or {
  background: var(--a-orFort);
  color: var(--a-boutonEncre) !important;
  font-size: 13px;
  font-weight: 500;
  font-family: Inter, sans-serif;
  padding: 12px 22px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
}

.btn-or:hover {
  background: var(--a-or);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--a-orDoux);
  color: var(--a-encre);
  font-size: 13.5px;
  font-family: Inter, sans-serif;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
}

.btn-outline:hover {
  border-color: var(--a-or);
  color: var(--a-or);
}

/* SECTIONS & CARDS */
section {
  border-bottom: 1px solid var(--a-filet);
  position: relative;
}

.carte-pilier {
  border: 1px solid var(--a-filet);
  padding: 32px 28px;
  background: var(--a-fond);
  transition: border-color .2s, background .2s, transform .2s;
}

.carte-pilier:hover {
  border-color: var(--a-orFort);
  background: var(--a-fondAlt);
  transform: translateY(-2px);
}

/* ACCORDEON FAQ */
details {
  border-bottom: 1px solid var(--a-filet);
  padding: 20px 0;
}

summary {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--a-encre);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  cursor: pointer;
}

/* FOOTER RESPONSIVE */
footer {
  border-top: 1px solid var(--a-filet);
  padding: 64px 0 40px;
  background: var(--a-fondAlt);
}

/* CONFIGURATION MOBILE ET REGLES MEDIA QUERIES */
@media (min-width: 1025px) {
  .mobile-only-cta,
  .mobile-only-lang {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  header.top > div {
    padding: 14px 20px !important;
  }

  .header-cta-btn,
  .header-lang-switcher {
    display: none !important;
  }

  .menu-mobile-btn {
    display: flex;
  }

  .navlinks {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--a-fondAlt);
    border-bottom: 1px solid var(--a-filet);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px 32px;
    gap: 12px;
    box-shadow: 0 16px 32px var(--a-ombre);
    display: none;
    z-index: 99;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--a-filetDoux);
  }
}

@media (max-width: 768px) {
  section > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  header.top > div {
    padding: 12px 16px !important;
  }

  .btn-or, .btn-outline {
    width: 100%;
  }

  form input, form select, form textarea {
    font-size: 16px !important; /* Empeche le zoom auto sur iOS WebKit */
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display:flex"], nav[style*="display:flex"] {
    flex-wrap: wrap;
  }

  /* Chatbot Widget & Assistant Floating Button Mobile Configuration */
  #btn-bot-open {
    right: 14px !important;
    bottom: 14px !important;
    font-size: 12.5px !important;
    padding: 0 14px !important;
    height: 44px !important;
  }

  #panel-chatbot {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100vh - 70px) !important;
  }

  #modal-recherche > div {
    padding: 24px 16px !important;
  }

  #champ-recherche-modal {
    font-size: 18px !important;
  }
}

@media (min-width: 1200px) {
  .frame, main > section > div {
    max-width: 1180px;
  }
}
