/* =====================================================================
   Immostaid : styles communs à toutes les pages.
   Repères : téléphone <= 767 px ; tablette <= 1024 px ; menu replié <= 1279 px.
   ===================================================================== */

/* ---------- 1. Polices : Asap pour les titres, Poppins pour le texte ---------- */
@font-face { font-family: 'Asap'; src: url('/assets/fonts/asap-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Asap'; src: url('/assets/fonts/asap-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- 2. Variables ---------- */
:root {
  --violet: #412575;
  --peche: #EDBE9D;
  --texte: #434A56;
  --bordure: #CFD8DC;
  --f-titre: 'Asap', sans-serif;
  --f-contenu: 'Poppins', sans-serif;
  --conteneur: 1140px;
  --voile: rgba(65, 37, 117, .3);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/28px var(--f-contenu); color: var(--texte); background: #fff; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sec-violet :focus-visible, .site-footer :focus-visible, .theme-or :focus-visible, .site-header .menu.open :focus-visible { outline-color: var(--peche); }
.hero :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 8px 14px; z-index: 200000; }
.skip-link:focus { left: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: var(--conteneur); margin: 0 auto; padding: 0 10px; }
.pt-50 { padding-top: 50px !important; }

/* ---------- 4. En-tête (non fixe) ---------- */
.site-header { display: grid; grid-template-columns: 140px 1fr auto; align-items: start; min-height: 135px; padding-right: 28px; background: #fff; }
.hd-logo { padding: 17px 0 0 46px; }
.hd-logo img { width: 76px; height: 101px; }
.hd-nav { display: flex; justify-content: center; padding-top: 50px; }
.hd-burger { display: none; }
.hd-call { padding: 21px 0 0 6px; }
.btn-call { display: flex; align-items: center; justify-content: center; padding: 16px 16px; border-radius: 4px; background: var(--violet); color: #fff; font: 500 15px/21px var(--f-contenu); text-align: center; white-space: nowrap; transition: background .3s; }
.btn-call:hover { background: #4f2e8c; }
.bc-court { display: none; }

/* Menu (en-tête et pied) : séparateurs pêche */
.menu > ul { display: flex; align-items: center; }
.menu > ul > li { position: relative; }
.menu > ul > li + li::before { content: ''; position: absolute; left: 0; top: 50%; height: 20px; margin-top: -10px; border-left: 1px solid var(--peche); }
.menu > ul > li > a { display: flex; align-items: center; padding: 13px 10px; font: 500 17px/20px var(--f-titre); color: var(--violet); white-space: nowrap; transition: color .3s, box-shadow .3s; }
/* Page en cours et survol : texte violet, trait pêche dessous (le pêche seul est illisible sur blanc) */
.menu > ul > li > a:hover, .menu [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--peche); }

/* ---------- 5. Boutons ---------- */
.btn { display: inline-block; padding: 13px 24px; border-radius: 3px; background: var(--peche); color: var(--violet); font: 600 15px/18px var(--f-contenu); text-align: center; transition: background .3s; }
.btn:hover { background: #e2a87f; }
.btn-violet, .btn-violet:hover { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #4f2e8c; }

/* ---------- 6. Titres de section (H2 + soulignement pêche) ---------- */
.sec-title { padding-top: 80px; text-align: center; }
.sec-title h1, .sec-title h2 { font: 700 30px/30px var(--f-titre); letter-spacing: -1.5px; text-transform: uppercase; color: var(--violet); }
.sec-rule { display: block; width: 68px; height: 6px; margin: 15px auto; background: var(--peche); }
.sec-violet .sec-title h1, .sec-violet .sec-title h2 { color: #fff; }

/* ---------- 7. Bandeaux d'ouverture ---------- */
.hero, .page-banner { background: var(--violet) center / cover no-repeat; background-image: linear-gradient(var(--voile), var(--voile)), url('/assets/img/ex2-salon-1600.webp'); }
.hero { --voile: rgba(30, 12, 60, .45); display: flex; flex-direction: column; justify-content: center; min-height: 400px; margin-top: 10px; padding: 50px 16px; }
.page-banner { margin-top: 10px; padding: 70px 20px; text-align: center; }

/* ---------- 8. Sections ---------- */
/* Section violette avec biseau de 67 px au-dessus */
.tilt { display: block; width: 100%; height: 67px; margin-top: 16px; fill: var(--violet); }
.sec-violet { background: var(--violet); color: #fff; margin-top: -1px; padding: 60px 0 80px; }
.sec-violet .sec-title { padding-top: 0; }
.agence { display: grid; grid-template-columns: 337px 1fr; margin-top: 39px; }
.agence-photo { padding: 0 10px; }
.agence-photo img { width: 100%; }
.agence-text { padding-right: 10px; }
.agence-text h2, .agence-text h3 { margin-bottom: 18px; font: 700 24px/24px var(--f-titre); letter-spacing: -.6px; color: #fff; }
.agence-text p { font: 300 16px/28px var(--f-contenu); margin-bottom: 10px; }
.agence-text strong { font-weight: 400; }

/* Citations : violet sur fond blanc, pêche sur fond violet */
.citation { margin-top: 26px; text-align: center; font: italic 600 20px/26px var(--f-contenu); color: var(--violet); }
.sec-violet .citation { color: var(--peche); }

/* Slogan animé (cercle pêche redessiné en boucle) */
.slogan { margin-top: 20px; padding: 38px 10px; text-align: center; font: 400 25px/31px var(--f-titre); letter-spacing: -.3px; color: var(--violet); }
.slogan .hl { position: relative; display: inline-block; font-weight: 700; padding: 0 4px; }
.slogan .hl svg { position: absolute; left: -5%; top: -22%; width: 110%; max-width: none; height: 144%; overflow: visible; fill: none; stroke: var(--peche); stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.slogan .hl path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hl-draw 6.2s infinite; }
@keyframes hl-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 19%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slogan .hl path { animation: none; stroke-dashoffset: 0; } }

/* Contact (accueil) */
.contact-home { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 60px 10px 90px; }
.contact-home .txt-contact { padding: 0 10px; }
.contact-home .txt-contact p:not(.btns) { max-width: 565px; }
.txt-contact { font: 400 16px/30px var(--f-contenu); color: var(--violet); }
.contact-home figure { justify-self: end; width: 100%; max-width: 470px; }
.contact-home img { width: 100%; }

/* ---------- 9. Message affiché après l'envoi d'un formulaire ---------- */
.form-msg { padding: 12px 14px; border-left: 4px solid var(--peche); background: #f6f1fa; font-family: var(--f-contenu); font-size: 14px; line-height: 21px; color: var(--violet); }
.form-msg[hidden] { display: none; }

/* ---------- 10. Pied de page ---------- */
.site-footer { background: var(--violet); color: #fff; }
.ft-top { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; min-height: 149px; padding: 40px 70px 0 33px; }
.ft-logo img { width: 63px; height: 84px; }
.ft-adr { margin-left: 27px; font: 400 15px/21px var(--f-contenu); letter-spacing: -.3px; }
.ft-adr a:hover { color: var(--peche); }
.ft-nav { display: flex; justify-content: center; }
.ft-burger { display: none; }
.menu-ft > ul > li + li::before { border-color: #fff; }
.menu-ft > ul > li > a { padding: 13px 7px; color: var(--peche); }
.menu-ft > ul > li > a:hover { color: #fff; box-shadow: none; }
.ft-social { display: flex; align-items: center; gap: 18px; }
.ft-join { font: 500 13px/17px var(--f-contenu); text-align: right; }
.ft-icons { display: flex; gap: 18px; }
.ft-icons img { width: 40px; height: 40px; }
.ft-legal { padding: 18px 20px 40px; font: 300 13px/15px var(--f-contenu); letter-spacing: -.26px; text-align: center; }
.ft-legal a:hover { color: var(--peche); text-decoration: underline; }

/* ---------- 11. Menu replié (<= 1279 px) : logo, bouton et menu sur une ligne ---------- */
@media (max-width: 1279px) {
  .site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-height: 0; padding: 10px 24px; }
  .hd-logo { padding: 0; }
  .hd-logo img { width: 57px; height: 76px; }
  .hd-nav { display: contents; }
  .hd-call { order: 2; margin-left: auto; padding: 0; }
  .btn-call { padding: 10px 16px; font-size: 14px; line-height: 19px; }
  .hd-burger { order: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: rgba(0, 0, 0, .05); }
  .hd-burger svg { width: 26px; height: 26px; fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; }
  .hd-burger .i-close, .hd-burger[aria-expanded="true"] .i-open { display: none; }
  .hd-burger[aria-expanded="true"] .i-close { display: block; }
  .site-header .menu { order: 4; display: none; flex-basis: calc(100% + 48px); margin: 10px -24px -10px; background: var(--violet); }
  .site-header .menu.open { display: block; }
  .site-header .menu > ul { flex-direction: column; align-items: stretch; padding: 6px 0; }
  .site-header .menu > ul > li + li::before { display: none; }
  .site-header .menu > ul > li > a { justify-content: center; width: 100%; padding: 12px 10px; font-size: 16px; color: #fff; box-shadow: none; }
  .site-header .menu > ul > li > a:hover, .site-header .menu [aria-current="page"] { color: var(--peche); }

  .ft-top { display: flex; flex-direction: column; align-items: center; padding: 55px 20px 0; text-align: center; }
  .ft-logo img { width: 88px; height: 115px; }
  .ft-adr { margin: 30px 0 0; line-height: 24px; }
  .ft-adr a { display: inline-block; padding: 10px 8px; }
  .ft-nav { flex-direction: column; align-items: center; margin-top: 14px; }
  .ft-burger { display: grid; place-items: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .06); border-radius: 3px; }
  .ft-burger svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
  .menu-ft { display: none; margin-top: 8px; }
  .menu-ft.open { display: block; }
  .menu-ft > ul { flex-direction: column; }
  .menu-ft > ul > li + li::before { display: none; }
  .menu-ft > ul > li > a { justify-content: center; padding: 12px 8px; font-size: 16px; }
  .ft-social { flex-direction: column; gap: 22px; margin-top: 24px; }
  .ft-join { font: 600 16px/20px var(--f-contenu); text-align: center; }
  .ft-join .d-only { display: none; }
  .ft-icons { gap: 36px; }
  .ft-icons img { width: 44px; height: 44px; }
  .ft-legal { padding: 22px 20px 40px; line-height: 20px; }
  .ft-legal a { display: inline-block; padding: 12px 4px; }
}

/* ---------- 12. Tablette (<= 1024 px) : blocs sur une colonne ---------- */
@media (max-width: 1024px) {
  .contact-home { grid-template-columns: 1fr; padding: 50px 0 80px; }
  .contact-home .txt-contact { padding: 0 25px; text-align: center; }
  .contact-home .txt-contact p:not(.btns) { max-width: 640px; margin-left: auto; margin-right: auto; }
  .contact-home figure { justify-self: center; max-width: 640px; margin: 20px auto 0; padding: 0 20px; }
}

/* ---------- 13. Téléphone (<= 767 px) ---------- */
@media (max-width: 767px) {
  br.d-only { display: none; }
  .site-header { padding: 8px 14px; gap: 0 10px; }
  .hd-logo img { width: 46px; height: 61px; }
  .btn-call { padding: 13px 14px; font-size: 14px; line-height: 18px; }
  .bc-long { display: none; }
  .bc-court { display: inline; }
  .site-header .menu { flex-basis: calc(100% + 28px); margin: 8px -14px -8px; }
  .hero, .page-banner { background-image: linear-gradient(var(--voile), var(--voile)), url('/assets/img/ex2-salon-800.webp'); }
  .hero { margin-top: 20px; }

  .sec-title h1, .sec-title h2 { padding: 0 15px; }
  .tilt { height: 67px; margin-top: 16px; }
  .sec-violet { padding: 50px 0 40px; }
  .agence { grid-template-columns: 1fr; margin-top: 54px; }
  .agence-photo { padding: 0 2px; }
  .agence-text { padding: 0 2px; }
  .agence-text h2, .agence-text h3 { margin: 16px 0 20px; text-align: center; }
  .slogan { padding: 60px 20px 40px; }
  .contact-home figure { padding: 0; margin-top: 40px; max-width: none; }
}
