﻿/* FAQ */
#faq-section {
  position: relative;
  padding-bottom: 0px;
}

#faq-section button.btn-light {
  position: absolute !important;
  top: 0;
  right: 0;
  z-index: 10;
}

/* ============================================================
   BOUTON FAQ — ALIGNEMENT INTERNE (MOBILE + DESKTOP)
   ============================================================ */
#faq-section button.btn-light {
    display: inline-flex !important;      /* FAQ + image sur la même ligne */
    align-items: center !important;       /* Alignement vertical */
    justify-content: flex-end !important; /* Aligné à droite */
    gap: .5rem;                           /* Espace entre texte et image */
    z-index: 10;
}

/* ============================================================
   MOBILE — BOUTON DANS LE FLUX, ALIGNÉ À DROITE
   ============================================================ */
@media (max-width: 768px) {

    #faq-section button.btn-light {
        position: static !important;      /* Rentre dans le flux */
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;

        margin-left: auto;                /* Aligné à droite */
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* ============================================================
   DESKTOP — BOUTON EN HAUT À DROITE (ABSOLUTE)
   ============================================================ */
@media (min-width: 769px) {

    #faq-section {
        position: relative;               /* Contexte pour absolute */
        padding-top: 80px;                /* Espace pour le bouton */
    }

    #faq-section button.btn-light {
        position: absolute !important;    /* Bouton en haut à droite */
        top: 0;
        right: 0;
    }
}

@media (max-width: 768px){#faq-section {position: relative;text-align: right !important;}#faq-section > button {display: inline-flex;align-items: center;justify-content: flex-end;}}

.accordion-item {
  border: 1px solid #d1d1d1 !important;
  border-radius: .5rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.accordion-button {
  background-color: #f0f8ff !important;
  color: #212529 !important;
  font-weight: 600;
  border-radius: .5rem !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f0f8ff !important;
  color: #212529 !important;
}

.accordion-body {
  background-color: #fff;
  color: #212529;
}

/* CHATBOT */
#chatbot-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
  z-index: 1100;
  background-color: #868e96;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease;
}

#chatbot-btn:hover {
  background-color: #5a6268;
}

#chatbot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  max-width: 90vw;
  height: 400px;
  z-index: 1050;
  transition: all .3s ease;
}

#chatbot .card-header,
#chatbot .card-footer {
  background-color: #f0f8ff;
  color: #212529;
}

#chatbot .card-body {
  background-color: #fff;
  color: #212529;
}

.search-container .btn-search{flex:0 0 auto;border-radius:50px;padding:7px 16px;background-color:#868e96;color:#fff;border:none;cursor:pointer;transition:background .3s ease,transform .15s ease;font-weight:600}.search-container .btn-search:hover{background-color:#5a6268;transform:translateY(-1px)}.search-container .btn-search:focus-visible,.search-container input[type="text"]:focus-visible{outline:2px solid #6c757d;outline-offset:2px}@media (max-width:360px){.search-container{gap:6px}.search-container .btn-search{padding:8px 12px;font-size:.9rem}}.share-buttons{display:flex;justify-content:center;align-items:center;gap:14px;margin:16px 0 8px;flex-wrap:wrap}.share-buttons a{width:38px;height:38px;border-radius:50%;background:#1c1c1c;display:inline-flex;align-items:center;justify-content:center;transition:transform .2s ease,background .2s ease}.share-buttons a:hover{transform:translateY(-2px);background:#868e96}.share-buttons svg{width:18px;height:18px;fill:#ffffff}
.card{box-shadow:0 2px 6px rgba(0,0,0,.1);border-radius:.5rem;margin-bottom:1rem}.card img{aspect-ratio:4/3;object-fit:cover;width:100%}.card .btn{background-color:#868e96;color:#fff;border:none;border-radius:.25rem;transition:all .3s ease}.card .btn:hover{background-color:#5a6268}footer{background-color:#000;color:#fff;padding:1rem 0;width:100%}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #212529;outline-offset:3px}.intro-section{background-color:#f0f8ff;color:#212529;padding-top:3rem;padding-bottom:3rem}#back-to-top{position:fixed;bottom:20px;right:20px;z-index:1000;width:48px;height:48px;font-size:1.5rem;border-radius:50%;background-color:#868e96;color:#fff;display:flex;align-items:center;justify-content:center;transition:all .3s ease;opacity:0;visibility:hidden;scroll-behavior:smooth}#back-to-top.show{opacity:1;visibility:visible}#back-to-top:hover{background-color:#5a6268}.search-container{max-width:400px;margin:0 auto;transition:all .4s ease;display:flex;gap:8px;align-items:center}.search-container input[type="text"]{flex:1;min-width:0;box-sizing:border-box;border-radius:50px;transition:all .4s ease;padding:10px 16px;border:1px solid #ddd;font-size:1rem;background:#fff;color:#212529}.search-container input[type="text"]:focus{outline:none;box-shadow:0 0 10px rgba(0,0,0,.15)}
img[loading="lazy"] { content-visibility: auto; }

.btn-universal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.btn-universal:hover {
  opacity: 0.85;
}
.btn-service { background: #74D0F1; color: #fff;}
.btn-devis { background: #868e96; color: #fff; }
.btn-ajout { background: #547CFF; color: #fff;}

/* MOBILE (<576px) : texte à côté */
.btn-presta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  white-space: normal;
  width: 100%;
}

/* TABLETTE (576px → 991px) : texte sous l’image */
@media (min-width: 576px) and (max-width: 991px) {
  .btn-presta {
    flex-direction: column;
    text-align: center;
    padding: 12px 10px;
  }
}

/* DESKTOP (≥992px) : texte à côté */
@media (min-width: 992px) {
  .btn-presta {
    flex-direction: row;
    text-align: left;
    padding: 10px 20px;
    width: 100%;
  }
}

.btn-presta:hover {
  opacity: 0.55;
}

.btn-activite { background: #fff; color: #000; border: 1px solid #000; }
a.btn-presta.btn-activite, .card a.btn-presta.btn-activite { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; padding: 10px 16px !important; border-radius: 8px !important; text-decoration: none !important; font-weight: bold !important; font-size: 14px !important; color: #000 !important; background: #fff !important; border: 1px solid #000 !important; }
.btn-presta { width: 100%; display: block; }


/* FOOTER */
footer {
  background-color: #000;
  color: #fff;
  padding: 1rem 0;
  width: 100%;
}

.card {
  overflow: hidden; /* Empêche le débordement */
}

.card img {
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.1);
} 

article.card figure > figcaption.card-body.text-center {
  padding-top: 1.9rem !important;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f2f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  color: #000;
  margin-top: 6px;
}

/* --- SIMULATEUR : CARD ISOLÉE ET SANS CONFLIT --- */
.simu-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
}

/* Titre */
.simu-card h2 {
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

/* Labels */
.simu-card .form-label {
    margin-bottom: 6px;
    font-weight: 600;
}

/* Champs */
.simu-card .form-select,
.simu-card .form-control,
.simu-card .form-range {
    margin-bottom: 15px;
}

/* Bouton gris */
.simu-card .btn-grey {
    background-color: #868e96;
    color: #fff;
    border: 1px solid #cfcfcf;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.simu-card .btn-grey:hover {
    background-color: #d5d5d5;
    border-color: #bfbfbf;
}

@media (max-width: 576px) { .btn-presta { width: 100%; display: block; } }

#cookieChoiceInfo {
    position: fixed !important;
    left: 50% !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 90% !important;

    background: #d5d5d5;
    color: #333;
    padding: 18px 25px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-size: 15px;
    z-index: 10000;
    line-height: 1.5;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
}

/* Icône cookie */
#cookieChoiceInfo .cookie-icon {
    font-size: 28px;
}

/* Texte */
#cookieChoiceInfo .cookie-text {
    font-size: 15px;
    max-width: 420px;
}

/* Ligne des liens */
#cookieChoiceInfo .cookie-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Style des liens */
#cookieChoiceInfo a {
    color: #0078ff;
    font-weight: 500;
    text-decoration: none;
}

#cookieChoiceInfo a:hover {
    text-decoration: underline;
}

/* Accepter en gras */
#cookieChoiceDismiss {
    font-weight: bold;
    color: #0078ff;
}

/* ---------------------------------------------------
   ESPACEMENT ENTRE ACCORDIONS
--------------------------------------------------- */
.sim-accordion .accordion-item {
  margin-bottom: 2rem !important; /* espace clair entre chaque bloc */
}

/* ---------------------------------------------------
   IDENTITÉ VISUELLE PREMIUM (Z)
--------------------------------------------------- */
:root {
  --blue-main:#0a3d62;
  --blue-light:#3c6382;
  --grey-light:#f2f4f7;
  --grey-mid:#d6d9dd;
  --radius:12px;
  --shadow:0 4px 14px rgba(0,0,0,0.08);
  --font:"Inter","Segoe UI",system-ui,-apple-system,sans-serif;
}

body {
  font-family: var(--font);
  background:#fafafa;
}

/* ---------------------------------------------------
   ACCORDÉONS (compatibles Bootstrap)
--------------------------------------------------- */
.sim-accordion .accordion-item {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  border:1px solid #d1d1d1 !important;
  overflow:hidden;
}

.sim-accordion .accordion-button {
  background-color: #f0f8ff !important;
  font-weight:600;
  border-radius: var(--radius) !important;
}

.sim-accordion .accordion-body {
  background: var(--grey-light);
}

/* ---------------------------------------------------
   GRILLE 2 COLONNES
--------------------------------------------------- */
.sim-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:30px;
  align-items:flex-start;
}

@media(max-width:768px){
  .sim-grid { grid-template-columns:1fr; }
}

/* ---------------------------------------------------
   FORMULAIRES
--------------------------------------------------- */
.sim-block h4 {
  margin-bottom:10px;
  font-size:16px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#444;
}

.sim-block label {
  font-weight:600;
  margin-top:10px;
}

.sim-block input[type="number"] {
  width:100%;
  padding:10px;
  border-radius:var(--radius);
  border:1px solid var(--grey-mid);
  background:white;
}

.sim-options label {
  display:block;
  margin-top:6px;
  font-weight:500;
}

.sim-btn {
  margin-top:14px;
  padding:11px;
  width:100%;
  background:var(--blue-main);
  color:white;
  border:none;
  border-radius:var(--radius);
  cursor:pointer;
  transition:.25s;
}
.sim-btn:hover { background:var(--blue-light); }

.sim-result {
  margin-top:10px;
  font-size:17px;
  font-weight:600;
  color:var(--blue-main);
}

.sim-btn,
.sim-btn-cta {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%; /* puisque tu l’as choisi */
  text-align: center;
}


/* ---------------------------------------------------
   IMAGES
--------------------------------------------------- */
.sim-img img {
  width:100%;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* ---------------------------------------------------
   BOUTONS
--------------------------------------------------- */
.sim-btn {
  margin-top: 20px;
  padding: 14px;
  width: 40%;
  background: var(--blue-main);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  transition: .25s;
}

.sim-btn:hover {
  background: var(--blue-light);
}

/* Bouton CTA final */
.sim-btn-cta {
  margin-top: 25px;
  padding: 14px;
  width: 40%;
  background: #145a8d;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: .25s;
  text-align: center;
  display: block;
  text-decoration: none;
}

.sim-btn-cta:hover {
  background: #1d6fa8;
}

.page-carenage #faq-section button.btn-light{
  display:inline-flex !important;
  align-items:center !important;
  gap:.5rem;
  margin-left:auto !important;
  text-align:right;
  width:auto !important;
}

.gap-half { row-gap: 0.5rem; column-gap: 0.5rem; }

/* ----- WRAPPER ----- */
.table-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ----- TABLEAU DESKTOP ----- */
table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    margin: 0 auto;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
}

th {
    background: #f3f3f3;
    font-weight: 600;
    text-align: left;
}

/* ----- VERSION MOBILE / TABLETTE ----- */
@media (max-width: 768px) {

    /* Structure mobile */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1.5rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    td {
        border: none;
        position: relative;
        padding-left: 45%;
        min-height: 40px;
        display: flex;
        align-items: center;
        text-align: left;
    }

    /* Label mobile */
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #333;
        width: 40%;
        white-space: normal;
    }
} 
/* Labels automatiques */ .table-lustrage td:nth-child(1)::before { content: "Lustrage : "; font-weight: 600; color: #333; margin-right: 0.3rem; } .table-lustrage td:nth-child(2)::before { content: "Déjaunissant : "; font-weight: 600; color: #333; margin-right: 0.3rem; }

.table-antifouling {
  width: 100%;
  border-collapse: collapse;
}

.table-antifouling th,
.table-antifouling td {
  padding: 12px;
  border: 1px solid #ddd;
}

/* Fond bleu clair uniquement sur "Dur" et "Érodable" (1ère colonne du tbody) */
.table-antifouling tbody td:first-child {
  background-color: #f3f3f3;
  font-weight: 600; /* optionnel, pour les faire ressortir */
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
  border-radius: 10px;
}

.video-container img.video-poster,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  max-width: none;
  max-height: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 576px) {
  .content-grid.container-fluid,
  .accordion-body {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .content-block {
    padding: 1.25rem !important;
  }

  .content-grid .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .content-block p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

/* TABLETTE : 576px → 991px */
@media (min-width: 576px) and (max-width: 991px) {

  /* Réduction des paddings globaux */
  .content-grid.container-fluid,
  .accordion-body {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Alléger les blocs d’articles */
  .content-block {
    padding: 1.5rem !important; /* au lieu de p-4 */
  }

  /* Éviter les colonnes trop serrées */
  .content-grid .row > [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Lisibilité premium */
  .content-block p {
    font-size: 1.1rem;
    line-height: 1.65;
  }

  /* Titres plus aérés */
  .content-block__title {
    margin-bottom: 1rem;
  }
}

.mapy-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.mapy-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* TABLETTE : largeur intermédiaire */
@media (min-width: 768px) and (max-width: 991px) {
  .mapy-responsive {
    width: 700px;   /* largeur tablette */
    height: 400px;  /* hauteur tablette */
    padding-bottom: 0;
    margin: 0 auto; /* centré */
  }

  .mapy-responsive iframe {
    position: relative;
    width: 100%;
    height: 100%;
  }
}

/* DESKTOP : dimensions fixes */
@media (min-width: 992px) {
  .mapy-responsive {
    width: 800px;   /* largeur desktop */
    height: 400px;  /* hauteur desktop */
    padding-bottom: 0;
    margin: 0 auto; /* centré */
  }

  .mapy-responsive iframe {
    position: relative;
    width: 100%;
    height: 100%;
  }
}
