/*
Theme Name:  Ici Biarritz
Theme URI:   https://ici-biarritz.com
Author:      Cocallemen Partner
Author URI:  https://cocallemen.com
Description: Thème éditorial Côte Basque authentique pour ici-biarritz.com. Design inspiré de l'Office de Tourisme de Biarritz — bleu océan, rubriques thématiques, agenda, cards articles, mise en avant El Callejon.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ici-biarritz
Tags:        blog, custom-colors, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* ═══════════════════════════════════════════════
   VARIABLES CSS
═══════════════════════════════════════════════ */
:root {
  --bleu-ocean:   #007BA7;
  --bleu-fonce:   #005F82;
  --bleu-clair:   #E8F4F8;
  --bleu-pale:    #F0F7FA;
  --rouge-basque: #C0392B;
  --vert-basque:  #2E7D5B;
  --blanc:        #FFFFFF;
  --gris-bg:      #F5F5F3;
  --gris-clair:   #E8E8E4;
  --gris-texte:   #5A5A5A;
  --gris-moyen:   #7A7A7A;
  --encre:        #1A1A1A;
  --sable:        #F2EDE4;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--blanc);
  color: var(--encre);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.ib-topbar {
  background: var(--bleu-fonce);
  padding: 6px 0;
}
.ib-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ib-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ib-topbar__item {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ib-topbar__langs {
  display: flex;
  gap: 6px;
}
.ib-topbar__lang {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 8px;
  cursor: pointer;
  transition: all .2s;
}
.ib-topbar__lang:hover,
.ib-topbar__lang--active { color: #fff; border-color: rgba(255,255,255,.6); text-decoration: none; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.ib-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blanc);
  border-bottom: 2px solid var(--bleu-ocean);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.ib-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.ib-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.ib-logo__icon {
  width: 44px; height: 44px;
  background: var(--bleu-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ib-logo__site-name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bleu-ocean);
  line-height: 1;
  display: block;
  letter-spacing: -0.5px;
}
.ib-logo__tagline {
  font-size: 10px;
  color: var(--gris-moyen);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Navigation principale */
.ib-nav { display: flex; align-items: stretch; height: 68px; flex: 1; justify-content: center; }
.ib-nav ul { display: flex; list-style: none; padding: 0; margin: 0; align-items: stretch; }
.ib-nav ul li { display: flex; }
.ib-nav ul li a {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.ib-nav ul li a:hover,
.ib-nav ul li.current-menu-item > a,
.ib-nav ul li.current-page-ancestor > a {
  color: var(--bleu-ocean);
  border-bottom-color: var(--bleu-ocean);
}
/* Sous-menus */
.ib-nav ul li { position: relative; }
.ib-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-top: 2px solid var(--bleu-ocean);
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 300;
}
.ib-nav ul li:hover > ul { display: flex; }
.ib-nav ul ul li { flex-direction: column; }
.ib-nav ul ul li a {
  padding: 10px 16px;
  border: none;
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid var(--gris-clair);
}
.ib-nav ul ul li:last-child a { border-bottom: none; }

.ib-header__search {
  width: 40px; height: 40px;
  border: 1px solid var(--gris-clair);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-texte);
  transition: all .2s;
  flex-shrink: 0;
}
.ib-header__search:hover { background: var(--bleu-clair); color: var(--bleu-ocean); border-color: var(--bleu-ocean); }

/* Menu burger mobile */
.ib-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.ib-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--encre);
  transition: all .3s;
}

/* ═══════════════════════════════════════════════
   BANDE BASQUE (haut & bas)
═══════════════════════════════════════════════ */
.ib-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--rouge-basque) 0%, var(--rouge-basque) 33.33%,
    #fff 33.33%, #fff 66.66%,
    var(--vert-basque) 66.66%, var(--vert-basque) 100%
  );
}

/* ═══════════════════════════════════════════════
   HERO (page d'accueil)
═══════════════════════════════════════════════ */
.ib-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--bleu-fonce);
}
.ib-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ib-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.ib-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}
.ib-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bleu-ocean);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 18px;
  width: fit-content;
}
.ib-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ib-hero__title em { font-style: italic; color: #9ED8F0; }
.ib-hero__desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}
.ib-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ib-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 24px;
  transition: background .2s, color .2s;
  cursor: pointer;
  text-decoration: none;
}
.ib-btn--primary { background: var(--blanc); color: var(--bleu-ocean); }
.ib-btn--primary:hover { background: var(--bleu-ocean); color: #fff; text-decoration: none; }
.ib-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.ib-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; text-decoration: none; }
.ib-btn--blue { background: var(--bleu-ocean); color: #fff; }
.ib-btn--blue:hover { background: var(--bleu-fonce); text-decoration: none; }

/* Panneau agenda latéral dans le hero */
.ib-hero__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 290px;
  background: rgba(0,60,90,.87);
  backdrop-filter: blur(8px);
  z-index: 3;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.ib-hero__panel-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ib-hero__panel-events { display: flex; flex-direction: column; flex: 1; }
.ib-hero__panel-event {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  display: block;
  transition: padding-left .2s;
}
.ib-hero__panel-event:hover { padding-left: 5px; }
.ib-hero__panel-event-date { font-size: 10px; color: #9ED8F0; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.ib-hero__panel-event-title { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 2px; }
.ib-hero__panel-event-lieu { font-size: 11px; color: rgba(255,255,255,.4); }
.ib-hero__panel-link { margin-top: 16px; font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700; color: #9ED8F0; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; }

/* ═══════════════════════════════════════════════
   BARRE THÉMATIQUES
═══════════════════════════════════════════════ */
.ib-themes { background: var(--bleu-ocean); }
.ib-themes__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}
.ib-themes__item {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,.85);
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.ib-themes__item:last-child { border-right: none; }
.ib-themes__item:hover { background: var(--bleu-fonce); color: #fff; }
.ib-themes__icon { font-size: 18px; }
.ib-themes__label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   LAYOUT GÉNÉRAL
═══════════════════════════════════════════════ */
.ib-section { padding: 56px 0; }
.ib-section--alt { background: var(--gris-bg); }
.ib-section--blue { background: var(--bleu-pale); }
.ib-section--dark { background: var(--encre); }

.ib-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.ib-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris-clair);
}
.ib-section__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bleu-ocean);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-section__kicker::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--bleu-ocean);
}
.ib-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--encre);
  line-height: 1.2;
}
.ib-section__title em { font-style: italic; color: var(--bleu-ocean); }
.ib-voir-plus {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bleu-ocean);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s;
}
.ib-voir-plus:hover { border-bottom-color: var(--bleu-ocean); }

/* ═══════════════════════════════════════════════
   GRILLES
═══════════════════════════════════════════════ */
.ib-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.ib-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.ib-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.ib-grid-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; }

/* ═══════════════════════════════════════════════
   CARDS ARTICLES
═══════════════════════════════════════════════ */
.ib-card {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ib-card:hover {
  box-shadow: 0 8px 32px rgba(0,123,167,.12);
  transform: translateY(-3px);
  text-decoration: none;
}
.ib-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gris-clair);
  position: relative;
}
.ib-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ib-card:hover .ib-card__img img { transform: scale(1.06); }
.ib-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ib-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bleu-ocean);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ib-card__cat::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.ib-card__cat--rouge { color: var(--rouge-basque); }
.ib-card__cat--vert  { color: var(--vert-basque); }
.ib-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--encre);
  margin-bottom: 8px;
  transition: color .2s;
  flex: 1;
}
.ib-card:hover .ib-card__title { color: var(--bleu-ocean); }
.ib-card__excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--gris-texte);
  line-height: 1.6;
  margin-bottom: 14px;
}
.ib-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gris-clair);
  margin-top: auto;
}
.ib-card__date { font-size: 11px; color: var(--gris-moyen); }
.ib-card__lire {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--bleu-ocean);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Grande carte hero */
.ib-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: block;
  text-decoration: none;
}
.ib-hero-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ib-hero-card:hover .ib-hero-card__img { transform: scale(1.04); }
.ib-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%);
}
.ib-hero-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  z-index: 2;
}
.ib-hero-card__cat {
  display: inline-block;
  background: var(--bleu-ocean);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.ib-hero-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.ib-hero-card__excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 14px;
}
.ib-hero-card__meta { display: flex; align-items: center; gap: 16px; }
.ib-hero-card__date { font-size: 11px; color: rgba(255,255,255,.5); }
.ib-hero-card__lire { font-size: 11px; font-weight: 700; color: #9ED8F0; font-family: 'Raleway', sans-serif; }

/* Cartes latérales */
.ib-side-cards { display: flex; flex-direction: column; gap: 3px; }
.ib-side-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 237px;
  display: block;
  text-decoration: none;
}
.ib-side-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.ib-side-card:hover .ib-side-card__img { transform: scale(1.05); }
.ib-side-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 55%);
}
.ib-side-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px;
  z-index: 2;
}
.ib-side-card__cat {
  display: inline-block;
  background: var(--rouge-basque);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.ib-side-card__cat--vert { background: var(--vert-basque); }
.ib-side-card__cat--bleu { background: var(--bleu-ocean); }
.ib-side-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

/* ═══════════════════════════════════════════════
   INFOS PRATIQUES
═══════════════════════════════════════════════ */
.ib-pratique { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: var(--gris-clair); }
.ib-pratique__item {
  background: var(--blanc);
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--gris-clair);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
  display: block;
}
.ib-pratique__item:last-child { border-right: none; }
.ib-pratique__item:hover { background: var(--bleu-pale); }
.ib-pratique__icon { font-size: 28px; margin-bottom: 10px; }
.ib-pratique__title { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; color: var(--encre); margin-bottom: 4px; }
.ib-pratique__desc { font-size: 11px; color: var(--gris-moyen); line-height: 1.4; }

/* ═══════════════════════════════════════════════
   AGENDA
═══════════════════════════════════════════════ */
.ib-agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gris-clair); }
.ib-agenda-item {
  background: var(--blanc);
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.ib-agenda-item:hover { background: var(--bleu-pale); }
.ib-agenda-item__date {
  flex-shrink: 0;
  width: 50px;
  background: var(--bleu-ocean);
  text-align: center;
  padding: 7px 4px;
}
.ib-agenda-item__date--rouge { background: var(--rouge-basque); }
.ib-agenda-item__date--vert  { background: var(--vert-basque); }
.ib-agenda-item__day {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.ib-agenda-item__month {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
  margin-top: 2px;
}
.ib-agenda-item__type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bleu-ocean);
  margin-bottom: 3px;
}
.ib-agenda-item__title {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--encre);
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color .2s;
}
.ib-agenda-item:hover .ib-agenda-item__title { color: var(--bleu-ocean); }
.ib-agenda-item__lieu { font-size: 11px; color: var(--gris-moyen); }

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.ib-stats { background: var(--bleu-fonce); padding: 28px 0; }
.ib-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.ib-stat { text-align: center; }
.ib-stat__number {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.ib-stat__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  display: block;
}
.ib-stat__sep { width: 1px; height: 36px; background: rgba(255,255,255,.12); }

/* ═══════════════════════════════════════════════
   BANNER PORTRAIT D'ADRESSE (El Callejon)
═══════════════════════════════════════════════ */
.ib-banner {
  background: var(--encre);
  position: relative;
  overflow: hidden;
}
.ib-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--rouge-basque), var(--bleu-ocean));
}
.ib-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ib-banner__photos { position: relative; height: 360px; }
.ib-banner__photo-main {
  position: absolute;
  top: 0; left: 0;
  width: 72%; height: 83%;
  overflow: hidden;
}
.ib-banner__photo-main img,
.ib-banner__photo-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ib-banner__photo-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 50%; height: 50%;
  overflow: hidden;
  border: 3px solid var(--encre);
}
.ib-banner__year {
  position: absolute;
  bottom: 8px; left: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  font-weight: 700;
  color: rgba(255,255,255,.04);
  line-height: 1;
  z-index: 4;
  pointer-events: none;
}
.ib-banner__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bleu-ocean);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ib-banner__label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--bleu-ocean);
}
.ib-banner__title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.ib-banner__title em { font-style: italic; color: #9ED8F0; }
.ib-banner__since {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.ib-banner__text {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: 24px;
}
.ib-banner__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ib-banner__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.04);
}

/* ═══════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════ */
.ib-newsletter { background: var(--bleu-ocean); padding: 52px 0; }
.ib-newsletter__inner { max-width: 680px; margin: 0 auto; padding: 0 24px; text-align: center; }
.ib-newsletter__icon { font-size: 28px; margin-bottom: 14px; }
.ib-newsletter__title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.ib-newsletter__title em { font-style: italic; }
.ib-newsletter__desc { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 28px; }
.ib-newsletter__form { display: flex; max-width: 440px; margin: 0 auto 12px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.ib-newsletter__input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  outline: none;
}
.ib-newsletter__submit {
  padding: 14px 22px;
  background: var(--encre);
  color: #fff;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.ib-newsletter__submit:hover { background: var(--rouge-basque); }
.ib-newsletter__note { font-size: 11px; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.ib-footer { background: #0D1F2D; }
.ib-footer__top { padding: 48px 0 36px; }
.ib-footer__top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.ib-footer__tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 18px; max-width: 280px; }
.ib-footer__social { display: flex; gap: 8px; }
.ib-footer__social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ib-footer__social-btn:hover { background: var(--bleu-ocean); color: #fff; }
.ib-footer__col-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ib-footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ib-footer__links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.ib-footer__links a:hover { color: #fff; }
.ib-footer__bottom {
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ib-footer__copy { font-size: 11px; color: rgba(255,255,255,.22); }
.ib-footer__legal { display: flex; gap: 18px; }
.ib-footer__legal a { font-size: 11px; color: rgba(255,255,255,.22); text-decoration: none; }
.ib-footer__legal a:hover { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════
   PAGE SINGLE ARTICLE
═══════════════════════════════════════════════ */
.ib-single { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 320px; gap: 56px; }
.ib-single__content {}
.ib-single__featured { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin-bottom: 28px; }
.ib-single__cat { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--bleu-ocean); margin-bottom: 12px; }
.ib-single__title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; line-height: 1.15; color: var(--encre); margin-bottom: 16px; }
.ib-single__meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--gris-moyen); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gris-clair); }
.ib-single__meta span { display: flex; align-items: center; gap: 5px; }
.ib-entry-content { font-size: 16px; line-height: 1.8; color: var(--gris-texte); }
.ib-entry-content p { margin-bottom: 1.5rem; }
.ib-entry-content h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--encre); margin: 2rem 0 1rem; }
.ib-entry-content h3 { font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--encre); margin: 1.5rem 0 .8rem; }
.ib-entry-content blockquote { border-left: 4px solid var(--bleu-ocean); padding: 16px 24px; background: var(--bleu-pale); margin: 2rem 0; font-style: italic; font-size: 17px; color: var(--bleu-fonce); }
.ib-entry-content img { width: 100%; height: auto; margin: 1.5rem 0; }
.ib-sidebar {}
.ib-widget { margin-bottom: 36px; }
.ib-widget__title { font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gris-moyen); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--bleu-ocean); }

/* ═══════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════ */
.ib-breadcrumb { background: var(--gris-bg); padding: 10px 0; border-bottom: 1px solid var(--gris-clair); }
.ib-breadcrumb__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: 12px; color: var(--gris-moyen); }
.ib-breadcrumb__inner a { color: var(--bleu-ocean); text-decoration: none; }
.ib-breadcrumb__inner a:hover { text-decoration: underline; }
.ib-breadcrumb__sep { margin: 0 6px; }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.ib-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; }
.ib-pagination a, .ib-pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--gris-clair);
  color: var(--encre);
  text-decoration: none;
  transition: all .2s;
}
.ib-pagination a:hover, .ib-pagination .current { background: var(--bleu-ocean); color: #fff; border-color: var(--bleu-ocean); }

/* ═══════════════════════════════════════════════
   SEARCH MODAL
═══════════════════════════════════════════════ */
.ib-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,30,50,.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.ib-search-overlay.active { opacity: 1; pointer-events: all; }
.ib-search-overlay__form { width: 100%; max-width: 640px; padding: 0 24px; }
.ib-search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  padding: 16px 0;
  outline: none;
}
.ib-search-overlay__input::placeholder { color: rgba(255,255,255,.3); }
.ib-search-overlay__hint { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 12px; }
.ib-search-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
}
.ib-search-close:hover { color: #fff; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ib-grid-4 { grid-template-columns: repeat(2,1fr); }
  .ib-grid-main { grid-template-columns: 1fr 1fr; }
  .ib-hero__panel { display: none; }
  .ib-footer__top-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ib-banner__inner { grid-template-columns: 1fr; gap: 32px; }
  .ib-single { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Logo : cacher la tagline sur mobile, limiter la largeur */
  .ib-logo__tagline { display: none; }
  .ib-logo { max-width: calc(100% - 100px); flex-shrink: 1; overflow: hidden; }
  .ib-logo__text { min-width: 0; overflow: hidden; }
  .ib-logo__site-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  /* Burger et nav */
  .ib-nav { display: none; }
  .ib-burger { display: flex; flex-shrink: 0; }
  .ib-header__search { flex-shrink: 0; }
  /* Header inner : ne pas déborder */
  .ib-header__inner { padding: 0 16px; gap: 8px; overflow: visible; }
  .ib-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--blanc);
    border-top: 2px solid var(--bleu-ocean);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    height: auto;
    z-index: 999;
    padding-top: 68px;
  }
  .ib-nav.open ul { flex-direction: column; width: 100%; }
  .ib-nav.open ul li { width: 100%; }
  .ib-nav.open ul li a { display: block; border-bottom: 1px solid var(--gris-clair); border-left: none; padding: 14px 24px; }
  .ib-hero__content { padding: 0 24px; }
  .ib-hero { height: 480px; }
  .ib-grid-main { grid-template-columns: 1fr; }
  .ib-grid-3 { grid-template-columns: 1fr 1fr; }
  .ib-agenda-grid { grid-template-columns: 1fr; }
  .ib-stats__inner { flex-wrap: wrap; gap: 24px; }
  .ib-pratique { grid-template-columns: repeat(2,1fr); }
  .ib-themes__label { display: none; }
  .ib-themes__item { padding: 14px 8px; }
}
@media (max-width: 480px) {
  .ib-grid-4, .ib-grid-3, .ib-grid-2 { grid-template-columns: 1fr; }
  .ib-section__title { font-size: 24px; }
  .ib-hero__title { font-size: 28px; }
  .ib-footer__top-inner { grid-template-columns: 1fr; }
  .ib-pratique { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   WP EDITOR ALIGNMENT HELPERS
═══════════════════════════════════════════════ */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--gris-moyen); text-align: center; margin-top: 6px; }
