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

Theme Name: Twenty Twenty-Five Child
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.0.0

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

/*
 * style-ai.css — Atelier Teampainting
 * À basculer en style.css dans le Divi child theme.
 * Structure : variables globales → typographie → utilitaires → sections
 */

/* ============================================================
   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:      4px;
  --tp-radius-md:   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),
.entry-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)):not(.tp-drawer):not(.tp-drawer-overlay) {
  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: 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: 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; }

/* ============================================================
   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: 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: 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(4, 1fr);
  gap: 18px;
}

.tp-format-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-top: 3px solid var(--tp-blue);
  border-radius: 0 0 var(--tp-radius-md) var(--tp-radius-md);
  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: 14px;
  font-weight: 700;
  color: var(--tp-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* margin-bottom: 10px; */
  line-height: 1.3;
}
@media (min-width: 961px) {
  .tp-format-card h3 { min-height: 3.9em; }
}
.tp-format-badge {
  display: inline-block;
  background: var(--tp-blue-light);
  color: var(--tp-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.tp-format-card p {
  font-size: 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: 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 — BÉNÉFICES
   ============================================================ */
.tp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 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: 16px;
  font-weight: 600;
  color: var(--tp-text);
  margin-bottom: 10px;
}

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

/* ============================================================
   SECTION 5 — 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 6 — 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: 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 7 — 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 8 — 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: 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: 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: 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: 14px;
  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: 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: 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-formats-grid,
  .tp-benefits-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 { 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;
	}
}