/* ========= VARIABLES ========= */

:root {
    --color-primary: #8c1f13;       /* rouge Raugui */
    --color-primary-light: #c34b3c;
    --color-header-bg: #252833;    /* barre de navigation sombre */
    --color-body-bg: #f3f2f6;
    --color-text-main: #1d1d23;
    --color-text-muted: #6a6a76;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.15);
    --radius-large: 22px;
    --radius-medium: 16px;
    --radius-pill: 999px;
    --container-width: 1180px;
    --transition-fast: 0.2s ease-out;
}

/* ========= RESET SIMPLE ========= */

*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-size: 18px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-body-bg);
    color: var(--color-text-main);
}

/* ========= LAYOUT ========= */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ========= HEADER ========= */

.site-header {
    background: var(--color-header-bg);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.header-logo a {
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: #fff;
}

/* Conteneur du header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111827;        /* ton fond sombre actuel */
    color: #ffffff;
}

/* ====== NAVBAR DE BASE ====== */

/* ===== NAVBAR GLOBALE ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0d1117;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 1rem;
}

/* Menu desktop */

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #e4e8ee;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #ffffff;
}

/* ===== BOUTON BURGER ===== */

.nav-toggle {
    display: none;  /* visible seulement sur mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
    margin-top: 4px;
}

/* Animation burger -> croix */

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== VERSION MOBILE ===== */

@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%; /* juste sous le header */
        background: #0d1117;
        overflow: hidden;
        max-height: 0;             /* caché par défaut */
        transition: max-height 0.25s ease;
    }

    .nav-menu.is-open {
        max-height: 280px;         /* suffisamment pour tous les liens */
    }

    .nav-list {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.75rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.25rem 0;
    }
}




.header-cta .btn-header {
    background: var(--color-primary);
    color: #fff;
    padding: 0.45rem 1.3rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========= HERO ========= */

.hero {
    background: var(--color-primary);
    color: #fff;
    padding-top: 40px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 30px 0 60px;
}

.hero-left {
    flex: 1.2;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.hero-kicker {
    display: inline-flex;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-lead {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 0 1.1rem;
}

.hero-list {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.1rem;
    margin: 0 0 1.5rem;
}

.hero-list li + li {
    margin-top: 0.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.hero-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* boutons du hero */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
                transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* image + badges */

.hero-image {
    background: #fff;
    border-radius: var(--radius-large);
    padding: 0.8rem;
    box-shadow: var(--shadow-soft);
    max-width: 360px;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius-large) - 4px);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 18px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
}

.hero-badge-icon {
    font-size: 1rem;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ========= EXPERTISES ========= */

.expertises {
    background: #ffffff;
    padding: 0.5rem 0 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-main);
}

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

.expertise-card {
    background: #fff;
    border-radius: var(--radius-large);
    padding: 1.9rem 1.8rem 1.7rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.expertise-icon {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
    color: var(--color-primary);
}

.expertise-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

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

/* ========= FOOTER ========= */

.site-footer {
    background: var(--color-header-bg);
    color: #c3c6d4;
    padding: 1.2rem 0;
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 960px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        align-items: flex-start;
    }

    .hero-image {
        max-width: 100%;
    }

    .expertises-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 24px;
    }

    .hero-inner {
        padding-top: 18px;
        padding-bottom: 42px;
    }

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


/* ----------------------------- */
/* BANDEAU ENTRE NAV ET HERO */
/* ----------------------------- */

.page-banner {
    background: #11131a;
    padding: 2.5rem 0;
    color: white;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.banner-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0;
}

.banner-subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.85;
}
/* ===========================
   SECTIONS GLOBALES
   =========================== */

/* .section {
    padding: 4.5rem 0;
} */

.section-header {
    text-align: center;

    padding: 1.5rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #101827;
    margin: 0;
}

.section-subtitle {
    max-width: 620px;
    margin: 0.75rem auto 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.98rem;
}

/* Fond par section (comme sur la capture) */
#realisations {
    background: #f5f6fb;   /* léger gris/violet */
}

#actus {
    background: #ffffff;
}

#partenaires {
    background: #f5f6fb;
}

/* ===========================
   GRID DE CARTES
   =========================== */

.cards-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cards-window {
    overflow: hidden;
}

.cards-track {
    display: flex;
    gap: 1.75rem;              /* espace entre les cartes */
    transition: transform .45s ease;
    will-change: transform;
}

/* 2 cartes visibles sur mobile */
.cards-carousel .card {
    flex: 0 0 calc(50% - 0.875rem);
}

/* Cartes de services — icônes plus grandes et centrées */
.cards-grid .card-header {
    text-align: center;
}

.cards-grid .card-header .card-icon {
    font-size: 2.4rem; /* augmente la taille */
    margin-bottom: 0.5rem;
    display: block;
}

/* Centrer les titres */
.cards-grid .card-header .card-title {
    text-align: center;
    width: 100%;
}

/* Icônes dans la section accompagnement */
.cards-grid .card-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.cards-grid .card-title .card-icon {
    font-size: 1.6rem;  /* taille icône */
    display: inline-block;
}



/* 3 cartes visibles sur desktop */
@media (min-width: 1024px) {
    .cards-carousel .card {
        flex: 0 0 calc(33.333% - 1.166rem);
    }
}


/* Carte avec structure flex en colonne */
.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 330px;   /* tu peux ajuster si tu veux plus grand */
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Le bouton doit rester en bas */
.card-body .btn {
    margin-top: auto;         /* pousse le bouton en bas */
    align-self: center;       /* centre horizontalement */
}

/* Badge */
.badge {
    display: inline-block;
    font-size: .75rem;
    padding: .35rem .9rem;
    background: rgba(161, 50, 33, 0.08);
    color: #a13221;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* Titre + texte */
.card-title {
    font-size: 1.1rem;
    margin-bottom: .4rem;
    font-weight: 600;
}

.card p {
    font-size: .95rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* Badge en haut des cartes (type / secteur) */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(161, 50, 33, 0.08);       /* ton rouge très clair */
    color: #a13221;                             /* ton rouge principal */
    margin-bottom: 0.9rem;
    text-align: center;
}

/* Boutons dans les cartes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
}

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #111827;
    background: #ffffff;
}

.btn-outline:hover {
    border-color: #a13221;
    color: #a13221;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

/* ===========================
   BLOC "NOS ACTUALITÉS"
   =========================== */

.content-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    background: #f9fafb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    color: #4b5563;
    font-size: 0.96rem;
    text-align: center;
}

/* ===========================
   PARTENAIRES (logos)
   =========================== */

#partenaires .cards-grid {
    max-width: 1200px;
}

#partenaires .card {
    padding: 1.5rem 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

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

    .card {
        padding: 1.5rem 1.5rem;
    }

    .content-block {
        padding: 1.5rem 1.6rem;
    }
}

/* === CARROUSEL RÉALISATIONS === */

.cards-carousel {
  position: relative;
  /* margin-top: 4rem; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-window {
  overflow: hidden;
  max-width: 1050px;
  width: 100%;
  padding: 2rem 0;
}

.cards-track {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.34, 0.7, 0.25, 1);
  will-change: transform;
}

/* Carte de base */
.cards-track .card {
  flex: 0 0 min(330px, 80vw);
  background: #ffffff;
  border-radius: 26px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.7;
}

/* Carte active (au centre) */
.cards-track .card.is-active {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
  opacity: 1;
}

/* Logo en haut de carte */
.card-logo {
  height: 80px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Texte dans la carte */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-body .badge {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f7edf0;
  color: #7b2530;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.card-body .card-title {
  font-size: 1.15rem;
  margin: 0;
}

/* Bouton en bas de la carte */
.card-footer {
  margin-top: auto;
  text-align: center;
}

.card-foot {
  margin-top: auto;
  text-align: center;
}

.cards-track .card .btn.btn-sm.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Flèches */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.arrow-btn-prev {
  left: clamp(0.5rem, 4vw, 3rem);
}

.arrow-btn-next {
  right: clamp(0.5rem, 4vw, 3rem);
}

.arrow-btn:hover {
  transform: translateY(-50%) translateY(-1px) scale(1.02);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.25);
}

/* Responsive : flèches plus proches sur petit écran */
@media (max-width: 768px) {
  .cards-track .card {
    flex: 0 0 100%;
  }

  .arrow-btn-prev {
    left: 0.5rem;
  }

  .arrow-btn-next {
    right: 0.5rem;
  }
}

/* ——— PARTENAIRES ——— */

.section-partners {
  background: #f5f5fb;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

/* La piste prend la taille de TOUT son contenu */
.partners-track {
  display: inline-flex;           /* comme un texte long */
  align-items: center;
  gap: 4rem;
  width: max-content;             /* largeur = largeur réelle des logos */
  animation: partners-scroll 35s linear infinite;
}

.partner {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner img {
  max-height: 60px;
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.partner img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Pause de l’anim au survol du bandeau entier (optionnel mais sympa) */
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

/* Animation infinie : on décale de 50% parce qu’on a dupliqué la série de logos */
@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .partners-track {
    gap: 2rem;
    animation-duration: 50s;
  }

  .partner img {
    max-height: 48px;
  }
}

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

/* ===========================
   FACEBOOK PAGE PLUGIN
   =========================== */

/* ========================
   SECTION ACTUALITÉS
   ======================== */

#actus {
    background: #ffffff;
}

.actus-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center; /* au lieu de stretch si tu veux */
}


.actus-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.actus-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.actus-info p {
    color: #4b5563;
    line-height: 1.6;
}

.actus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    color: #4b5563;
}

.actus-list li {
    margin-bottom: 0.35rem;
}

/* on réutilise ton style .btn, donc pas besoin de recréer */

.actus-widget {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.actus-card {
    background: white;
    border-radius: 22px;
    padding: 2rem 2rem 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border: 1px solid #f2f2f2;
}

.actus-card .fb-page {
    width: 100% !important;
    min-height: 650px;
}

.li-ico {
    font-size: 1.2rem;
    margin-right: 8px;
}



/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 900px) {
    .actus-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .actus-widget {
        order: -1;               /* widget d’abord sur mobile si tu préfères */
    }

    .actus-card {
        max-width: 100%;
    }
}

#actus {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ---------- MOBILE LAYOUT ---------- */
@media (max-width: 768px) {
    /* Conteneur global des sections */
    .section {
        padding-inline: 1.25rem;   /* un peu de marge à gauche/droite */
        padding-block: 2.5rem;
    }

    /* Hero / bandeau principal */
    .hero-layout {
        grid-template-columns: 1fr;   /* stack verticalement */
        gap: 2rem;
    }

    .hero-main,
    .hero-aside {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Le panneau rouge de ta partie “Réparation, maintenance…” */
    .hero-service {
        padding: 2rem 1.5rem;
    }

    .hero-service h1 {
        font-size: 1.9rem;
    }

    /* Les boutons dans le hero */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Cartes "Mes expertises" */
    .cards-grid {
        grid-template-columns: 1fr;   /* 1 carte par ligne */
        gap: 1.5rem;
    }

    .card {
        max-width: 100%;
    }

    /* Carrousel réalisations : cartes full width */
    .realisations-carousel {
        padding-inline: 0.5rem;
    }

    .realisations-carousel .carousel-card {
        width: 100%;
        max-width: 100%;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }

    /* Partenaires (marquee) */
    .partners-strip {
        padding-inline: 1rem;
    }

    .partners-item img {
        max-height: 34px;
    }

    /* Bloc actualités Facebook */
    .news-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .news-text {
        max-width: 100%;
    }

    .news-iframe-wrapper {
        width: 100%;
    }
}

/* ---------- Carousel réalisations : version mobile ---------- */
@media (max-width: 768px) {

    /* La fenêtre du carousel prend bien toute la largeur avec un peu de marge */
    .cards-window {
        padding: 0 1.5rem;
        overflow: hidden;
    }

    /* La piste reste en ligne, mais chaque carte prend 100% */
    .cards-track {
        gap: 1.5rem;
    }

    /* 1 carte visible, pleine largeur */
    .cards-track .card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* On centre un peu les flèches pour éviter qu'elles sortent trop */
    .cards-carousel .arrow-btn {
        top: 50%;
        transform: translateY(-50%);
    }
}
/* Container du widget Facebook */
.actus-widget {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Carte visuelle */
.actus-card {
    background: #fff;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Forcer le widget à devenir vraiment responsive */
.fb-page,
.fb-page iframe {
    width: 100% !important;
}

@media (max-width: 768px) {
    .actus-layout {
        flex-direction: column;
        gap: 2rem;
    }

.actus-widget {
        display: none !important;
    }

    .actus-card {
        padding: 0.5rem;
    }

    .actus-info {
        width: 100%;
    }
}

/* reparation  */

/* Galerie 12 images */
.gallery-grid-12 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 30px;
}

.gallery-grid-12 img {
    width: 100%;
    aspect-ratio: 1 / 1; /* carré parfait */
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #f3f3f3;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover effect */
.gallery-grid-12 img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* TABLETTE */
@media (max-width: 900px) {
    .gallery-grid-12 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .gallery-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Intro page réparation */
.section-intro-repair {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
}

.intro-repair-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.intro-kicker {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: #f7e3df;
    color: #a4372b;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.intro-title {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.intro-lead {
    font-size: 1rem;
    color: #5b5b66;
    max-width: 46rem;
}

/* Petites "chips" de situations courantes */
.intro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.4rem;
}

.intro-chips .chip {
    background: #f4f4fb;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .9rem;
    color: #50505d;
    border: 1px solid rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

/* Carte d'aide à droite */
.intro-help-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8rem 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.intro-help-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.intro-help-title {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.intro-help-card p {
    font-size: .95rem;
    color: #5b5b66;
    margin-bottom: 1.3rem;
}

/* Responsive */
@media (max-width: 900px) {
    .intro-repair-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .intro-help-card {
        max-width: 420px;
        margin: 1.5rem auto 0;
    }

    .intro-chips {
        gap: .4rem;
    }

    .intro-chips .chip {
        white-space: normal;
    }
}

/* étapes */
.steps-grid {
    display: grid;
    gap: 1.75rem;
}
@media (min-width: 900px) {
    .steps-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.step {
    background:#fff;
    border-radius:20px;
    padding:1.75rem 1.5rem;
    box-shadow:0 18px 45px rgba(15,23,42,0.08);
}
.step-number{
    font-weight:700;
    font-size:1.1rem;
    color:#b3261e;
    margin-bottom:.25rem;
}
.step-title{ font-size:1.05rem; margin-bottom:.5rem; }

/* variantes cartes */
.card-header-centered{
    align-items:center;
    text-align:center;
}
.card-header-centered .card-title{
    text-align:center;
}

/* CTA centré */
.content-block-center{
    text-align:center;
    max-width:650px;
    margin:0 auto;
}
.content-block-center .section-title{ margin-bottom:.75rem; }
.content-block-center .section-subtitle{ margin-bottom:1.5rem; }


/* site web */
/* Mini-galerie dans le HERO de la page "Site web" */
.hero-web-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 650px;
    padding: 10px;
}

.web-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15,23,42,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-thumb img {
    width: 85%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* Case "Plus de projets" */
.web-thumb-more {
    background: linear-gradient(135deg, #b3261e, #e0473b);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.web-thumb-more span {
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-web-gallery {
        width: 260px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CTA PRO – version agence web */
.cta-pro {
    background: #f5f7fb;
    padding: 3rem 0;
    margin-top: -1rem; /* légère remontée sous le hero */
}

.cta-pro-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-pro-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cta-pro-text {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cta-pro-btn {
    padding: .9rem 2rem;
    font-size: 1.05rem;
}

/* Bandeau CTA séparateur – Style agence web */
/* Bandeau CTA pro */
.cta-separator {
    background: #b3261e;
    padding: 2rem 0;
    color: #fff;
}

.cta-separator-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.cta-text h2 {
    font-size: 1.7rem;
    margin: 0 0 .3rem;
}

.cta-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.cta-btn {
    padding: .8rem 1.6rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .cta-separator-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-block {
        flex-direction: column;
    }

    .cta-btn {
        margin-top: 1rem;
    }
}

/* Centrer le bloc titre */
.web-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Centrer la galerie + prix */
.price-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Style conservé pour le bloc prix */
.price-card {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    display: inline-block;
    text-align: center;
}

.price-card .price {
    font-size: 1.9rem;
    font-weight: 700;
    color: #d65a57;
}

/* --- SECTION SITE WEB : HEADER CENTRÉ --- */

.section-header-center {
    text-align: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* --- LAYOUT 2 COLONNES : TEXTE + GALERIE/PRIX --- */

.site-web-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

/* Colonne texte */

.site-web-text p {
    margin-bottom: 1.5rem;
}

.site-web-text ul {
    margin: 0 0 1.75rem;
    padding-left: 1.2rem;
}

.site-web-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Colonne droite : galerie au dessus, prix en dessous */

.site-web-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ===== GALERIE DE SITES (PAGE SITE WEB) ===== */

.site-web-section .site-web-gallery {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* 2 colonnes sur mobile */
@media (max-width: 768px) {
    .site-web-section .site-web-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-web-section .site-web-gallery .site-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;          /* carré propre */
    border-radius: 22px;
    background: #ffffff;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-web-section .site-web-gallery .site-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Forcer à écraser d'éventuelles règles globales sur img */
.site-web-section .site-web-gallery img {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Tuile "+ de projets" */
.site-web-section .site-web-gallery .site-thumb.more-projects {
    font-weight: 600;
    font-size: 0.95rem;
    color: #b02e23;
}

.site-web-section .site-web-gallery .site-thumb.more-projects span {
    padding: 0 0.5rem;
}

/* Hover */
.site-web-section .site-web-gallery .site-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.site-web-pricing {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.card-pricing {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 550px;
    margin: 60px auto 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.card-pricing h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card-pricing .price {
    font-size: 1.4rem;
    margin: 10px 0;
}

.card-pricing .note {
    opacity: 0.9;
    font-size: 0.95rem;
}

.cta-icon img {
    width: 96px;
    height: 96px;
}

/* Desktop : rien ne change, on garde ta grille */

/* --- VERSION MOBILE --- */
@media (max-width: 768px) {

    /* Forcer la galerie à passer en-dessous */
    .site-web-section .site-web-gallery {
        order: 3;              /* Met la galerie en dernier */
        width: 100%;
        margin-top: 1.5rem;
    }

    /* Le conteneur parent passe en colonne sur mobile */
    .site-web-section .site-web-content {
        display: flex;
        flex-direction: column;
    }

    /* Carrousel horizontal */
    .site-web-section .site-web-gallery {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .site-web-section .site-web-gallery .site-thumb {
        flex: 0 0 120px;         /* largeur des vignettes */
        scroll-snap-align: start;
    }

    /* La grille 2 colonnes devient 1 colonne */
    .site-web-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    /* On met un peu d’air au-dessus de la colonne droite devenue bloc du dessous */
    .site-web-showcase {
        margin-top: 1rem;
        align-items: flex-start;
        width: 100%;
    }

}

/* fortmatioins */

.training-intro {
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    text-align: left;
}

.training-intro p + p {
    margin-top: 0.75rem;
}

.card-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.85;
}
.training-extra-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* ===== PAGE CONTACT ===== */

/* ===== PAGE CONTACT ===== */

.section-contact {
    background: var(--color-body-bg);
}

.contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    max-width: 420px;
}

.contact-title {
    font-size: 2.1rem;
    margin: 0 0 0.5rem 0;
}

.contact-lead {
    margin: 0 0 1.25rem 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li + li {
    margin-top: 0.35rem;
}

.contact-map {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    box-shadow: var(--shadow-soft);
}

/* Optionnel : sur mobile, un peu plus de hauteur */
@media (max-width: 768px) {
    .contact-map {
        min-height: 260px;
    }
}


/* Carte du formulaire */
.contact-form-wrapper {
    flex: 1.2;
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

/* Flash succès */
.flash-success {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Champs du formulaire */
.contact-form > div {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0.65rem 0.85rem;
    background: #f9fafb;
    font: inherit;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(140, 31, 19, 0.25);
}

.contact-form button {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
    }
}

.contact-header {
    padding: 1rem 0 1rem;
    text-align: center;
}

.contact-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}


/* actualites */
/* SECTION + fond dégradé façon CodePen */

.actualites-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border: 0;
    position: relative;
}

/* Barre rouge à droite */
.actualites-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;                 /* épaisseur du trait rouge */
    height: 100%;
    background: #d65a57;        /* ta couleur rouge */
    border-radius: 0 8px 8px 0; /* arrondir le trait comme la carte */
}

/* Trait fin en bas */
.actualites-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;                /* épaisseur du trait bas */
    width: 100%;
    background: #0d1117;        /* ton gris/noir */
    border-radius: 0 0 8px 8px; /* arrondir comme la carte */
}

.section-actualites {
    padding: 60px 0 80px;
    background:
        linear-gradient(180deg, rgba(245, 245, 245, 1), rgba(230, 230, 230, 1));
}


/* Grille principale */
#news-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Cartes “larges” qui prennent 2 colonnes (même pattern que sur le Pen) */
#news-container > .news-card:first-child,
#news-container > .news-card:nth-child(7),
#news-container > .news-card:nth-child(9) {
    grid-column: 1 / 3;
}

#news-container > .news-card:nth-child(6),
#news-container > .news-card:nth-child(8) {
    grid-column: 3 / 5;
}

/* Carte standard */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    padding: 010px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative; /* IMPORTANT pour les bordures animées */
    transition: transform .4s cubic-bezier(0.02, 1.1, 0.8, 1);
}

.news-card img {
    width: 100%;
    height: auto;        /* conserve les proportions d'origine */
    display: block;
    object-fit: contain; /* ou "cover" selon ce que tu préfères */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


/* Bordures animées */
.news-card::before,
.news-card::after {
    content: "";
    position: absolute;
    inset: 0;                 /* colle le pseudo-élément aux bords de la carte */
    border-radius: inherit;   /* mêmes coins arrondis que la carte */
    pointer-events: none;
}

/* Haut & bas (ex : violet) */
.news-card::before {
    border-top: 4px solid #11131A;
    border-bottom: 4px solid #11131A;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .45s cubic-bezier(0.02, 1.1, 0.8, 1);
}

/* Gauche & droite (ex : rouge Raugui) */
.news-card::after {
    border-left: 4px solid #d65a57;
    border-right: 4px solid #d65a57;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .45s cubic-bezier(0.02, 1.1, 0.8, 1) .06s;
}

/* Hover : on “dessine” le cadre */
.news-card:hover {
    transform: translateY(-4px);
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover::after {
    transform: scaleY(1);
}



/* =========================
   VERSION MOBILE ACTUALITÉS
   ========================= */
@media (max-width: 600px) {

    /* On tue la grille et on force un layout simple en colonne */
    .section-actualites #news-container {
        display: block !important;
        max-width: 100% !important;
        padding: 0 10px 24px !important;
        margin: 0 !important;
    }

    .section-actualites #news-container .news-card {
        width: 100% !important;
        margin: 0 0 16px !important;
        padding: 12px 14px 16px;
        border-radius: 10px;
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    }

    .section-actualites #news-container .news-card img {
        width: 100% !important;
        height: auto;
        max-height: 220px;
        object-fit: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .section-actualites #news-container .news-card h2 {
        font-size: 1rem;
        margin: 14px 0 8px;
        line-height: 1.35;
    }

    .section-actualites #news-container .news-card p {
        font-size: 0.9rem;
        line-height: 1.45;
        margin-bottom: 4px;
    }
}



/* ===== Pages d'erreur ===== */

.error-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.error-main {
  max-width: 720px;
}

.error-aside .hero-image {
  max-width: 360px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .error-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .error-aside {
    order: -1;
    margin-bottom: 2rem;
  }
}

.contact-captcha {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #f7f7fb;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-captcha-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.contact-captcha-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.contact-captcha-operation {
    font-weight: 600;
    white-space: nowrap;
}

.contact-captcha-input {
    width: 80px;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #d0d4dd;
    background: #fff;
}

.contact-captcha-input:focus {
    outline: none;
    border-color: #d65a57; /* ta couleur principale */
    box-shadow: 0 0 0 2px rgba(214, 90, 87, 0.15);
}

.contact-submit {
    margin-top: 1rem;
}

