/*
Theme Name: Adaxian
Theme URI: https://adaxian.fr
Author: Adaxian
Author URI: https://adaxian.fr
Description: A modern one-page WordPress theme for Adaxian M&A consulting, featuring smooth scrolling sections, responsive design, and elegant animations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adaxian
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #0F172A;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.adaxian-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .adaxian-container { padding: 0 1.5rem; } }
@media (min-width: 1024px){ .adaxian-container { padding: 0 2rem; } }

/* ==========================================================================
   Typography
   ========================================================================== */

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0F172A;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-subtitle {
  font-size: 1.25rem;
  color: #64748B;
  margin-top: 1rem;
  max-width: 48rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button-primary {
  display: inline-block;
  background-color: #0F172A;
  color: #ffffff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
}
.button-primary:hover { 
	background-color: #FFFFFF; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	color: #0F172A;
}

.button-secondary {
  display: inline-block;
  background-color: #FB923C;
  color: #ffffff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
}
.button-secondary:hover { background-color: #F97316; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.button-outline {
  display: inline-block;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  background-color: transparent;
  cursor: pointer;
}
.button-outline:hover { 
   background-color: #F8FAFC;
   color: #1E293B !important; 
}

/* ==========================================================================
   Badge
   ========================================================================== */

/* Compact pill badge that hugs its text */
.badge{
  display: inline-flex;          /* shrink-to-fit */
  width: max-content;            /* hug content even inside CSS Grid */
  align-items: center;
  gap: .4rem;
  padding: .375rem .75rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: #1E3A8A;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1;
  white-space: nowrap;           /* prevent wrap if you want a single line */
  justify-self: start;           /* stop grid stretch horizontally */
  align-self: start;             /* stop grid stretch vertically */
}

/* ==========================================================================
   Cards
   ========================================================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.glass-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-link {
  position: relative;
  font-weight: 500;
  color: #475569;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #0F172A; }
.nav-link::after {
  content: '';
  position: absolute;
  width: 100%; height: 2px;
  bottom: 0; left: 0;
  background-color: #FB923C;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.nav-link.active { color: #0F172A; }
.nav-link.active::after { transform: scaleX(1); }

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }
@keyframes slideDown { from { opacity:0; transform: translateY(-20px);} to { opacity:1; transform:none; } }

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-slide-down { animation: slideDown 0.5s ease-out; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; transition: opacity 0.7s ease-out; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.bg-white { background-color: #ffffff; }
.bg-blue-50 { background-color: #F8FAFC; }
.bg-blue-900 { background-color: #0F172A; }
.text-blue-900 { color: #0F172A; }
.text-grey-600 { color: #475569; }
.text-orange-500 { color: #F97316; }

/* ==========================================================================
   Logo PNG
   ========================================================================== */

.custom-logo-link { display:inline-flex; align-items:center; line-height:0; }
.custom-logo { display:block; height:auto; max-width:100%; }
#navbar .custom-logo { max-height:60px; }
#navbar.on-light .custom-logo { filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }

header .site-branding img {
  height: 60px;
  width: auto;      /* respecte le ratio */
  display: block;
}

/* Footer layout */
footer .footer-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Footer logo sizing without distortion */
footer .footer-brand .custom-logo,
footer .footer-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Option: un peu plus grand sur desktop */
@media (min-width: 1024px) {
  footer .footer-brand .custom-logo,
  footer .footer-logo {
    height: 56px;
  }
}

/* ==========================================================================
   Success Stories — Flip Cards (recto/verso même hauteur)
   ========================================================================== */


/* Grille + largeur maîtrisée */
.success-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.success-grid > .flip-card{
  max-width: 420px;           /* évite la carte trop large */
  margin-inline: auto;         /* centre la carte */
}

.success-grid > .flip-card{
  justify-self: center;   /* surpasse le stretch */
  width: min(100%, 420px);
}

/* Carte */
.flip-card{
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  height: clamp(440px, 60vh, 520px); /* hauteur stable et responsive */
}
@media (max-width: 480px){
  .flip-card{ height: 520px; }       /* mobile : un peu plus haut pour le texte */
}

.flip-card-inner{
  position: relative;
  width: 100%; height: 100%;
  transition: transform .7s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner{ transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back{
  position: absolute;
  inset: 0;                     /* occupe TOUT l'espace */
  width: 100%; height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

/* Verso : image plein cadre + overlay bleu corporate */
.flip-card-back{
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
  position: relative;
}
.flip-card-back::before{
  content: "";
  position: absolute; inset: 0;
  background: #0F172A;   /* bleu logo/footer */
  opacity: .92;          /* lisibilité */
}

/* Contenu du verso (scrollable si texte long) */
.back-content{
  position: relative; z-index: 1; color: #fff;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem;
}
.back-title{ color:#fff; font-size:1.25rem; font-weight:700; margin:0 0 .75rem; }
.back-detail{
  line-height:1.6; font-size:.95rem;
  max-height: calc(100% - 80px);   /* évite la coupe sous le CTA */
  overflow: auto;
  scrollbar-width: thin;
}
.back-cta{ color:#FDBA74; font-weight:600; font-size:.9rem; }

/* ==========================================================================
   Sectors (Swiper)
   ========================================================================== */

.sectors-swiper {
  position: relative;
  overflow: hidden;
}

.sectors-swiper .swiper-wrapper {
  align-items: stretch;
}

.sectors-swiper .swiper-slide {
  height: auto;        /* chaque slide s'adapte à la carte */
  display: flex;       /* permet à la carte de prendre toute la hauteur */
}

/* Carte secteur */
.sector-card {
  padding: 2rem;
  text-align: center;
  min-height: 160px;
  width: 100%;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sector-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 10px 24px rgba(15,23,42,0.10); 
}
.sectors-title { 
  font-size: 1.125rem; 
  font-weight: 700; 
  color: #0F172A; 
}
/* Icône Lucide (utilise currentColor) */
.sector-card i[data-lucide]{
  width: 48px;
  height: 48px;
  color: #FB923C;
  display: inline-block;
}

/* Boutons de nav (si tes boutons sont directement dans .sectors-swiper) */
.sectors-swiper__prev,
.sectors-swiper__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #1E293B;
  color: #fff;
  width: 40px; 
  height: 40px; 
  border-radius: 9999px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: background .2s ease;
  z-index: 2;
}
.sectors-swiper__prev:hover,
.sectors-swiper__next:hover { background: #334155; }

.sectors-swiper__prev { left: -0.5rem; }
.sectors-swiper__next { right: -0.5rem; }
.sectors-swiper__prev i, 
.sectors-swiper__next i { width: 18px; height: 18px; }

/* Pagination */
.sectors-swiper__pagination { 
  margin-top: 1rem; 
  text-align: center; 
}
.sectors-swiper .swiper-pagination-bullet { 
  background: #CBD5E1; 
  opacity: 1; 
}
.sectors-swiper .swiper-pagination-bullet-active { 
  background: #FB923C; 
}

/* Fallback grid si Swiper ne charge pas (optionnel) */
.no-swiper .sectors-swiper .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1.5rem;
}
.no-swiper .sectors-swiper__prev,
.no-swiper .sectors-swiper__next,
.no-swiper .sectors-swiper__pagination {
  display: none;
}

/* Icônes plus grandes et orange */
.sector-card svg.lucide{
  width: 50px;   /* 72px si tu veux encore plus gros */
  height: 50px;
  color: #FB923C;
}

/* Marges latérales pour laisser respirer flèches & cartes */
.sectors-swiper{
  overflow: hidden;         /* évite que les flèches soient coupées */
  padding-inline: 2.5rem;    /* gouttières à gauche/droite */
}

/* Flèches : bien à l’intérieur du bloc */
.sectors-swiper__prev{ left: .25rem; }
.sectors-swiper__next{ right: .25rem; }

/* Retirer les bullets (si le HTML en contient encore) */
.sectors-swiper__pagination{ display: none !important; }

/* Un peu plus d’air entre les cartes sur desktop (en complément du spaceBetween JS) */
@media (min-width: 1024px){
  .sectors-swiper .swiper-slide{ padding-inline: .125rem; }
}