/* --------------------
   Style global xSOM Consulting
--------------------- */

:root {
    --primary: #1b4b7a;
    --primary-light: #2b6aa8;
    --accent: #00b894;
    --bg-light: #f5f7fb;
    --text-main: #222;
    --text-muted: #666;
    --border-soft: #e0e4ee;
    --max-width: 1100px;
    --radius: 10px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --transition: 0.2s ease-in-out;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset simple */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Liens */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--primary-light);
}

/* Layout de base */

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------
   Header & navigation
--------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo a {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--primary);
}

.logo span {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 0.15rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    font-size: 0.85rem;
}

/* --------------------
   Hero / sections
--------------------- */

.hero {
    background: url('../images/MAIN.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3.5rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: start;
    padding-top: 4rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title span {
    color: #ffffff;
}

.hero-subtitle {
    color: #ffffff;
    max-width: 36rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: #ffffff;
    border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #ffffff;
}

.hero-meta span {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    color: var(--primary);
    font-size: 0.95rem;
}

/* Visuel hero simple */

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(27, 75, 122, 0.12);
    border: 1px solid rgba(224, 228, 238, 0.6);
    backdrop-filter: blur(12px);
}

.hero-card-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    opacity: 0.9;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem;
    background: rgba(247, 250, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--primary-light);
}

/* Base metric styles – used in hero card */
.metric-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
    padding-left: 0.5rem;
    position: relative;
}

.metric-label::before {
    content: "•";
    position: absolute;
    left: -0.25rem;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.7rem;
}

.metric-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(224, 228, 238, 0.5);
}

.tag {
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f0ff 100%);
    font-size: 0.65rem;
    color: var(--text-main);
    font-weight: 500;
    border: 1px solid rgba(27, 75, 122, 0.15);
    transition: all 0.2s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 75, 122, 0.25);
}

/* Sections génériques */

.section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 1.8rem;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--primary-light);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.section-description {
    color: var(--text-muted);
    max-width: 35rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Enhanced Expertise Section */
.expertise-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.expertise-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-soft);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(27, 75, 122, 0.15);
}

.expertise-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.expertise-content {
    padding: 1.75rem;
}

.expertise-content .card-subtitle {
    color: var(--primary-light);
    font-weight: 600;
}

.expertise-content .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.expertise-content .card-text {
    line-height: 1.7;
}

/* Large Button */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(27, 75, 122, 0.2);
}

.btn-large:hover {
    box-shadow: 0 12px 32px rgba(27, 75, 122, 0.3);
}

/* Enhanced Approach Section */
.approach-section {
    padding: 6rem 0;
    background: #f9fbff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.approach-content .section-header {
    margin-bottom: 2.5rem;
}

/* Modern Check List */
.list-check-modern {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-check-modern li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #00d2a5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.list-check-modern li strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.list-check-modern li p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Approach Sidebar */
.approach-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sectors-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-soft);
    text-align: center;
}

.sectors-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.sectors-box h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.sectors-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sector-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f0ff 100%);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.sector-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.missions-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    padding: 1.75rem;
    color: #ffffff;
}

.missions-box h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.missions-box ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.missions-box li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.missions-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Cartes */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.3rem 1.3rem 1.45rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(27, 75, 122, 0.2);
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.card-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Layout deux colonnes */

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: flex-start;
}

/* Listes stylées */

.list-check {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
}

.list-check li {
    margin-bottom: 0.5rem;
    padding-left: 1.4rem;
    position: relative;
    color: var(--text-muted);
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Blocs info */

.highlight-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border-soft);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #0077b5;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
    margin-top: 0.5rem;
}

.linkedin-link:hover {
    background: #005885;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Formulaire contact / candidature */

.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.6rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: min(250px, 100%);
    margin-bottom: 0.9rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(27, 75, 122, 0.12);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

/* Tableau simple (si besoin pour les expertises) */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    background: #fafbff;
}

/* Footer */

footer {
    border-top: 1px solid var(--border-soft);
    padding: 1.5rem 0 2rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-separator {
    color: var(--border-soft);
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-linkedin:hover {
    color: #0077b5;
}

/* Pages : bannières */

.page-hero {
    background: var(--bg-light);
    padding: 2.2rem 0 1.8rem;
    border-bottom: 1px solid var(--border-soft);
}

.page-title {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 34rem;
}

/* Responsif */

@media (max-width: 900px) {
    .hero-inner,
    .card-grid,
    .two-columns,
    .expertise-grid,
    .approach-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2.4rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .approach-grid {
        gap: 2rem;
    }

    .expertise-section,
    .approach-section {
        min-height: auto;
        padding: 4rem 0;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none; /* pour un premier jet, on masque le menu sur très petits écrans */
    }

    .hero {
        padding-top: 2rem;
    }
}

/* Carousel */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  padding: 2rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.slide h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.slide p {
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--primary);
}

/* Partners Carousel */

.partners-section {
    background: #ffffff;
    overflow: hidden;
}

.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partners-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partners-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* -------------------------
   Metrics Section (updated)
-------------------------- */

.metrics-section {
    background: linear-gradient(135deg, #E7F1FF 0%, #D5E7FF 40%, #C7E0FF 100%);
    padding: 4rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Bigger values only inside metrics grid */
.metrics-grid .metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Labels inside metrics grid – no bullet */
.metrics-grid .metric-label {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
    padding-left: 0;
    position: static;
}

.metrics-grid .metric-label::before {
    content: none;
}

.metrics-grid .metric-label span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-icon {
    margin-bottom: 0.6rem;
    color: var(--primary);
    display: flex;
    justify-content: center;
}

.metric {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.metric:hover {
    transform: translateY(-6px);
}

/* Responsive metrics */
@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .metrics-grid .metric-value {
        font-size: 2.4rem;
    }
}

/* Intro title centré */
.metrics-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.metrics-intro h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Bouton En savoir plus centré */
.metrics-button-wrapper {
    margin-top: 3rem;
    text-align: center;
}

/* Style du bouton carré */
.btn-lightblue {
    padding: 0.9rem 1.6rem;
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1rem;
    border-radius: 8px; /* carré */
    font-weight: 600;
    transition: 0.25s ease-in-out;
    display: inline-block;
}

.btn-lightblue:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.metrics-grid.two-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    text-align: center;
    justify-items: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 1.1rem;
    line-height: 1.3;
}

.metric-label span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.metric-icon svg {
    display: block;
    margin-bottom: 10px;
}

/* Responsive mobile */
@media (max-width: 650px) {
    .metrics-grid.two-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
