.accueil-title{
    font-size: 1.8rem !important;
    font-weight: bold;
}
/* HERO SECTION */

#accroche{
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 38px;
}

.fade-out{
    opacity: 0 !important;
    transform: translateY(-10px);
}

.fade-in{
    opacity: 1 !important;
    transform: translateY(0);
}

#accroche::after{
    content '|';
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink{
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* FIN HERO SECTION */

/* APPARITION DES CARDS */
@keyframes fade-in-zoom{
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#cards-container .col-md-4 {
    opacity: 0;
    transform: translateY(60px) scale(0.6)
    transition: none;
}

#cards-container.animate .col-md-4 {
    animation: fade-in-zoom 2s ease-out forwards;
    animation-delay: calc(var(--index) * 0.4s);
}
/* FIN APPARITION DES CARDS */

/* SECTION OFFRES */

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-3000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(3000px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.section-offres {
    width: 80%;
    margin: auto;
}

.offre-container {
    width: 900px;
    position: relative;
    max-width: 800px;
    background: #f4f4f4;
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    padding: 25px;
    border-radius: 25px;
    height: 400px;
    transition: all 0.3s;
    bottom: 10px;
    opacity: 0
}

.reveal-ltr-left{
    animation : slideInFromLeft 1s ease-out forwards;
}

.reveal-ltr-right{
    animation : slideInFromRight 1s ease-out forwards;
}

.offre-item {
    display: flex;
    align-items: center;
}

.offre-img {
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.offre-img:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.8;
}

.img-left {
    top: 0;
    left: 0;
    transform: translateX(-80px);
}

.img-right {
    top: 0;
    right: 0;
    transform: translateX(80px);
}

.offre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: all 0.3s;
}

.offre-content {
    padding-right : 25px;
}

.offre-content > * {
    transform: translateY(25px);
    transition: all 0.4s;
}

.offre-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 20px;
}

.offre-text {
    color: var(--arcys-blue);
    margin-bottom: 30px;
    line-height: 1.5em;
}

/* FIN SECTION OFFRES */

/* COMTPE */

.section-title {
    font-size: 1.3em;
    margin-top: 20px;
}

.card-compte {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.card-compte.visible {
  opacity: 1;
  transform: translateX(0) rotateZ(0);
}

/* FIN COMPTE */


/*** SCROLL BAR ACCUEIL ***/
body.accueil-page {
    scroll-snap-type: y mandatory;
    scroll-behaviour: smooth;
    overflow-y: auto;
    height: 100vh;
}


body.accueil-page .scroll-section {
    scroll-snap-align: start;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*** NAVBAR ***/
.scroll-nav {
    position: fixed;
    right: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.scroll-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.scroll-nav li {
    width: 25px;
    height: 25px;
    background-color: #555;
    border-radius: 50%;
    margin: 110px 0;
    cursor: pointer;
    position: relative
    transition: background-color 0.3s;
    margin-left: 25%;
}

.scroll-nav li:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    bottom: 100%
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.scroll-nav li.active{
    background-color: transparent;
    background-image: url('../../../abys/img/logo1_abys.png');
    background-size: cover;
    background-position: center;
    width: 50px;
    height: 50px;
    margin-left: -2%;
}

/* VIDEO */

.video-card {
  border-radius: 1rem;
  overflow: hidden;
  background-color: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Effet au survol */
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Vidéo responsive */
.responsive-video {
  width: 100%;
  height: 60vh;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* ======== TÉLÉPHONES ======== */

/* Portrait (360x740 à 480x1000) */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .video-card {
    width: 90%;
    max-width: 480px;
    height: 45vh;
    max-height: 500px;
    margin: auto;
  }
}

/* Paysage (largeur > hauteur) */
@media screen and (max-width: 740px) and (orientation: landscape) {
  .video-card {
    width: 100%;
    max-width: 480px;
    height: 40vh;
    max-height: 400px;
    margin: auto;
  }
}

/* ======== TABLETTES ======== */

/* Portrait (768x1024 à 1024x1400) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .video-card {
    width: 90%;
    max-width: 768px;
    height: 50vh;
    max-height: 700px;
    margin: auto;
  }

  .section-video{
      margin-bottom: 50% !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 770px) and (orientation: portrait) {
  .sections-compte{
      margin-top: 30% !important;
  }
}

/* Paysage */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .video-card {
    width: 100%;
    max-width: 1024px;
    height: 45vh;
    max-height: 600px;
    margin: auto;
  }
}

/* ======== TABLETTE ======== */

/* Portrait (768x1024 à 1024x1400) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .video-card {
    width: 90%;
    max-width: 768px;
    height: 40vh;        /* ✅ réduit la hauteur à 40% de l’écran */
    max-height: 550px;   /* ✅ limite raisonnable */
    margin: auto;
  }
}

/* Paysage */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .video-card {
    width: 100%;
    max-width: 1024px;
    height: auto;
    max-height: 1024px;
    margin: auto;
  }
}


/* FIN VIDEO */

@media screen and (min-width: 1020px){
    .scroll-nav {
        right: 0px !important;
    }
    .scroll-nav li {
        margin: 50px 0 !important;
    }
}

@media screen and (max-width: 1300px){
    .section-offres {
        width: 100%;
        height: 70% !important;
    }

    .offre-container {
        max-width: 700px;
        padding: 15px 20px;
        height: 300px;
        box-shadow: 0px 10px 40px rgba(34, 35, 58, 0.15);
    }

    .offre-item {
        gap: 15px;
    }

    .offre-img {
        width: 200px;
        height: 200px;
        margin-top: 5%;
    }

    .img-left {
        transform: translateX(-60px);
    }

    .img-right {
        transform: translateX(60px);
    }

    .offre-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .offre-text {
        font-size: 14px;
        line-height: 1.3em;
        margin-bottom: 20px;
    }

    .offre-content {
        padding-right: 15px;
    }

    .btn-waves {
        font-size: 14px;
        padding: 8px 15px;
    }

    .growUp{
        font-size: 17px;
    }
}

@media screen and (min-width: 1180px){
    .scroll-nav {
        right: 5px !important;
    }
    .scroll-nav li {
        margin: 55px 0 !important;
    }
}

@media screen and (max-height: 1180px){
    .section-solutions{
        width: 100%;
        height: 60% !important;
    }

}

@media screen and (max-height: 1024px) and (max-width: 1400px) and (min-height: 1000px) and (min-width: 1300px){
    .section-solutions{
        width: 100%;
        height: 65% !important;
    }
}

@media screen and (max-height: 1024px) and (max-width: 800px) and (min-height: 1000px) and (min-width: 700px){
    .section-solutions{
        width: 100%;
        height: 100% !important;
    }
}

@media screen and (max-height: 1180px) and (max-width: 820px) and (min-height: 1025px) and (min-width: 700px){
    .section-solutions{
        width: 100%;
        height: 100% !important;
    }
}


@media screen and (max-height: 1180px) and (max-width: 820px), screen and (max-height: 1400px) and (min-height: 1300px) and (max-width: 1024px) and (min-width: 1000px){
    .section-offres {
        width: 100%;
        height: 45% !important;
    }
        /* COMPTE */
    .cards-compte .col-md-3,
    .cards-compte .col-sm-6 {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .cards-compte .card-compte {
        width: 90%;
        max-width: 250px;
        padding: 10px;
        margin-top: 10px;
    }

    .cards-compte .card-compte i {
        font-size: 2.5rem;
        margin-top: 10px;
    }

    .cards-compte .card-compte h4.section-title {
        font-size: 1.1em;
        margin-top: 10px;
    }

    .cards-compte .card-compte p {
        font-size: 0.9em;
        margin-top: 10px;
    }
}


@media screen and (min-width: 1300px){

    .scroll-nav {
        right: 10px !important;
    }

    .scroll-nav li {
        margin: 85px 0 !important;
    }
}

@media screen and (min-height: 1300px){
    .scroll-nav li {
        margin: 100px 0 !important;
    }

    .scroll-nav li.active{
        width: 40px;
        height: 40px;
        margin-left: -25% !important;
    }

    .section-solutions {
        width: 100%;
        height: 60% !important;
    }
}

@media screen and (min-width: 1180) and (max-height: 1400px){
    .section-offres {
        width: 100%;
        height: 60% !important;
    }

    .offre-container {
        max-width: 700px;
        padding: 20px 25px;
        height: 400px;
        box-shadow: 0px 11px 42px rgba(34, 35, 58, 0.16);
    }

    .offre-item {
        gap: 20px;
    }

    .offre-img {
        width: 220px;
        height: 220px;
        margin-top: 3%;
    }

    .img-left {
        transform: translateX(-60px);
    }

    .img-right {
        transform: translateX(60px);
    }

    .offre-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .offre-text {
        font-size: 15px;
        line-height: 1.4em;
        margin-bottom: 22px;
    }

    .offre-content {
        padding-right: 20px;
    }

    .btn-waves {
        font-size: 15px;
        padding: 9px 18px;
    }
}


@media screen and (min-width: 1920px) {
    .scroll-nav {
        right: 30px !important;
    }
}

@media screen and (max-height: 1080px) {
    /* BAR NAV */
    .scroll-nav li {
        width: 20px;
        height: 20px;
    }

    .scroll-nav li.active{
        width: 40px;
        height: 40px;
        margin-left: -25% !important;
    }

    /* OFFRE */
    .section-offres {
        height: 70% !important;
    }
}

@media screen and (max-width: 992px) {
    .offre-container {
        max-width: 680px;
        height: 400px;
    }
}


@media screen and (max-width: 500px) and (min-width: 992px) {
    .offre-container {
        height: 350px;
    }
}


@media screen and (max-width: 768px) {
    .offre-item {
        flex-direction: column;
    }

    .offre-img {
        transform: translateY(-50%);
        width: 90%;
    }

    .offre-container {
        min-height: 500px;
        height: auto;
        margin: 180px auto;
    }

    .offre-content {
        margin-top: -80px;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 576px) {
    .offre-img {
        width: 95%;
    }

    .offre-content {
        padding: 0;
    }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
    .offre-img {
        height: 270px;
    }
}


@media screen and (max-width: 480px) and (max-height: 1000px){
    .cards-compte .col-md-3, .cards-compte .col-sm-6{
        max-width: 100% !important
    }
}

/* TELEPHONE  */
@media screen and (max-width: 480px){
    .growUp {
        font-size: 16px;
    }

    body.accueil-page {
        scroll-snap-type: none;
        height: auto;
        overflow-y: auto;
    }

    body.accueil-page .scroll-section {
        height: auto;
        padding: 80px 0;
    }

    /* --- HERO --- */
    #section-hero-abys {
        background-color: white;
    }

    #section-hero-abys img {
        width: 100%;
        height: auto;
        clip-path: none;
    }

    #accroche {
        font-size: 26px;
        line-height: 1.2em;
    }

    #accueil-hero .col-lg-6 {
        text-align: center;
        padding: 15px;
    }

    #accueil-hero p {
        font-size: 16px;
        padding: 0 15px;
    }

    .btn-waves {
        display: inline-block;
        font-size: 16px;
        padding: 12px 25px;
    }

    /* --- OFFRES --- */
    .section-offres {
        width: 95%;
        margin: auto;
        height: 80%;
    }

    .offre-container {
        width: 100%;
        height: auto;
        margin: 30px auto !important;
        padding: 20px;
        box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
    }

    .offre-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        display: flex;
    }

    .offre-img {
        width: 100%;
        height: auto;
        transform: none;
        margin-bottom: 0;
    }

    .offre-img img {
        width: 100%;
        height: auto;
    }

    .offre-content {
        padding: 0;
        margin-top: 0;
    }

    .offre-img.img-left{
        transform: translateY(-100px);
        margin-bottom: -50px;
    }

    .offre-img.img-right{
        transform: translateY(100px);
        margin-top: -50px;
    }

    .offre-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .offre-text {
        font-size: 15px;
        line-height: 1.4em;
        margin-bottom: 20px;
    }

    .btn-waves {
        display: inline-block;
        font-size: 15px;
        padding: 10px 20px;
        margin-bottom: 10%
    }

    /* --- Espacements --- */
    .row.justify-content-start,
    .row.justify-content-end {
        margin: 0 !important;
        margin-top: 25% !important;
    }
}

/* TELEPHONE PAYSAGE */
@media screen and (max-height: 480px) {

    /* --- STRUCTURE GÉNÉRALE --- */
    body.accueil-page {
        scroll-snap-type: none;
        height: auto;
        overflow-y: auto;
    }

    body.accueil-page .scroll-section {
        height: auto;
        padding: 20px 0;
    }

    .growUp {
        font-size: 16px;
    }

    /* --- HERO --- */
    #section-hero-abys {
        background-color: white;
        padding-top: 10px;
    }

    #section-hero-abys img {
        width: 100%;
        height: 45vh;
        object-fit: cover;
        clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    #accroche {
        font-size: 22px;
        line-height: 1.1em;
        margin-bottom: 10px;
    }

    #accueil-hero .col-lg-6 {
        text-align: center;
        padding: 10px;
    }

    #accueil-hero p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* --- OFFRES --- */
    .section-offres {
        width: 95% !important;
        margin: auto !important;
        height: auto !important;
        padding: 10px 0 !important;
    }

    .offre-container {
        width: 80% !important;
        height: auto !important;
        margin: 20px auto !important;
        padding: 15px !important;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .offre-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .offre-img {
        width: 45% !important;
        height: 160px !important;
        margin: 0 !important;
    }

    .offre-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .offre-content {
        width: 55% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .offre-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .offre-text {
        font-size: 13px !important;
        line-height: 1.3em !important;
        margin-bottom: 10px !important;
    }

    .btn-waves {
        font-size: 13px !important;
        padding: 8px 16px !important;
        margin-bottom: 5% !important;
    }

    /* --- ESPACEMENTS --- */
    .row.justify-content-start,
    .row.justify-content-end {
        margin: 0 !important;
    }

    /* COMPTE */
    .cards-compte .col-md-3,
    .cards-compte .col-sm-6 {
        flex: 0 0 45%;   /* deux cartes par ligne seulement pour ce bloc */
        max-width: 45%;
    }

    .cards-compte .card-compte {
        width: 90%;
        max-width: 250px;
        padding: 10px;
        margin-top: 10px;
    }

    .cards-compte .card-compte i {
        font-size: 2.5rem;
        margin-top: 10px;
    }

    .cards-compte .card-compte h4.section-title {
        font-size: 1.1em;
        margin-top: 10px;
    }

    .cards-compte .card-compte p {
        font-size: 0.9em;
        margin-top: 10px;
    }
}

@media (max-height: 360px) {
    .offre-container {
        width: 95%;
        padding: 8px;
        margin: 10px auto;
    }

    .offre-img {
        width: 40%;
        height: 120px;
    }

    .offre-title {
        font-size: 14px;
    }

    .offre-text {
        font-size: 13px;
        line-height: 1.1em;
    }

    .btn-waves {
        font-size: 13px;
        padding: 5px 10px;
    }

    .offre-item {
        gap: 5px;
    }
}

@media screen and (max-width: 820px) and (min-width: 700px) and (orientation: portrait) {
    .section-offres {
        width: 95%;
        height: auto !important;
        margin-top: 20%;
        margin-bottom: 50%;
    }

    .offre-container {
        min-height: auto;
        height: auto;
        margin: 45px auto !important;
        padding: 25px 20px;
        width: 90%;
    }

    .offre-item {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .offre-img {
        position: relative;
        width: 45%;
        height: 180px;
        margin: -50px 0 -50px 0;
        z-index: 2;
    }

    .offre-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px;
        box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.15);
    }

    .offre-content {
        margin-top: 0;
        text-align: center;
        padding: 15px 25px;
    }

    .offre-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .offre-text {
        font-size: 15px;
        line-height: 1.5em;
        margin-bottom: 18px;
    }

    .offre-img.img-left {
        transform: translateY(-80px);
        margin-bottom: -80px;
    }

    .offre-img.img-right {
        transform: translateY(80px);
        margin-top: -70px;
    }

    .btn-waves {
        font-size: 15px;
        padding: 9px 18px;
    }

    /* Supprime les décalages Bootstrap */
    .row.justify-content-start,
    .row.justify-content-end {
        margin: 0 !important;
    }
}



@media screen and (max-width: 480px), screen and (max-height: 480px), screen and (max-width: 1020px){
    .scroll-nav {
        display: none !important;
    }
}

