/* Header */
/* =============================
   📱 RESPONSIVE MOBILE
   ============================= */
@media (max-width: 768px) {
 html, body {
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .main-header.transparent {
    width: 100%;
    top: 8px;
    padding: 0 0;
  }

  .logo img {
    height: 34px;
    padding: 10px 10px;
  }

  .header-right {
    margin-right: 10px;
  }

  .hamburger {
    width: 30px;
    height: 18px;
    margin-right: 10px;
  }
  
  .main-header .lang-switch {
    display: none !important;
  }


  /* Menu overlay plein écran */
  .side-menu {
    width: 100%;
    right: -100%;
    padding-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .side-menu ul {
    margin-top: 20px;
  }

  .side-menu li {
    margin: 1.2rem 0;
  }

  .side-menu a {
    font-size: 1.4rem;
  }

  /* Lang switch */
  .side-menu .lang-switch {
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 14px;
  }

  .side-menu .lang-switch a {
    font-size: 1rem;
    padding: 0.4rem 0.9rem;
  }

  .close-btn {
    right: 15px;
    top: 15px;
  }
}

/* Hero Section */
@media (max-width: 768px) {

  .hero {
    padding: 0; 
  }

  .hero-frame {
    height: 30%; /* plus haut, full mobile look */
    border-radius: 25px;
    background-size: 140%;
    background-position: center 0%;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /*tout commence en haut */
    align-items: center;
    text-align: center;
  }

  /* Titre centré en haut */
  .hero-left {
    position: static; /* reset la position absolute */
    max-width: 90%;
    margin-top: 40%;
    color: #fff;
  }

  .hero-left h1 {
    font-size: 1.9rem; /* + petit */
    line-height: 1.3;
    margin-bottom: 20px;
  }

  /* On retire le bouton sur mobile */
  .hero-left .cta-button {
    display: none;
  }

  /* Texte (hero-right-box) centré + style adapté */
  .hero-right-box {
    position: static;
    background: rgba(255,255,255,0.9);
    color: #232323;
    margin-top: 20px;
    max-width: 100%;
    border-radius: 0 0 15px 15px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0;
  }
}

/* Moyen */

@media (max-width: 768px) {

  /* Titre plus petit & centré */
  .methods h2 {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 30px;
  }

  /* Conteneur global plus léger */
  .methods-grid {
    padding: 25px 15px;
    gap: 30px;
  }

  /* Les cartes deviennent un carrousel swipeable */
  .methods-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;

    /* pour que le swipe soit agréable */
    padding-bottom: 10px;

    /* masque la scrollbar horizontale (iOS/Android) */
    -ms-overflow-style: none;      /* IE/Edge */
    scrollbar-width: none;         /* Firefox */
  }

  .methods-cards::-webkit-scrollbar {
    display: none;                 /* Chrome/Safari */
  }

  /* Chaque carte devient un slide */
  .method-card {
    display: flex;
    flex-direction: column;
    justify-content: space-start;
    align-items: center;
    flex: 0 0 80%;                 /* taille d’un slide */
    min-width: 80%;
    max-width: 80%;
    scroll-snap-align: center;

    padding: 30px 25px;
    min-height: 100%;
    text-align: center;
  }

  .method-card .icon {
    margin-bottom: 15px;
  }

  .method-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 3em;
  }

  .method-card p {
    font-size: 0.95rem;
  }

  /* Footer */
  .methods-footer {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }

  /* CTA reste */
  .methods-footer .cta-button {
    font-size: 1rem;
    width: auto;
    padding: 0.8rem 1.3rem;
  }

  /* Le bouton remonter en haut DISPARAÎT */
  .scroll-top {
    display: none;
  }
}

/* ===========================================================
   📱 VERSION MOBILE — SECTION SOLUTIONS
   =========================================================== */
@media (max-width: 768px) {

  .solutions {
    padding: 20px 0;
  }

  .solutions h2 {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 30px;
  }

  /* CONTENEUR GLOBAL */
  .solutions-container {
    padding: 0 5%;
  }

  /* CARTES → SWIPE HORIZONTAL */
  .solutions-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;

    padding-bottom: 10px;

    /* Masquer la scrollbar */
    -ms-overflow-style: none;  /* IE */
    scrollbar-width: none;     /* Firefox */
  }

  .solutions-cards::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* STYLE DES CARTES EN MODE SLIDE */
  .solution-card {
    flex: 0 0 80%;         /* largeur d’une carte dans le swipe */
    max-width: 80%;
    scroll-snap-align: center;

    min-height: 280px;
    border-radius: 18px;
    text-align: center;
    padding-bottom: 10px;
    height: 450px;
  }

  .solution-card img {
    max-height: 180px;
    object-fit: cover;
  }

  .solution-card h3 {
    font-size: 1.2rem;
    margin: 15px 15px 10px 15px;
  }

  .solution-card p {
    font-size: 0.95rem;
    margin: 0 15px 15px 15px;
  }

  /* FOOTER : CTA au centre, flèche supprimée */
  .solutions-footer {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }

  .solutions-footer .cta-button {
    width: auto;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
  }

  .solutions-footer .scroll-top {
    display: none;
  }
}

/* ===========================================================
   📱 VERSION MOBILE — SECTION À PROPOS
   =========================================================== */
@media (max-width: 768px) {

  .about {
    padding: 20px 0;
  }

  /* Titre */
  .about h2 {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 25px;
  }

  /* Mise en page verticale */
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  /* IMAGE EN PETIT ENCARt */
  .about-image {
    order: -1; /* image en premier */
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  /* Textes */
  .about-texts {
    width: 100%;
  }

  .about-block {
    margin-bottom: 25px;
    text-align: left;
  }

  .about-block .title-row img {
    width: 20px;
    height: 20px;
  }

  .about-block h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .about-block p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 8px;
  }

  /* Footer */
  .about-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .about-footer .cta-button {
    font-size: 1rem;
    padding: 0.85rem 1.3rem;
  }

  /* Flèche de retour en haut : disparaît */
  .about-footer .scroll-top {
    display: none;
  }
}

/* ===========================================================
   📱 VERSION MOBILE — SECTION CONTACT
   =========================================================== */
@media (max-width: 768px) {

  .contact {
    padding: 40px 0;
  }

  /* Titre centré */
  .contact-title {
    font-size: 1.9rem;
    text-align: center;
    margin-left: 0;
    margin-bottom: 25px;
  }

  /* Container devient une colonne */
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 6%;
  }

  /* COLONNE GAUCHE → pleine largeur */
  .contact-left {
    width: 100%;
  }

  .contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  /* Avant : 2 colonnes → Après : 1 colonne */
  .contact-info-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .contact-col {
    width: 100%;
  }

  .info-item {
    margin-bottom: 15px;
  }

  .info-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
  }

  .divider {
    width: 60%;
  }

  /* FORMULAIRE / COLONNE DROITE */
  .contact-right {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
  }

  .contact-right label {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  .contact-right input,
  .contact-right textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  /* BOUTON CTA DU FORMULAIRE */
  .btn-submit {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 35px;
    margin-top: 25px;
  }

  /* Flèche pour remonter : désactivée */
  .contact .scroll-top {
    display: none;
  }
}

/* ===========================================================
   📱 VERSION MOBILE — FOOTER
   =========================================================== */
@media (max-width: 768px) {

  .site-footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 6%;
    gap: 25px;
  }

  /* Partie gauche centrée */
  .footer-left {
    align-items: center;
    gap: 10px;
  }

  .footer-copy {
    font-size: 0.95rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
  }

  .footer-links a {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
  }

  /* On enlève le "|" vertical pas adapté au mobile */
  .footer-links a + a::before {
    content: none;
  }

  /* Partie droite centrée */
  .footer-right {
    flex-direction: column;
    gap: 15px;
  }

  .footer-item {
    justify-content: center;
  }

  .footer-icon {
    width: 26px;
    height: 26px;
  }

  /* LinkedIn centré et plus grand */
  .footer-right .linkedin img {
    width: 32px;
    height: 32px;
  }
}

/* ===========================================================
   📱 VERSION MOBILE — SECTION MENTIONS LÉGALES
   =========================================================== */
   @media (max-width:480px) {
  
  .hero-legal {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    height: 45px;               /* s'adapte si texte long */
    padding: 14px 18px;
  }

  .hero-legal h1,
  .hero-legal h2,
  .hero-legal p {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .doc {
    width: 95%;
    padding: 14px 0;
  }

  .breadcrumb {
    font-size: 0.88rem;
    gap: 6px;
    margin: 12px 3%;
  }
  #cookie.doc h1 h2{
    font-size: 0.5rem;
  }
  #cookie.doc text{
    font-size: 0.55rem;
    text-align: justify;
  }
}

