/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   OVERFLOW FIX — prevents horizontal scrollbar
   overflow-x: clip  →  clips without creating a scroll
   container, so position:fixed navbar still works fine
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html {
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

:root{
    --dark-color: #ffffff;
    --green-color: #6D6899;
    --primary-blue: #0066cc;
    --dark-blue: #004999;
}

.body{
    font-family: "Poppins", sans-serif;
    height: 10000px;
}

/* ── Video Background ── */
/* Le dégradé reste visible si la vidéo ne charge pas ou ne se décode pas
   (WebM non lu par Safari iOS < 17.4) : sans lui, texte blanc sur blanc. */
.video-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(160deg, #004999 0%, #0066cc 55%, #38b0e3 100%);
}

.video{
    /* width fixe : sans ça, la vidéo se dessine à sa largeur intrinsèque
       (1920px) et déborde l'écran sur mobile. */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Home Section ── */
.home-section {
    text-align: center;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.home-overlay {
    width: 100%;
}

/* ── Hero Text ── */
.text-home{
    text-align: center;
    color: rgb(255, 255, 255);
    margin-bottom: 40px;
    padding: 0 16px;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-home h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.text-home p{
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.98;
}

/* ── Search Container ── */
.input-home {
    max-width: 950px;
    width: 90%;
    margin: 40px auto 0;
    position: relative;
    z-index: 10; /* la liste de résultats passe devant le pied de page */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

/* ── Legacy input-group (kept for compatibility) ── */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.input-group .form-control {
    border: none;
    background: transparent;
    border-radius: 12px;
    height: 58px;
    padding: 0 24px;
    flex: 1;
    font-size: 16px;
    outline: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group .form-control::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.input-group .form-control:focus {
    background: rgba(0, 102, 204, 0.03);
    box-shadow: none;
    outline: none;
}

/* ── Search Wrapper ── */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.search-icon {
    padding: 0 18px 0 22px;
    color: #022E51;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #022E51;
    padding: 17px 0;
    font-family: 'Segoe UI', sans-serif;
}

.search-input::placeholder { color: #8fa3b3; }

.search-divider {
    width: 1px;
    height: 28px;
    background: #d0dde8;
    margin: 0 4px;
    flex-shrink: 0;
}

.search-btn {
    background: #022E51;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 17px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover { background: #031f38; }

.map-btn-inline {
    background: transparent;
    color: #022E51;
    border: none;
    padding: 17px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.map-btn-inline:hover { color: #B74803; }

/* ── Search Dropdown ── */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    z-index: 9999;
    display: none;
    max-height: 420px;
    text-align: left;
    overflow-y: auto;
}

.search-dropdown.visible {
    display: block;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown .dropdown-header {
    padding: 14px 20px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8fa3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item-port {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.dropdown-item-port:hover { background: #f0f5fa; }

.dropdown-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8eff5;
}

.dropdown-info { flex: 1; min-width: 0; }

.dropdown-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #022E51;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-loc { font-size: 0.8rem; color: #8fa3b3; margin-top: 2px; }

.dropdown-type {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e8f0f8;
    color: #022E51;
    font-weight: 600;
    flex-shrink: 0;
}

.dropdown-lieu-icone {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0f8;
    color: #022E51;
    font-size: 1.3rem;
}

.dropdown-empty {
    padding: 28px 20px;
    text-align: center;
    color: #8fa3b3;
    font-size: 0.92rem;
}

.dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #8fa3b3;
    font-size: 0.88rem;
}

.dropdown-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
}

.dropdown-footer a {
    color: #B74803;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-footer a:hover { text-decoration: underline; }

.search-dropdown::-webkit-scrollbar { width: 5px; }
.search-dropdown::-webkit-scrollbar-thumb { background: #d0dde8; border-radius: 10px; }

/* ── Button Styles ── */
.btn-outline-secondary {
    position: relative;
    border: none;
    border-radius: 12px;
    background: #0066cc;
    color: white;
    height: 58px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,102,204,0.25), 0 6px 12px rgba(0,102,204,0.15);
}

.btn-outline-secondary:hover::before { opacity: 1; }

.btn-outline-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2), 0 2px 4px rgba(0,102,204,0.1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 15px; }
::-webkit-scrollbar-track { background: #d1e5ff; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(#3c2bff, #22caff);
    border-radius: 10px;
}

/* ── Modal ── */
.modal-content {
    margin-top: 165px;
    width: 100%;
    max-width: 870px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Tablet (≤ 768px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

    /* Hero */
    .home-section {
        padding-top: 90px;
    }

    .text-home {
        margin-bottom: 28px;
        padding: 0 20px;
    }

    .text-home h1 {
        font-size: 2.1rem;
        letter-spacing: -0.5px;
    }

    .text-home p {
        font-size: 0.97rem;
    }

    /* Search container */
    .input-home {
        width: 94%;
        padding: 6px;
        margin: 24px auto 0;
        border-radius: 20px;
    }

    /* Pill search bar → card layout */
    .search-wrapper {
        max-width: 100%;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        overflow: hidden;
        gap: 0;
    }

    /* Top row: icon + input */
    .search-icon {
        display: none;
    }

    .search-input {
        padding: 15px 20px;
        font-size: 0.97rem;
        border-bottom: 1px solid #e8eff5;
    }

    .search-divider {
        display: none;
    }

    /* Bottom row: map link + search button */
    .map-btn-inline {
        padding: 13px 20px;
        border-top: none;
        border-right: 1px solid #e8eff5;
        justify-content: center;
        flex: 1;
        border-radius: 0;
        font-size: 0.85rem;
    }

    .search-btn {
        border-radius: 0 0 16px 16px;
        padding: 14px 20px;
        font-size: 0.9rem;
        justify-content: center;
        flex: 1;
    }

    /* Make map btn + search btn sit side by side in a row */
    .search-box {
        display: grid;
        grid-template-areas:
            "input input"
            "map   btn";
        grid-template-columns: 1fr 1fr;
    }

    .search-input   { grid-area: input; }
    .map-btn-inline { grid-area: map;   border-bottom: none; }
    .search-btn     { grid-area: btn;   border-radius: 0 0 16px 0; }

    /* Dropdown stays below the card */
    .search-dropdown {
        border-radius: 14px;
        max-height: 320px;
    }

    .dropdown-img {
        width: 42px;
        height: 42px;
    }

    /* Modal */
    .modal-content {
        margin: 80px auto 0;
        width: 95%;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Mobile (≤ 480px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {

    /* Hero */
    .home-section {
        padding-top: 78px;
    }

    .text-home h1 {
        font-size: 1.65rem;
        letter-spacing: 0;
        margin-bottom: 14px;
    }

    .text-home p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    /* Search container */
    .input-home {
        width: 96%;
        padding: 5px;
        margin-top: 18px;
    }

    .search-input {
        font-size: 0.92rem;
        padding: 13px 16px;
    }

    .map-btn-inline {
        font-size: 0.8rem;
        padding: 12px 12px;
    }

    /* Hide "Carte" text on very small screens, keep icon */
    .map-btn-inline .map-label { display: none; }

    .search-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
        gap: 6px;
    }

    /* Hide "Rechercher" text on very small screens, keep icon */
    .search-btn .btn-label { display: none; }

    /* Dropdown */
    .search-dropdown {
        max-height: 60vh;
        border-radius: 12px;
    }

    .dropdown-item-port {
        padding: 8px 14px;
        gap: 10px;
    }

    .dropdown-img, .dropdown-lieu-icone {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .dropdown-name { font-size: 0.88rem; }
    .dropdown-loc  { font-size: 0.75rem; }
    .dropdown-lieu-icone { font-size: 1rem; }
    .dropdown-type { display: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — Extra small (≤ 360px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 360px) {
    .text-home h1 { font-size: 1.45rem; }
    .text-home p  { font-size: 0.82rem; }

    .search-input { padding: 12px 14px; }

    .map-btn-inline,
    .search-btn { padding: 12px 10px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INSCRIPTION / SELECT PAGE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body-select-inscription {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #022E51 0%, #0A4A7D 50%, #1E6BA8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.btn-outline-info { border-radius: 30px; }

.dropdown-toggle {
    background-color: #ffffff00;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.dropdown-toggle:hover { background-color: #0080ff14; }

.dropdown-toggle h5 {
    color: black;
    font-size: 16px;
    margin-left: 5px;
}

.main-container {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    margin-top: 80px;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #E8F4FD;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.1rem;
    color: #B8D4E8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.selection-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.selection-card:hover::before { left: 100%; }

.selection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-color: #B74803;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #022E51, #B74803);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(2,46,81,0.3);
    transition: transform 0.3s ease;
}

.selection-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #022E51;
    margin-bottom: 15px;
    text-align: center;
}

.card-description {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #B74803;
    font-weight: bold;
    font-size: 1.2rem;
}

.card-button {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #022E51, #0A4A7D);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #B74803, #D85A0A);
    transition: left 0.3s ease;
    z-index: 1;
}

.card-button:hover::before { left: 0; }

.card-button span { position: relative; z-index: 2; }

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(183,72,3,0.3);
}

.waves {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    animation: wave 8s linear infinite;
}

@keyframes wave {
    0%   { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.floating-elements {
    position: absolute;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 20s linear infinite;
}

.floating-element:nth-child(1) { top: 10%;    left: 10%;  animation-delay: 0s;   }
.floating-element:nth-child(2) { top: 20%;    right: 10%; animation-delay: -5s;  }
.floating-element:nth-child(3) { bottom: 30%; left: 20%;  animation-delay: -10s; }
.floating-element:nth-child(4) { bottom: 10%; right: 20%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(180deg); }
}

@media (max-width: 768px) {
    .hero-title    { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .cards-container { grid-template-columns: 1fr; gap: 30px; }
    .selection-card  { padding: 30px 25px; }
    .main-container  { padding: 20px 15px; }
}

@media (max-width: 480px) {
    .hero-title  { font-size: 2rem; }
    .card-title  { font-size: 1.5rem; }
    .selection-card { padding: 25px 20px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARENAGE PAGE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.carenage-body { background-color: white; }
.carenage-nav-item { font-weight: 600; }

#mainNav .navbar-nav .carenage-nav-item .nav-link:hover { color: #B74803; }

/* Map — responsive width instead of fixed 878px */
.carenage-map-container {
    height: 500px;
    margin-left: 0;
    margin-top: 65px;
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 878px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    position: sticky;
}

.carenage-leaflet-popup .leaflet-popup-content {
    width: 150px;
    line-height: 1.0;
}

/* Search box — was hardcoded 878px */
.carenage-search-box {
    margin-left: 0;
    margin-top: 20px;
    background-color: #96a1ac;
    border-radius: 8px;
    width: 100%;
    max-width: 878px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.carenage-form-group {
    margin: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.carenage-volume-display,
.carenage-volume-display-lon,
.carenage-volume-display-lar {
    margin-left: 10px;
    background-color: #f2f2f2;
    padding: 5px;
    border-radius: 10px;
}

/* Card display — was hardcoded 878px */
.carenage-card-display {
    margin-left: 0;
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 878px;
}

.carenage-cards-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    padding: 0 20px;
}

/* Search bar header */
.carenage-search-header {
    background-color: #49e7ea00;
    width: 100%;
    max-width: 850px;
    margin-left: 0;
    margin-top: 11px;
    border-radius: 3px;
}

.carenage-search-header h1 {
    color: #002B4B;
    font-size: clamp(1.1rem, 3vw, 1.875rem);
    margin-left: 18px;
    margin-top: 4px;
}

/* Flip Card */
.carenage-flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.carenage-flip-card-inner {
    position: relative;
    width: 100%; height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.carenage-flip-card:hover .carenage-flip-card-inner { transform: rotateY(180deg); }

.carenage-flip-card-front,
.carenage-flip-card-back {
    position: absolute;
    width: 100%; height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carenage-flip-card-front { background-color: #bbb; color: black; }
.carenage-flip-card-back  {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
}

/* Buttons */
.carenage-btn-primary {
    --bs-btn-bg: #022E51;
    --bs-btn-hover-bg: #A3B4C8;
    --bs-btn-hover-border-color: #B74803;
}

/* Table */
.carenage-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

.carenage-table th,
.carenage-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.carenage-table th { background-color: #f2f2f2; }

/* Location button */
.carenage-location-button {
    position: absolute;
    top: 80px; right: 10px;
    z-index: 999;
    background-color: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}

.carenage-location-button:hover { background-color: #f4f4f4; }
.carenage-location-button i { color: #002B4B; }

@media (max-width: 768px) {
    .carenage-map-container { height: 320px; margin-top: 20px; }
    .carenage-flip-card { width: 240px; height: 240px; }
}

@media (max-width: 480px) {
    .carenage-flip-card { width: 180px; height: 180px; }
}

/* ── Navigation carte (localiser + itinéraire) ───────────────── */
.locate-btn {
    background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 6px;
    width: 34px; height: 34px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #333; transition: background .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.locate-btn:hover { background: #e8f4ff; color: #0077cc; }
.locate-btn.loading { color: #f59e0b; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-btns { display: flex; gap: 10px; margin-top: 12px; }
.nav-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 12px; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: .83rem; transition: all .15s; border: 1.5px solid;
}
.nav-btn-google { background: #e8f0fe; color: #1a73e8; border-color: #c5d4f6; }
.nav-btn-google:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.nav-btn-waze { background: #e8f8f0; color: #0a9e4f; border-color: #b2dfcb; }
.nav-btn-waze:hover { background: #0a9e4f; color: #fff; border-color: #0a9e4f; }
@media(max-width:480px){ .nav-btn { font-size:.75rem; padding:9px 8px; } }

/* ── Contact Card Pro (pages de vue) ─────────────────────────── */
.contact-card-pro .contact-card-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 18px; margin-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
    font-size: 1.05rem; font-weight: 700; color: #022E51;
}
.contact-card-pro .contact-card-header i {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #022E51, #0a4a7c);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.contact-row {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 0; border-bottom: 1px solid #f4f6f8;
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
}
.contact-row.cr-phone .contact-row-icon { background: #e8f4ff; color: #0077cc; }
.contact-row.cr-email .contact-row-icon { background: #fff3e8; color: #e67e22; }
.contact-row.cr-web   .contact-row-icon { background: #e8fff3; color: #0f9b58; }
.contact-row.cr-user  .contact-row-icon { background: #f3e8ff; color: #7c3aed; }
.contact-row-info { flex: 1; min-width: 0; }
.contact-row-label {
    font-size: .68rem; font-weight: 700; color: #aab;
    text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 3px;
}
.contact-row-value {
    font-size: .95rem; font-weight: 600; color: #222;
    text-decoration: none; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-row-value:hover { color: #00aaff; }
.contact-row-btn {
    flex-shrink: 0; padding: 7px 16px; border-radius: 50px;
    font-size: .77rem; font-weight: 600; text-decoration: none;
    border: 1.5px solid; transition: all .15s; white-space: nowrap;
}
.contact-row.cr-phone .contact-row-btn { color: #0077cc; border-color: #b3d9f7; background: #f0f8ff; }
.contact-row.cr-phone .contact-row-btn:hover { background: #0077cc; color: #fff; }
.contact-row.cr-email .contact-row-btn { color: #e67e22; border-color: #fdd8b0; background: #fff8f0; }
.contact-row.cr-email .contact-row-btn:hover { background: #e67e22; color: #fff; }
.contact-row.cr-web   .contact-row-btn { color: #0f9b58; border-color: #a8e6c9; background: #f0fff7; }
.contact-row.cr-web   .contact-row-btn:hover { background: #0f9b58; color: #fff; }
.contact-no-info { color: #aaa; font-size: .9rem; font-style: italic; padding: 8px 0; }

@media (max-width: 480px) {
    .contact-row-btn { display: none; }
    .contact-row { gap: 12px; }
}

/* ── Barre de recherche services ── */
.svc-search-wrap {
    position: relative;
    max-width: 300px;
}
.svc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}
.svc-search-input {
    width: 100%;
    padding: 8px 14px 8px 32px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.86rem;
    color: #334155;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}
.svc-search-input:focus {
    border-color: #00aaff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,170,255,0.1);
}
.svc-no-result {
    font-size: 0.86rem;
    color: #94a3b8;
    font-style: italic;
    display: none;
    margin-top: 10px;
}

/* ── Section services homepage ── */
.svc-section {
    background: #0a0f1a;
}
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.svc-card {
    display: block;
    text-decoration: none;
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.svc-card:hover {
    z-index: 2;
    transform: scale(1.03);
}
.svc-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem 1.8rem;
    text-align: center;
    transition: padding 0.3s ease;
}
.svc-card:hover .svc-card-inner {
    padding-bottom: 3rem;
}
.svc-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}
.svc-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}
.svc-card-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    max-width: 220px;
}
.svc-card-btn {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
}
.svc-card:hover .svc-card-btn {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.7);
}
@media (max-width: 992px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card { height: 360px; }
}
@media (max-width: 576px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card { height: 280px; }
}

/* ── Hero banner des pages de service ── */
/* La barre de navigation est fixe (80 px) et recouvre le haut du bandeau :
   le contenu et la photo entière commencent en dessous. */
.svc-hero {
    position: relative;
    min-height: 600px;
    padding-top: 80px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.svc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 100%);
}
/* Variante « photo entière » : la photo nette tient dans le bandeau, à droite,
   le fond est la même photo floutée. */
.svc-hero--entier { background-color: #022E51; }
.svc-hero-flou,
.svc-hero-net {
    position: absolute;
    background-repeat: no-repeat;
}
.svc-hero-flou {
    inset: -40px;               /* le flou s'estompe sur les bords : on déborde */
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(.85);
}
.svc-hero-net {
    inset: 80px 0 0 0;
    background-size: contain;
    background-position: right center;
}
.svc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: 3.5rem 0;
}
.svc-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.32);
    color: #fff;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin-bottom: 1.3rem;
}
.svc-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.svc-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 520px;
}
.svc-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}
.svc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.svc-hero-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.svc-hero-stat-lbl {
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: .25rem;
}
.svc-hero-stat-div {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,.22);
    flex-shrink: 0;
}
.svc-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.svc-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #022E51;
    font-weight: 700;
    border-radius: 50px;
    padding: 13px 30px;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s;
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.svc-hero-btn-primary:hover {
    background: #f0f8ff;
    color: #022E51;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.svc-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
    font-weight: 600;
    border-radius: 50px;
    padding: 11px 28px;
    font-size: .95rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: all .2s;
}
.svc-hero-btn-outline:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.75);
    color: #fff;
}
@media (max-width: 768px) {
    .svc-hero { min-height: 500px; }
    /* Écran étroit : la photo entière y serait minuscule, on la laisse remplir. */
    .svc-hero-net { inset: 0; background-size: cover; background-position: center; }
    .svc-hero-title { font-size: 2.2rem; }
    .svc-hero-content { padding: 2.5rem 0; }
}
@media (max-width: 576px) {
    .svc-hero { min-height: 440px; }
    .svc-hero-title { font-size: 1.75rem; }
    .svc-hero-stat-num { font-size: 1.5rem; }
    .svc-hero-cta { flex-direction: column; }
    .svc-hero-btn-primary, .svc-hero-btn-outline { justify-content: center; }
}
