/* =========================================================
   AQUA-GUIDE — Custom Design v1.0
   Palette : #0a3d62 (deep navy) | #0a6e8a (teal) | #00b4d8 (cyan)
             #ade8f4 (light) | #ffffff | #f0faff (bg)
   ========================================================= */


:root {
  --aq-navy:    #0a3d62;
  --aq-teal:    #0a6e8a;
  --aq-cyan:    #00b4d8;
  --aq-light:   #ade8f4;
  --aq-pale:    #f0faff;
  --aq-white:   #ffffff;
  --aq-text:    #1a2e3a;
  --aq-muted:   #5a7a8a;
  --aq-radius:  12px;
  --aq-shadow:  0 4px 20px rgba(10,110,138,.15);
  --aq-trans:   .25s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--aq-text);
  background: var(--aq-white);
  line-height: 1.7;
}

/* ── HEADER / NAV ── */
.site-header,
.ast-primary-header-bar {
  background: var(--aq-navy) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  border-bottom: none !important;
}

/* Header sticky */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* Masquer le logo image — on utilise emoji + titre texte */
.ast-site-title-wrap .custom-logo-link,
.site-header .custom-logo-link {
  display: none !important;
}

/* Afficher le titre texte même si un logo est défini */
.wp-custom-logo .ast-site-title-wrap .site-title {
  display: block !important;
}
.site-header .site-description,
.wp-custom-logo .ast-site-title-wrap .site-description,
.ast-site-title-wrap .site-description {
  display: block !important;
  visibility: visible !important;
  color: var(--aq-cyan) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  opacity: 0.85 !important;
  margin-top: 2px !important;
  font-weight: 400 !important;
}

/* Fallback si Astra ne rend pas .site-description */
.ast-site-title-wrap .site-title::after {
  content: 'AQUARIOPHILIE · CONSEILS';
  display: block;
  color: var(--aq-cyan);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
  margin-left: 7px;
  font-weight: 400;
  font-style: normal;
}

/* Emoji poisson devant le titre */
.ast-site-title-wrap .site-title a::before {
  content: '🐠 ';
  font-style: normal;
}

.ast-site-title-wrap .site-title a,
.ast-site-title-wrap .site-title a:hover {
  color: var(--aq-white) !important;
  font-weight: 700;
  letter-spacing: .5px;
}

/* Navigation links */
.main-navigation a,
.ast-primary-header-bar .ast-builder-menu a,
.site-navigation a {
  color: var(--aq-light) !important;
  font-weight: 500;
  transition: color var(--aq-trans);
}
.main-navigation a:hover,
.site-navigation a:hover {
  color: var(--aq-cyan) !important;
}

/* ── TOP WAVE SEPARATOR — supprimé ── */
.site-content::before { display: none !important; }

/* ── HERO SECTION (homepage) ── */
.wp-block-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--aq-navy) 0%, var(--aq-teal) 60%, var(--aq-cyan) 100%) !important;
  padding: 100px 20px !important;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,160L48,176C96,192,192,224,288,218.7C384,213,480,171,576,165.3C672,160,768,192,864,186.7C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.wp-block-cover h1.wp-block-heading {
  color: var(--aq-white) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 1rem;
}

.wp-block-cover p {
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  max-width: 680px;
  margin: 0 auto 2rem !important;
}

/* ── HERO BUTTONS ── */
.wp-block-cover .wp-block-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
}

.wp-block-cover .wp-block-buttons .wp-block-button {
  display: inline-block !important;
  margin: 0 !important;
}

.wp-block-button .wp-block-button__link {
  border-radius: 50px !important;
  font-weight: 600;
  padding: 14px 32px !important;
  transition: all var(--aq-trans);
  letter-spacing: .3px;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--aq-white) !important;
  color: var(--aq-navy) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--aq-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.8) !important;
  color: var(--aq-white) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.15) !important;
  transform: translateY(-2px);
}

/* ── SECTION TITLES ── */
h2.wp-block-heading {
  font-weight: 700;
  color: var(--aq-navy);
  position: relative;
  padding-bottom: .6rem;
}
h2.wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--aq-teal), var(--aq-cyan));
  border-radius: 2px;
}

/* ── ARCHIVE CATEGORY HEADER ── */
.ast-archive-description {
  background: linear-gradient(135deg, #f0faff 0%, #e0f5fc 100%);
  padding: 44px 20px 36px;
  text-align: center;
  border-bottom: 3px solid var(--aq-cyan);
  margin-bottom: 2rem;
}
.ast-archive-title {
  color: var(--aq-navy);
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: .65rem;
}
.ast-archive-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--aq-teal), var(--aq-cyan));
  border-radius: 2px;
}
.ast-archive-description > p {
  color: var(--aq-muted);
  font-size: .95rem;
  margin-top: .8rem;
}

/* ── CATEGORY CARDS (columns block) ── */
.aq-categories .wp-block-column {
  background: var(--aq-white);
  border-radius: var(--aq-radius);
  padding: 28px 24px;
  box-shadow: var(--aq-shadow);
  border: 1px solid rgba(10,180,216,.1);
  transition: all var(--aq-trans);
  text-align: center;
}
.aq-categories .wp-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(10,110,138,.2);
  border-color: var(--aq-cyan);
}
.aq-categories .wp-block-column h3 {
  color: var(--aq-teal);
  font-weight: 700;
  margin-bottom: .5rem;
}
.aq-categories .wp-block-column p {
  color: var(--aq-muted);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.aq-categories .wp-block-column a.btn-cat {
  display: inline-block;
  background: linear-gradient(135deg, var(--aq-teal), var(--aq-cyan));
  color: var(--aq-white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--aq-trans);
}
.aq-categories .wp-block-column a.btn-cat:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,180,216,.35);
}

/* ── TRUST BADGES ── */
.aq-trust {
  background: var(--aq-pale);
  padding: 50px 20px;
  margin: 40px 0;
  border-radius: var(--aq-radius);
}
.aq-trust .wp-block-column {
  text-align: center;
  padding: 24px;
  border-radius: var(--aq-radius);
  transition: background var(--aq-trans);
}
.aq-trust .wp-block-column:hover {
  background: var(--aq-white);
  box-shadow: var(--aq-shadow);
}
.aq-trust h3.wp-block-heading {
  color: var(--aq-teal);
  font-size: 1.05rem;
  font-weight: 700;
}
.aq-trust p {
  color: var(--aq-muted);
  font-size: .9rem;
}

/* ── ARTICLE CARDS (query loop) ── */
.wp-block-post-template .wp-block-post {
  background: var(--aq-white);
  border-radius: var(--aq-radius);
  overflow: hidden;
  box-shadow: var(--aq-shadow);
  transition: all var(--aq-trans);
  border: 1px solid rgba(10,180,216,.08);
  padding: 20px;
}
.wp-block-post-template .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10,110,138,.18);
}
.wp-block-post-title a {
  color: var(--aq-navy) !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color var(--aq-trans);
}
.wp-block-post-title a:hover {
  color: var(--aq-teal) !important;
}
.wp-block-post-excerpt p {
  color: var(--aq-muted);
  font-size: .88rem;
}
.wp-block-post-excerpt__more-link {
  color: var(--aq-cyan) !important;
  font-weight: 600;
  text-decoration: none;
}
.wp-block-post-excerpt__more-link:hover {
  color: var(--aq-teal) !important;
}

/* ── HR (séparateur) ── */
hr.wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aq-light), transparent);
  margin: 40px auto;
}

/* ── NEWSLETTER BAND ── */
.aq-newsletter {
  background: linear-gradient(135deg, var(--aq-navy), var(--aq-teal));
  color: var(--aq-white) !important;
  border-radius: var(--aq-radius);
  padding: 50px 30px;
  text-align: center;
  margin: 40px 0;
}
.aq-newsletter h2 {
  color: var(--aq-white) !important;
  font-size: 1.6rem;
}
.aq-newsletter h2::after { background: var(--aq-cyan); }
.aq-newsletter p {
  color: rgba(255,255,255,.85) !important;
  margin-bottom: 1.5rem;
}
.aq-newsletter form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}
.aq-newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: var(--aq-white);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--aq-trans);
}
.aq-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.aq-newsletter input[type="email"]:focus { border-color: var(--aq-cyan); }
.aq-newsletter button {
  background: var(--aq-cyan);
  color: var(--aq-navy);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--aq-trans);
}
.aq-newsletter button:hover {
  background: var(--aq-white);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
.site-footer,
.ast-small-footer {
  background: var(--aq-navy) !important;
  color: rgba(255,255,255,.7) !important;
}
.site-footer a,
.ast-small-footer a {
  color: var(--aq-light) !important;
  transition: color var(--aq-trans);
}
.site-footer a:hover,
.ast-small-footer a:hover {
  color: var(--aq-cyan) !important;
}
.site-footer * {
  background: transparent !important;
  color: rgba(255,255,255,.7) !important;
}
.ast-footer-copyright p { font-size: .85rem; }
.ast-small-footer-section-2,
.footer-sml-section-2 { display: none !important; }
.ast-small-footer-section-1,
.footer-sml-section-1 { text-align: center !important; width: 100% !important; }

/* ── SINGLE ARTICLE ── */

/* Bandeau titre article */
.single .entry-header {
  background: linear-gradient(135deg, var(--aq-navy) 0%, var(--aq-teal) 100%);
  padding: 50px 30px 40px;
  margin-bottom: 0;
  text-align: center;
}
.single .entry-title {
  color: var(--aq-white) !important;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Méta (date, catégorie) */
.single .entry-meta {
  text-align: center;
  padding: 10px 0 0;
  background: linear-gradient(135deg, var(--aq-navy), var(--aq-teal));
}
.single .entry-meta .posted-on,
.single .entry-meta .cat-links,
.single .entry-meta a,
.single .entry-meta span {
  color: rgba(255,255,255,.75) !important;
  font-size: .82rem;
}
.single .entry-meta .cat-links a {
  background: rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 50px;
  color: var(--aq-light) !important;
}

/* Contenu article */
.single .entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-size: 1rem;
  line-height: 1.85;
  color: #2a3f4a;
}

/* Lead paragraph */
.single .entry-content > p:first-of-type {
  font-size: 1.08rem;
  color: var(--aq-teal);
  border-left: 4px solid var(--aq-cyan);
  padding-left: 16px;
  margin-bottom: 2rem;
  font-style: italic;
}

.single .entry-content h2 {
  color: var(--aq-navy);
  font-size: 1.35rem;
  font-weight: 700;
  border-left: 4px solid var(--aq-cyan);
  padding-left: 14px;
  margin-top: 2.5rem;
  margin-bottom: .8rem;
}
.single .entry-content h2::after { display: none; }

.single .entry-content h3 {
  color: var(--aq-teal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.single .entry-content ul,
.single .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.single .entry-content ul li {
  margin-bottom: .4rem;
  padding-left: 4px;
}
.single .entry-content ul li::marker { color: var(--aq-cyan); font-size: 1.1em; }
.single .entry-content ol li::marker { color: var(--aq-teal); font-weight: 700; }

.single .entry-content strong { color: var(--aq-navy); }

.single .entry-content a {
  color: var(--aq-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,180,216,.4);
  transition: all var(--aq-trans);
}
.single .entry-content a:hover {
  color: var(--aq-cyan);
  text-decoration-color: var(--aq-cyan);
}

/* Tableau */
.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.single .entry-content th {
  background: var(--aq-navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
}
.single .entry-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--aq-light);
}
.single .entry-content tr:nth-child(even) td { background: var(--aq-pale); }

/* Verdict / info box */
.single .entry-content blockquote {
  background: var(--aq-pale);
  border-left: 5px solid var(--aq-cyan);
  border-radius: 0 var(--aq-radius) var(--aq-radius) 0;
  padding: 18px 22px;
  margin: 1.5rem 0;
  font-style: normal;
  color: var(--aq-navy);
}
.single .entry-content blockquote p { margin: 0; font-weight: 500; }

/* Note de bas d'article — affiliation */
.single .entry-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 30px;
}
.single .entry-footer::before {
  content: '🔗 Liens d\'affiliation : En tant que Partenaire Amazon, Aqua-Guide perçoit une commission sur les achats qualifiés, sans coût supplémentaire pour vous.';
  display: block;
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .8rem;
  color: #7a6a2a;
  margin-bottom: 20px;
}

/* Navigation entre articles */
.post-navigation {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  background: var(--aq-pale);
  border: 1px solid var(--aq-light);
  border-radius: var(--aq-radius);
  padding: 14px 18px;
  transition: all var(--aq-trans);
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: var(--aq-white);
  box-shadow: var(--aq-shadow);
  border-color: var(--aq-cyan);
}
.post-navigation a { text-decoration: none; color: var(--aq-navy) !important; font-weight: 600; font-size: .9rem; }
.nav-subtitle { display: block; color: var(--aq-muted) !important; font-size: .75rem; font-weight: 400; margin-bottom: 4px; }

/* ── AFFILIATE PRODUCT BOX (classe .aq-produit) ── */
.aq-produit {
  background: var(--aq-pale);
  border: 2px solid var(--aq-light);
  border-left: 5px solid var(--aq-cyan);
  border-radius: var(--aq-radius);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.aq-produit img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--aq-white);
  padding: 8px;
  flex-shrink: 0;
}
.aq-produit .aq-produit-info { flex: 1; min-width: 200px; }
.aq-produit .aq-produit-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--aq-navy);
  margin-bottom: .3rem;
}
.aq-produit .aq-produit-price {
  color: var(--aq-teal);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .8rem;
}
.aq-produit .aq-btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff9900;
  color: #111 !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: .9rem;
  transition: all var(--aq-trans);
}
.aq-produit .aq-btn-amazon:hover {
  background: #e88a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,153,0,.4);
}


/* ── BADGE EMOJI CATÉGORIE ── */
.aq-cat-badge {
  display: inline;
  margin-left: 4px;
  font-size: 1em;
  vertical-align: middle;
}

/* ── RATING STARS ── */
.aq-rating { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; }

/* ── PAGE À PROPOS ── */
.aq-about-hero {
  background: linear-gradient(135deg, var(--aq-navy), var(--aq-teal));
  padding: 60px 30px;
  text-align: center;
  border-radius: var(--aq-radius);
  margin-bottom: 2rem;
  color: var(--aq-white);
}
.aq-about-hero h1 {
  color: var(--aq-white) !important;
  font-size: 2.2rem;
  margin-bottom: .8rem;
}
.aq-about-hero p { color: rgba(255,255,255,.85) !important; font-size: 1.1rem; }

/* ── PAGE CONTACT ── */
.aq-contact-box {
  background: var(--aq-pale);
  border-radius: var(--aq-radius);
  padding: 40px;
  border: 1px solid var(--aq-light);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--aq-shadow);
}
.aq-contact-box h2 { text-align: left; }
.aq-contact-box h2::after { left: 0; transform: none; }
.aq-contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--aq-light);
}
.aq-contact-info-item:last-child { border-bottom: none; }
.aq-contact-info-item .icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--aq-teal), var(--aq-cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.aq-contact-info-item a { color: var(--aq-teal) !important; font-weight: 600; }

/* ── PAGINATION ── */
.page-numbers {
  background: var(--aq-pale);
  border: 1px solid var(--aq-light);
  color: var(--aq-teal) !important;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all var(--aq-trans);
  text-decoration: none;
  font-weight: 600;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--aq-teal);
  color: var(--aq-white) !important;
  border-color: var(--aq-teal);
}


/* ── BUBBLES ── */
#aqua-bubbles-container {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0,180,216,.15);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: .6; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ── PAGE 404 ── */
.error404 .entry-header { display: none; }
.error404 .entry-content {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.aq-404-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  animation: float404 3s ease-in-out infinite;
}
@keyframes float404 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.aq-404-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aq-navy);
  margin-bottom: .5rem;
}
.aq-404-sub {
  color: var(--aq-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.aq-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.aq-404-links a {
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--aq-trans);
  font-size: .9rem;
}
.aq-404-links a.primary {
  background: linear-gradient(135deg, var(--aq-teal), var(--aq-cyan));
  color: white !important;
}
.aq-404-links a.secondary {
  border: 2px solid var(--aq-light);
  color: var(--aq-teal) !important;
}
.aq-404-links a:hover { transform: translateY(-2px); box-shadow: var(--aq-shadow); }


/* ── SEARCH BAR ── */
#aq-search-item {
  position: relative;
  display: flex;
  align-items: center;
}

#aq-search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--aq-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--aq-trans), background var(--aq-trans);
}
#aq-search-toggle:hover { color: var(--aq-cyan); background: rgba(255,255,255,.1); }

#aq-search-box {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--aq-white);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  padding: 10px;
  z-index: 10000;
}
#aq-search-box.open { display: block; }

#aq-search-box form {
  display: flex;
  gap: 6px;
  align-items: center;
}
#aq-search-box input[type="search"] {
  flex: 1;
  padding: 9px 14px;
  border: 2px solid var(--aq-light);
  border-radius: 50px;
  font-size: .9rem;
  outline: none;
  color: var(--aq-text);
  transition: border-color var(--aq-trans);
}
#aq-search-box input[type="search"]:focus { border-color: var(--aq-cyan); }
#aq-search-box button[type="submit"] {
  background: linear-gradient(135deg, var(--aq-teal), var(--aq-cyan));
  border: none;
  border-radius: 50px;
  padding: 0 14px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--aq-trans);
}
#aq-search-box button[type="submit"]:hover { transform: scale(1.08); }

/* ── DARK / LIGHT TOGGLE BUTTON ── */
#aq-theme-toggle-item { display: flex; align-items: center; }
#aq-theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--aq-light);
  display: flex; align-items: center; justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--aq-trans), background var(--aq-trans);
}
#aq-theme-toggle:hover { color: var(--aq-cyan); background: rgba(255,255,255,.1); }

/* ── DARK MODE — voir aqua-custom.php wp_head prio 200 ── */

/* ── PAGES AUTEURS ── */
.ast-author-box {
  flex-direction: row-reverse;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wp-block-cover { padding: 60px 16px !important; }
  .aq-categories .wp-block-columns { flex-direction: column; }
  .aq-produit { flex-direction: column; align-items: center; text-align: center; }
  .aq-produit img { width: 100px; height: 100px; }

  /* Header mobile : titre sur une seule ligne */
  .ast-site-title-wrap .site-title,
  .ast-site-title-wrap .site-title a { white-space: nowrap; font-size: 1rem !important; }
  .ast-site-title-wrap .site-title::after { letter-spacing: 0.07em !important; font-size: 0.55rem; white-space: nowrap; }
  .site-header .site-description,
  .wp-custom-logo .ast-site-title-wrap .site-description,
  .ast-site-title-wrap .site-description { letter-spacing: 0.07em !important; white-space: nowrap; font-size: 0.55rem !important; }

  /* Bandeau features : 1 colonne sur mobile */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── PAGES STATIQUES — bandeau titre centré ── */
.page-id-23 .entry-header,
.page-id-24 .entry-header {
  background: linear-gradient(135deg, var(--aq-navy) 0%, var(--aq-teal) 100%);
  padding: 50px 30px 40px;
  margin-bottom: 0;
  text-align: center;
  position: relative;
}
.page-id-23 .entry-header::after,
.page-id-24 .entry-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0a6e8a, #00b4d8);
  margin: 16px auto 0;
  border-radius: 2px;
}
.page-id-23 .entry-title,
.page-id-24 .entry-title {
  color: #fff !important;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 auto;
  max-width: 800px;
}
