/*
============================================================

Theme Name: TT5 - Atelier Team Painting
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Thème enfant pour Twenty Twenty-Five
Author: Arsenal
Author URI: https://mon-site.com
Template: twentytwentyfive
Version: 1.1.0

============================================================
*/

/*
 * style.css — Atelier Teampainting
 * Structure : variables globales → typographie → utilitaires → sections
 * v1.1.0 : lisibilité (tailles de texte), coins arrondis, grilles formats/
 *          bénéfices en 2 colonnes, focus clavier propre, sections
 *          Déroulé (4) et FAQ (9) ajoutées — ex-css2.css de test intégré.
 */

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  /* Palette */
  --tp-blue:        #002FA7;
  --tp-blue-light:  #eef2ff;
  --tp-yellow:      #ffca2e;
  --tp-bg:          #f9f9f9;
  --tp-white:       #ffffff;
  --tp-text:        #1a1a1a;
  --tp-text-muted:  #666666;
  --tp-border:      #e4e4e4;

  /* Typographie */
  --tp-font:        'Barlow', sans-serif;

  /* Espacements */
  --tp-section-pad: 80px 60px;
  --tp-radius:      8px;   /* était 4px */
  --tp-radius-md:   12px;  /* était 6px */
}

/* ============================================================
   TYPOGRAPHIE GLOBALE
   ============================================================ */
body {
  font-family: var(--tp-font);
}

/* ============================================================
   ANNULATION DES PADDINGS GLOBAUX DU THÈME (FSE / Gutenberg)
   ============================================================ */

/* 1. On retire le padding global que le thème applique aux conteneurs parents */
body,
.wp-site-blocks,
.entry-content,
.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2. On annule les marges négatives compensatoires qui créent la marge à droite */
.has-global-padding > .alignfull,
.entry-content > .alignfull,
.entry-content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 3. Sécurité contre le défilement horizontal parasite */
html, body {
  overflow-x: hidden;
}

/* ============================================================
   ANNULATION DU BLOCK-GAP NATIVE DE GUTENBERG
   ============================================================ */

/* 1. Annule le margin-top / margin-block-start automatique entre les blocs */
:root :where(.is-layout-constrained) > *,
.entry-content > *,
.wp-block-group > * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* 2. Annule le margin-bottom au cas où */
:root :where(.is-layout-constrained) > *:last-child,
.entry-content > *:last-child {
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   FORCE PLEINE LARGEUR (Override layout FSE Gutenberg)
   ============================================================ */

/* 1. Écrase la règle de restriction à 645px générée par Gutenberg 
   en EXCLUANT explicitement le drawer et l'overlay */
.entry-content > :not(.tp-drawer):not(.tp-drawer-overlay):not(.tp-lang-switcher),
.entry-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)):not(.tp-drawer):not(.tp-drawer-overlay):not(.tp-lang-switcher) {
  max-width: 100% !important;
  width: 100% !important;
}
/* 2. Supprime les paddings horizontaux du conteneur parent */
.wp-site-blocks > main,
.entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* ============================================================
   CONTENEURS
   ============================================================ */

/* Conteneur réutilisable (équivalent des "Lignes" Divi) */
.tp-container {
  width: 80%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   UTILITAIRES PARTAGÉS
   ============================================================ */

/* Label minuscule en bleu au-dessus des titres */
.tp-label {
  font-size: 15px; /* était 11px */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tp-blue);
  margin-bottom: 10px;
}

/* Barre jaune décorative */
.tp-divider {
  width: 36px;
  height: 3px;
  background: var(--tp-yellow);
  margin-bottom: 22px;
}

/* Titre de section */
.tp-h2 {
  font-family: var(--tp-font);
  font-size: 34px;
  font-weight: 700;
  color: var(--tp-text);
  line-height: 1.2;
  margin-bottom: 14px;
}

/* Texte d'introduction de section */
.tp-lead {
  font-size: 18px; /* était 17px */
  font-weight: 300;
  color: #555;
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* Bouton jaune (CTA principal) */
.tp-btn-yellow {
  display: inline-block;
  background: var(--tp-yellow);
  color: var(--tp-blue);
  font-family: var(--tp-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border-radius: var(--tp-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.tp-btn-yellow:hover { background: #f0bc1a; }

/* Bouton outline bleu */
.tp-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--tp-blue);
  font-family: var(--tp-font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--tp-radius);
  border: 2px solid var(--tp-blue);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tp-btn-outline:hover {
  background: var(--tp-blue);
  color: var(--tp-white);
}

/* Bouton blanc (sur fond bleu) */
.tp-btn-white {
  display: inline-block;
  background: var(--tp-white);
  color: var(--tp-blue);
  font-family: var(--tp-font);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: var(--tp-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.tp-btn-white:hover { background: #f0f4ff; }

/* ============================================================
   ACCESSIBILITÉ — FOCUS CLAVIER
   Anneau de focus visible uniquement à la navigation clavier,
   jamais au clic souris (évite l'anneau disgracieux de TT5).
   ============================================================ */
a, button, summary, input, textarea,
.tp-btn-yellow, .tp-btn-outline, .tp-btn-white {
  outline: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
.tp-btn-yellow:focus-visible,
.tp-btn-outline:focus-visible,
.tp-btn-white:focus-visible {
  outline: 2px solid var(--tp-blue);
  outline-offset: 2px;
  border-radius: var(--tp-radius);
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.tp-hero {
  position: relative;
  background-color: var(--tp-blue);
/*  background-image: url('https://atelier-teampainting.com/wp-content/uploads/2026/02/ATB3-1440px.jpg');*/
  background-image: url('/wp-content/uploads/2026/08/IMG_1461-1920x1440-1.jpeg'); /* pour version locale ! */
  background-image: url('/wp-content/uploads/2026/03/IMG_1461-1920x1440-1.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 100px 60px;
}

.tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,47,167,0.85) 38%, rgba(0,47,167,0.38) 100%);
}

.tp-hero-content {
  position: relative;
  max-width: 640px;
}

.tp-hero h1 {
  font-family: var(--tp-font);
  font-size: 52px;
  font-weight: 700;
  color: var(--tp-white);
  line-height: 1.08;
  margin-bottom: 22px;
}

.tp-hero h1 em {
  font-style: normal;
  color: var(--tp-yellow);
}

.tp-hero-sub {
  font-size: 20px; /* était 19px */
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 40px;
}

/* ============================================================
   SECTION 2 — PROMESSE + KPIs
   ============================================================ */
.tp-promise-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.tp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tp-kpi {
  background: var(--tp-bg);
  border-left: 3px solid var(--tp-blue);
  padding: 18px 20px;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
}

.tp-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--tp-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.tp-kpi-lbl {
  font-size: 16px; /* était 13px */
  color: var(--tp-text-muted);
}

/* ============================================================
   SECTION 3 — FORMATS
   ============================================================ */
.tp-formats {
  background-color: var(--tp-bg);
}

.tp-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* était repeat(4, 1fr) */
  gap: 26px; /* était 18px */
}

.tp-format-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-top: 3px solid var(--tp-blue);
  border-radius: var(--tp-radius-md); /* arrondi sur les 4 côtés, était "0 0 ... ..." */
  padding: 28px 22px 26px;
}

.tp-format-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tp-format-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--tp-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-format-card h3 {
  font-size: 17px; /* était 14px */
  font-weight: 700;
  color: var(--tp-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* margin-bottom: 10px; */
  line-height: 1.3;
}
/* La min-height forcée pour aligner les titres sur 4 colonnes étroites
   n'est plus nécessaire : en 2 colonnes larges, les titres tiennent seuls. */

.tp-format-badge {
  display: inline-block;
  background: var(--tp-blue-light);
  color: var(--tp-blue);
  font-size: 15px; /* était 11px */
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.tp-format-card p {
  font-size: 16px; /* était 13px */
  color: #555;
  line-height: 1.55;
  margin-bottom: 10px;
}

.tp-format-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-format-card ul li {
  font-size: 15px; /* était 12px */
  color: #888;
  padding: 2px 0 2px 14px;
  position: relative;
}

.tp-format-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--tp-blue);
}

/* ============================================================
   SECTION 4 — DÉROULÉ (nouveau)
   ============================================================ */
.tp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tp-step-card {
  background: var(--tp-bg);
  border-radius: var(--tp-radius-md);
  padding: 26px 20px;
}

.tp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tp-blue);
  color: var(--tp-white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.tp-step-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--tp-text);
  margin-bottom: 8px;
}

.tp-step-card p {
  font-size: 16px;
  color: var(--tp-text-muted);
  line-height: 1.55;
}

/* ============================================================
   SECTION 5 — BÉNÉFICES
   ============================================================ */
.tp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* était repeat(4, 1fr) */
  gap: 26px; /* était 20px */
}

.tp-benefit-card {
  padding: 30px 22px;
  background: var(--tp-bg);
  border-radius: var(--tp-radius-md);
  border: 1px solid #ebebeb;
}

.tp-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tp-benefit-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--tp-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-benefit-card h3 {
  font-size: 19px; /* était 16px */
  font-weight: 600;
  color: var(--tp-text);
  margin-bottom: 10px;
}

.tp-benefit-card p {
  font-size: 16px; /* était 14px */
  color: var(--tp-text-muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION 6 — GALERIE MASONRY (A PRIORI PAS UTILISÉ CAR TOUT EST DANS LE PLUGIN
   ============================================================ */

/* SAUF : */
.ap-masonry-grid {
  margin-top: 50px;
}

.tp-masonry {
  columns: 3;
  column-gap: 12px;
}

.tp-masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--tp-radius);
}

.tp-masonry-item img {
  width: 100%;
  display: block;
  transition: transform .35s ease;
}

.tp-masonry-item:hover img {
  transform: scale(1.03);
}

/* ============================================================
   SECTION 7 — CLAIRE
   ============================================================ */
.tp-claire {
  background-color: var(--tp-bg);
}

.tp-claire-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: center;
}

.tp-claire-img-wrap {
  position: relative;
}

.tp-claire-img-wrap img {
  width: 100%;
  border-radius: var(--tp-radius);
  display: block;
  object-fit: cover;
  max-height: 440px;
}

.tp-claire-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--tp-blue);
  color: var(--tp-white);
  font-size: 13px;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: var(--tp-radius);
  line-height: 1.45;
  text-align: center;
}

.tp-claire-badge strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--tp-yellow);
  line-height: 1;
  margin-bottom: 4px;
}

.tp-claire-list {
  list-style: none;
  padding: 0;
  margin-bottom: 34px;
}

.tp-claire-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px; /* était 15px */
  color: #333;
  margin-bottom: 11px;
}

.tp-claire-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--tp-blue);
  border-radius: 50%;
  color: var(--tp-white);
  font-size: 10px;
  margin-top: 2px;
}

/* ============================================================
   SECTION 8 — RÉFÉRENCES
   ============================================================ */
.tp-refs {
  background-color: var(--tp-bg);
}

.tp-refs-grid {
  display: flex;
  flex-wrap: wrap;
/*  gap: 16px; */
	column-gap: 65px;
	row-gap:50px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.tp-ref-item {
  width: 130px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) opacity(0.5);
  transition: filter .25s;
}

.tp-ref-item:hover {
  filter: grayscale(0) opacity(1);
}

.tp-ref-item img {
  max-width: 100%;
/*  max-height: 42px; */
  max-height: 65px;
  object-fit: contain;
}

/* ============================================================
   SECTION 9 — FAQ (nouveau)
   ============================================================ */
.tp-faq { max-width: 760px; }

.tp-faq-item {
  border-bottom: 1px solid var(--tp-border);
  padding: 18px 0;
}

.tp-faq-item summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--tp-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-faq-item summary::-webkit-details-marker { display: none; }

.tp-faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--tp-blue);
  margin-left: 16px;
  transition: transform .2s;
}

.tp-faq-item[open] summary::after { transform: rotate(45deg); }

.tp-faq-item p {
  font-size: 16px;
  color: var(--tp-text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

/* ============================================================
   SECTION 10 — CTA FINAL
   (fond bleu géré par Divi sur la section)
   ============================================================ */
.tp-cta {
  background-color: var(--tp-blue);
}

.tp-cta-inner {
  text-align: center;
}

.tp-cta-inner h2 {
  font-family: var(--tp-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--tp-white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.tp-cta-inner p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 36px;
}

/* ============================================================
   DRAWER CONTACT
   ============================================================ */
.tp-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    /* Neutralise Gutenberg FSE */
    max-width: none !important;
    margin: 0 !important;  
}
.tp-drawer-overlay.open { display: block; }

.tp-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    background: var(--tp-white);
    z-index: 9001;
    padding: 48px 40px 40px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    /* Neutralise Gutenberg FSE */
    max-width: none !important;
    margin: 0 !important;  
    /* Correction du modèle de boîte pour éviter le débordement */
    box-sizing: border-box !important;
}
.tp-drawer.open { transform: translateX(0); }

.tp-drawer-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.tp-drawer h3 {
  font-family: var(--tp-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-text);
  margin-bottom: 6px;
}

.tp-drawer-intro {
  font-size: 16px; /* était 14px */
  color: var(--tp-text-muted);
  margin-bottom: 32px;
}

.tp-contact-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.tp-contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--tp-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--tp-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-contact-label {
  font-size: 15px; /* était 11px */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-blue);
  margin-bottom: 3px;
}

.tp-contact-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text);
}
.tp-contact-val a { color: var(--tp-text); text-decoration: none; }
.tp-contact-val a:hover { color: var(--tp-blue); }

.tp-drawer-sep {
  border: none;
  border-top: 1px solid #eee;
  margin: 28px 0;
}

.tp-drawer-form label {
  font-size: 15px; /* était 12px */
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.tp-drawer-form input,
.tp-drawer-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--tp-radius);
  padding: 10px 14px;
  font-family: var(--tp-font);
  font-size: 16px; /* était 14px — évite aussi le zoom auto de Safari iOS */
  color: var(--tp-text);
  margin-bottom: 14px;
  outline: none;
  transition: border-color .15s;
}
.tp-drawer-form input:focus,
.tp-drawer-form textarea:focus { border-color: var(--tp-blue); }
.tp-drawer-form textarea { min-height: 90px; resize: vertical; }

.tp-drawer-submit {
  width: 100%;
  background: var(--tp-blue);
  color: var(--tp-white);
  font-family: var(--tp-font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  border: none;
  border-radius: var(--tp-radius);
  cursor: pointer;
  transition: background .15s;
}
.tp-drawer-submit:hover { background: #0028a0; }

.tp-drawer-note {
  font-size: 15px; /* était 12px */
  color: #aaa;
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   SECTION — HEADER
   ============================================================ */

header {
    display: none;
}

   /* ============================================================
   SECTION — FOOTER
   ============================================================ */

footer {
    margin:0;
}

.tp-footer {
    /* background-color: var(--tp-bg); */
    background-color: #002B3D;
    /* border-top: 1px solid var(--tp-border); */
    padding: 15px 0;
    font-size: 15px; /* était 13px */
    color: var(--tp-text-muted);
}

.tp-footer-inner {
    width: 90%!important;
    max-width: 1920px!important;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tp-footer p {
  margin: 0;
  color:#aaaaaa;
}

.tp-footer a {
  /* color: var(--tp-text-muted); */
  color:#aaaaaa;
  text-decoration: none;
  transition: color .15s;
}

.tp-footer a:hover {
  color: var(--tp-blue);
  color: #ef233c;
}

.tp-footer-sep {
  margin: 0 15px;
  color: var(--tp-border);
}

@media (max-width: 600px) {
  .tp-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .tp-footer-sep {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .tp-steps-grid      { grid-template-columns: 1fr 1fr; }
  .tp-promise-inner,
  .tp-claire-inner    { grid-template-columns: 1fr; }
  .tp-masonry         { columns: 2; }
  .tp-drawer          { width: 100%; }
  .tp-hero            { padding: 80px 40px; }
}

@media (max-width: 580px) {
  .tp-formats-grid,
  .tp-benefits-grid,
  .tp-steps-grid    { grid-template-columns: 1fr; }
  .tp-hero          { padding: 60px 24px; }
  .tp-hero h1       { font-size: 34px; }
  .tp-masonry       { columns: 1; }
}

@media (max-width: 768px) {
	.tp-hero {
	  background-image: url('/wp-content/uploads/2026/03/IMG_1457-1080x1440-1.jpeg');
	  background-position: right center;
	}
}

/* ---- Switcher de langue, fixe en haut à droite ---- */
.tp-lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500; /* sous le drawer (9000+), au-dessus du reste */
  background: var(--tp-white);
  border-radius: var(--tp-radius-md);
  padding: 8px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  width: fit-content; /* neutralise le width:100% imposé par le CSS natif de Polylang (language-switcher.min.css) */
  cursor: pointer;
}

.tp-lang-switcher ul {
  list-style: none;
  display: flex;
  flex-direction: row; /* impose l'horizontale : le bloc Polylang est en
                           "layout vertical", qui depuis sa 3.9 vient avec
                           un vrai CSS (flex-direction:column) qui sinon
                           empile les langues même en desktop */
  align-items: center;
  margin: 0;
  padding: 0;
}

.tp-lang-switcher li {
  display: flex;
  align-items: center;
}

/* Séparateur entre les langues */
.tp-lang-switcher li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--tp-border);
}

.tp-lang-switcher a {
  font-family: var(--tp-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tp-text-muted);
  text-decoration: none;
}

.tp-lang-switcher a:hover {
  color: var(--tp-blue);
}

/* ============================================================
   LANGUES
   ============================================================ */

/* Langue active : Polylang met la classe "current-lang" sur le <li>
   de la langue en cours (confirmé dans le code source de Polylang,
   classe PLL_Switcher — pas d'aria-current). */
.tp-lang-switcher .current-lang a {
  color: var(--tp-blue);
}

@media (max-width: 580px) {
  .tp-lang-switcher {
    top: 12px;
    right: 12px;
    padding: 6px 28px 6px 10px; /* marge à droite pour le chevron, qui est
                                    toujours à la même place (voir plus bas) */
  }
  .tp-lang-switcher a { font-size: 13px; }

  /* Replié par défaut : seule la langue active reste visible
     (un tap sur le switcher ajoute .open, voir main.js). */
  .tp-lang-switcher li:not(.current-lang) {
    display: none;
  }
  .tp-lang-switcher.open li {
    display: flex !important;
  }
  .tp-lang-switcher.open li:not(:first-child) {
    margin-top: 8px; /* air entre les langues une fois dépliées, jamais avant
                         la 1ère : elle ne doit JAMAIS bouger (c'est elle qui
                         sert de repère fixe au chevron, voir plus bas) */
  }
  .tp-lang-switcher.open ul {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Triangle plein en CSS pur (triangle-hack bordures), parfaitement
     symétrique : la rotation 180° se fait pile sur son propre centre,
     sans jamais dériver verticalement. */
  .tp-lang-switcher::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--tp-text-muted);
    transform-origin: center;
    transition: transform .15s ease;
  }
  .tp-lang-switcher.open::after {
    transform: rotate(180deg);
  }

  /* Cache le séparateur "/" : quand replié sur la seule langue active,
     et quand déplié (liste verticale, le séparateur horizontal n'a
     plus de sens entre des lignes empilées). */
  .tp-lang-switcher:not(.open) li.current-lang::after,
  .tp-lang-switcher.open li:not(:last-child)::after {
    content: none;
  }
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.tp-footer {
  background-color: #001f73; /* repli navigateurs anciens */
  background-color: color-mix(in srgb, var(--tp-blue) 70%, black);
  padding: 14px 24px;
}

.tp-footer-text,
.tp-footer-text a {
  font-size: 14px;
  color: var(--tp-white);
  margin: 0;
  text-decoration: none;
}

.tp-footer-text a:hover {
  color: var(--tp-yellow);
  text-decoration: underline;
}

@media (max-width: 580px) {
  .tp-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 16px;
  }
}
