/*
Theme Name: Anne-Gaëlle — Blog
Theme URI: https://anne-gaellebeucher.fr
Author: Anne-Gaëlle Beucher
Description: Thème de blog fidèle au site Anne-Gaëlle Beucher, Naturopathe (Quimper). Header, footer, logo, couleurs et navigation identiques au site principal, pour que le visiteur ne sente pas de rupture en passant sur le blog. Une seule URL à modifier (AGB_MAIN_SITE dans functions.php).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anne-gaelle
*/

/* =========================================================
   1. Variables (couleurs prélevées sur les captures)
   ========================================================= */
:root{
  --agb-topbar:        #363c4b;  /* fine barre sombre tout en haut */
  --agb-header-bg:     #ffffff;  /* fond du header */
  --agb-nav-link:      #5452e2;  /* texte du menu (bleu-violet) */
  --agb-nav-link-hov:  #7b20d9;  /* survol menu */
  --agb-btn-primary:   #7b20d9;  /* bouton « Prendre RDV » */
  --agb-btn-secondary: #7b56a0;  /* bouton « Réserver un séjour » */

  --agb-footer-bg:     #eaf5f2;  /* menthe clair du footer */
  --agb-footer-bg2:    #e1f1ec;
  --agb-green:         #5d9781;  /* vert (pastilles, fb, titres) */
  --agb-green-dark:    #4d8770;
  --agb-purple-brand:  #7b56a0;  /* mot « Anne-Gaëlle » */

  --agb-text:          #2b2f33;  /* texte courant */
  --agb-text-soft:     #5c6066;
  --agb-text-dark:     #0b1411;
  --agb-link:          #5452e2;
  --agb-link-hov:      #7b20d9;

  --agb-bg:            #ffffff;
  --agb-bg-soft:       #f4faf8;
  --agb-border:        #e6ece9;

  --agb-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --agb-radius: 10px;
  --agb-maxw: 1180px;
}

/* =========================================================
   2. Base
   ========================================================= */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--agb-font);
  font-weight:400;
  font-size:17px;
  line-height:1.7;
  color:var(--agb-text);
  background:var(--agb-bg);
}
img{ max-width:100%; height:auto; }
a{ color:var(--agb-link); text-decoration:none; }
a:hover{ color:var(--agb-link-hov); }
h1,h2,h3,h4,h5,h6{ font-weight:600; line-height:1.25; color:var(--agb-text-dark); }
p{ margin:0 0 1.2em; }

.agb-container{ width:100%; max-width:var(--agb-maxw); margin:0 auto; padding:0 24px; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:8px; top:8px; background:#fff; padding:8px 14px; z-index:9999; border-radius:8px; }

/* =========================================================
   3. Barre sombre supérieure
   ========================================================= */
.agb-topbar{ height:4px; background:var(--agb-topbar); }

/* =========================================================
   4. Header / navigation
   ========================================================= */
.agb-header{ background:var(--agb-header-bg); border-bottom:1px solid var(--agb-border); }
.agb-header .agb-container{ display:flex; align-items:center; gap:28px; min-height:84px; }

.agb-logo{ flex:0 0 auto; display:flex; align-items:center; }
.agb-logo img{ height:60px; width:auto; display:block; }

.agb-nav{ flex:1 1 auto; }
.agb-nav-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; gap:22px;
}
.agb-nav-list a{
  color:var(--agb-nav-link);
  text-transform:uppercase;
  font-weight:500;
  font-size:14px;
  letter-spacing:.02em;
  white-space:nowrap;
  padding:6px 0;
  border-bottom:2px solid transparent;
  transition:color .15s, border-color .15s;
}
.agb-nav-list a:hover{ color:var(--agb-nav-link-hov); }
.agb-nav-list a .caret{ font-size:.7em; margin-left:4px; opacity:.8; }

/* onglet actif (le visiteur est sur le blog → « Blog » mis en valeur) */
.agb-nav-list .is-active a,
.agb-nav-list .current-menu-item a{
  color:var(--agb-nav-link-hov);
  border-bottom-color:var(--agb-nav-link-hov);
}

.agb-header-actions{ flex:0 0 auto; display:flex; align-items:center; gap:14px; }
.agb-social-link{
  width:30px; height:30px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--agb-nav-link); border:1px solid transparent;
}
.agb-social-link:hover{ color:var(--agb-nav-link-hov); }
.agb-social-link svg{ width:16px; height:16px; fill:currentColor; }

.agb-btn{
  display:inline-block; text-transform:uppercase; font-weight:600;
  font-size:13px; letter-spacing:.03em; color:#fff;
  padding:12px 20px; border-radius:30px; white-space:nowrap;
  transition:opacity .15s, transform .05s;
}
.agb-btn:hover{ color:#fff; opacity:.92; }
.agb-btn:active{ transform:translateY(1px); }
.agb-btn--primary{ background:var(--agb-btn-primary); }
.agb-btn--secondary{ background:var(--agb-btn-secondary); }

/* Burger (mobile) */
.agb-burger{
  display:none; background:none; border:0; cursor:pointer;
  padding:8px; margin-left:auto; color:var(--agb-nav-link);
}
.agb-burger svg{ width:26px; height:26px; fill:currentColor; }

/* =========================================================
   5. Contenu principal
   ========================================================= */
.agb-site-main{ padding:48px 0 64px; }
.agb-layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:48px; align-items:start; }
.agb-layout.no-sidebar{ grid-template-columns:minmax(0,1fr); max-width:820px; margin:0 auto; }

.page-header{ margin-bottom:36px; }
.page-title{ font-size:30px; margin:0; }
.page-title .hl{ color:var(--agb-green); }
.archive-description{ color:var(--agb-text-soft); margin-top:8px; }

/* Liste d'articles */
.post-card{
  background:var(--agb-bg);
  border:1px solid var(--agb-border);
  border-radius:var(--agb-radius);
  overflow:hidden;
  margin-bottom:34px;
  transition:box-shadow .18s, transform .18s;
}
.post-card:hover{ box-shadow:0 10px 30px rgba(93,151,129,.14); transform:translateY(-2px); }
.post-card .thumb{ display:block; }
.post-card .thumb img{ width:100%; height:auto; display:block; }
.post-card .card-body{ padding:24px 26px 28px; }
.entry-title{ font-size:23px; margin:0 0 10px; }
.entry-title a{ color:var(--agb-text-dark); }
.entry-title a:hover{ color:var(--agb-green); }
.entry-meta{ font-size:13.5px; color:var(--agb-text-soft); margin-bottom:14px; }
.entry-meta a{ color:var(--agb-green); }
.entry-meta a:hover{ color:var(--agb-green-dark); }
.entry-summary{ color:var(--agb-text); }
.read-more{
  display:inline-block; margin-top:14px; font-weight:600; font-size:14px;
  text-transform:uppercase; letter-spacing:.02em; color:var(--agb-link);
}
.read-more:hover{ color:var(--agb-link-hov); }

/* Article seul */
.single-post .entry-header{ margin-bottom:26px; }
.single-post .entry-title{ font-size:32px; }
.single .featured-image{ margin:0 0 28px; border-radius:var(--agb-radius); overflow:hidden; }
.entry-content{ font-size:17.5px; }
.entry-content h2{ font-size:25px; margin:1.8em 0 .6em; }
.entry-content h3{ font-size:21px; margin:1.6em 0 .5em; }
.entry-content img{ border-radius:8px; }
.entry-content blockquote{
  margin:1.6em 0; padding:6px 22px; border-left:3px solid var(--agb-green);
  background:var(--agb-bg-soft); color:var(--agb-text-soft); font-style:italic;
}
.entry-content a{ text-decoration:underline; text-underline-offset:2px; }
.entry-content ul,.entry-content ol{ padding-left:1.3em; }
.entry-content code{ background:var(--agb-bg-soft); padding:2px 6px; border-radius:5px; font-size:.92em; }

.entry-footer{ margin-top:34px; padding-top:22px; border-top:1px solid var(--agb-border); font-size:14px; color:var(--agb-text-soft); }
.entry-footer .tag-links a, .entry-footer .cat-links a{
  display:inline-block; background:var(--agb-footer-bg); color:var(--agb-green-dark);
  padding:5px 12px; border-radius:30px; margin:0 6px 6px 0; font-size:13px;
}
.entry-footer .tag-links a:hover{ background:var(--agb-green); color:#fff; }

/* Navigation article suivant/précédent */
.post-navigation{ margin-top:40px; display:flex; justify-content:space-between; gap:18px; }
.post-navigation .nav-previous a,.post-navigation .nav-next a{
  display:block; padding:14px 18px; border:1px solid var(--agb-border); border-radius:var(--agb-radius);
  color:var(--agb-text); font-weight:500;
}
.post-navigation a:hover{ border-color:var(--agb-green); color:var(--agb-green-dark); }

/* Pagination */
.pagination{ margin-top:40px; display:flex; justify-content:center; }
.pagination .nav-links{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.pagination .page-numbers{
  display:inline-flex; min-width:42px; height:42px; padding:0 12px; align-items:center; justify-content:center;
  border:1px solid var(--agb-border); border-radius:8px; color:var(--agb-text); font-weight:500;
}
.pagination .page-numbers.current{ background:var(--agb-green); border-color:var(--agb-green); color:#fff; }
.pagination a.page-numbers:hover{ border-color:var(--agb-green); color:var(--agb-green-dark); }

/* =========================================================
   6. Sidebar / widgets
   ========================================================= */
.agb-sidebar .widget{
  background:var(--agb-bg); border:1px solid var(--agb-border); border-radius:var(--agb-radius);
  padding:22px 22px; margin-bottom:26px;
}
.widget-title{ font-size:16px; text-transform:uppercase; letter-spacing:.04em; color:var(--agb-green-dark); margin:0 0 14px; }
.agb-sidebar ul{ list-style:none; margin:0; padding:0; }
.agb-sidebar li{ padding:7px 0; border-bottom:1px solid var(--agb-border); font-size:15px; }
.agb-sidebar li:last-child{ border-bottom:0; }
.agb-sidebar a{ color:var(--agb-text); }
.agb-sidebar a:hover{ color:var(--agb-green); }
.widget select{ width:100%; padding:9px; border:1px solid var(--agb-border); border-radius:8px; }

/* Recherche */
.search-form{ display:flex; gap:8px; }
.search-form .search-field{
  flex:1 1 auto; padding:11px 14px; border:1px solid var(--agb-border); border-radius:8px; font-family:inherit; font-size:15px;
}
.search-form .search-submit{
  flex:0 0 auto; padding:11px 16px; border:0; border-radius:8px; cursor:pointer;
  background:var(--agb-green); color:#fff; font-weight:600;
}
.search-form .search-submit:hover{ background:var(--agb-green-dark); }

/* =========================================================
   7. Commentaires
   ========================================================= */
.comments-area{ margin-top:50px; padding-top:34px; border-top:1px solid var(--agb-border); }
.comments-title,.comment-reply-title{ font-size:22px; margin:0 0 22px; }
.comment-list{ list-style:none; margin:0; padding:0; }
.comment-list .comment{ margin:0 0 22px; }
.comment-body{ background:var(--agb-bg-soft); border:1px solid var(--agb-border); border-radius:var(--agb-radius); padding:18px 20px; }
.comment-author{ font-weight:600; }
.comment-author .avatar{ border-radius:50%; vertical-align:middle; margin-right:10px; }
.comment-metadata{ font-size:13px; color:var(--agb-text-soft); }
.comment-list .children{ list-style:none; margin:18px 0 0; padding:0 0 0 28px; }
.comment-respond{ margin-top:30px; }
.comment-form label{ display:block; font-size:14px; font-weight:500; margin:0 0 6px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea{
  width:100%; padding:11px 13px; border:1px solid var(--agb-border); border-radius:8px; font-family:inherit; font-size:15px; margin-bottom:16px;
}
.comment-form .submit{
  background:var(--agb-btn-primary); color:#fff; border:0; border-radius:30px;
  padding:12px 26px; font-weight:600; text-transform:uppercase; font-size:13px; letter-spacing:.03em; cursor:pointer;
}
.comment-form .submit:hover{ opacity:.92; }

/* =========================================================
   8. 404
   ========================================================= */
.error-404{ text-align:center; padding:30px 0 20px; }
.error-404 .big{ font-size:64px; color:var(--agb-green); margin:0; line-height:1; }
.error-404 .search-form{ max-width:440px; margin:24px auto 0; }

/* =========================================================
   9. Footer (fidèle au site)
   ========================================================= */
.agb-footer{ background:var(--agb-footer-bg); color:var(--agb-text-dark); padding:56px 0 0; margin-top:40px; }
.agb-footer-top{ text-align:center; }
.agb-footer-logo img{ height:104px; width:auto; }
.agb-footer-brand{ margin-top:6px; line-height:1.2; }
.agb-footer-brand .name{ display:block; font-size:22px; color:var(--agb-purple-brand); font-weight:600; }
.agb-footer-brand .baseline{ display:block; font-size:13px; color:var(--agb-green); letter-spacing:.05em; }

.agb-footer-contact{ margin:26px 0 8px; font-size:15.5px; }
.agb-footer-contact p{ margin:6px 0; }
.agb-footer-contact a{ color:var(--agb-text-dark); }
.agb-footer-contact a:hover{ color:var(--agb-green-dark); }
.agb-footer-contact .ico{ color:var(--agb-green); margin-right:6px; }

.agb-footer-social{ margin:18px 0 4px; }
.agb-footer-social a{
  width:40px; height:40px; border-radius:50%; background:var(--agb-green); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
}
.agb-footer-social a:hover{ background:var(--agb-green-dark); color:#fff; }
.agb-footer-social svg{ width:18px; height:18px; fill:currentColor; }

.agb-footer-divider{ border:0; border-top:1px solid #d4e3dd; margin:40px 0 36px; }

.agb-footer-cols{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.agb-footer-cols h3{ font-size:21px; color:var(--agb-text-dark); margin:0 0 18px; font-weight:600; }
.agb-plan{ font-size:15.5px; color:var(--agb-text-dark); line-height:2; }
.agb-plan a{ color:var(--agb-text-dark); }
.agb-plan a:hover{ color:var(--agb-green-dark); }
.agb-plan .sep{ color:var(--agb-green); margin:0 7px; }

.agb-tags{ display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.agb-tag{
  background:var(--agb-green); color:#fff; border-radius:30px;
  padding:8px 16px; font-size:14px; line-height:1; white-space:nowrap;
}
.agb-tag:hover{ background:var(--agb-green-dark); color:#fff; }

.agb-footer-bottom{ margin-top:46px; padding:22px 0; border-top:1px solid #d4e3dd; text-align:center; font-size:14px; color:var(--agb-text-soft); }
.agb-footer-bottom a{ color:var(--agb-text-soft); }
.agb-footer-bottom a:hover{ color:var(--agb-green-dark); }
.agb-footer-bottom .sep{ margin:0 7px; color:#bcd0c8; }

/* Bouton retour en haut */
.agb-totop{
  position:fixed; right:22px; bottom:22px; width:48px; height:48px; border-radius:12px;
  background:var(--agb-green); color:#fff; display:none; align-items:center; justify-content:center;
  border:0; cursor:pointer; z-index:50; box-shadow:0 6px 18px rgba(93,151,129,.4);
}
.agb-totop.show{ display:flex; }
.agb-totop:hover{ background:var(--agb-green-dark); }
.agb-totop svg{ width:22px; height:22px; fill:currentColor; }

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width:1024px){
  .agb-layout{ grid-template-columns:1fr; }
  .agb-sidebar{ margin-top:30px; }
}
@media (max-width:900px){
  .agb-header .agb-container{ flex-wrap:wrap; min-height:64px; gap:14px; }
  .agb-burger{ display:inline-flex; order:3; }
  .agb-nav{ order:5; flex-basis:100%; display:none; }
  .agb-nav.open{ display:block; }
  .agb-nav-list{ flex-direction:column; align-items:flex-start; gap:2px; padding:10px 0 16px; }
  .agb-nav-list a{ display:block; width:100%; padding:11px 0; border-bottom:1px solid var(--agb-border); }
  .agb-nav-list .is-active a{ border-bottom-color:var(--agb-border); }
  .agb-header-actions{ order:2; margin-left:auto; }
  .agb-btn{ padding:10px 14px; font-size:12px; }
  .agb-footer-cols{ grid-template-columns:1fr; gap:30px; }
  .agb-tags{ justify-content:flex-start; }
  .agb-footer-logo img{ height:88px; }
}
@media (max-width:560px){
  body{ font-size:16px; }
  .agb-header-actions .agb-btn{ display:none; }
  .agb-header-actions .agb-btn--primary{ display:inline-block; }
  .page-title{ font-size:25px; }
  .single-post .entry-title{ font-size:26px; }
}
