/* ============================================================
   Le Village by CA Finistère — CSS principal
   ============================================================ */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --color-primary:      #027d8f;
    --color-primary-dark: #025f6d;
    --color-primary-light:#e8f7f9;
    --color-accent:       #F9D62F;
    --color-text:         #333333;
    --color-text-dark:    #000000;
    --color-muted:        #757575;
    --color-bg-light:     #f8f9fa;
    --color-white:        #ffffff;
    --font-main:          'Montserrat', sans-serif;
    --navbar-height:      80px;
    --border-radius-btn:  5px;
    --shadow-btn:         4px 4px 10px rgba(0,0,0,0.3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
    background: rgba(0, 0, 0, 0.85);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#navbar .navbar-brand img {
    width: 100%;
    max-width: 150px;
    height: auto;
    transition: max-width 0.3s ease;
}

#navbar.scrolled .navbar-brand img {
    max-width: 40px;
}

#navbar .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.9rem 1rem !important;
    transition: color 0.2s;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
    color: var(--color-accent) !important;
}

#navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

#navbar .navbar-toggler:focus {
    border-color: var(--color-accent);
    box-shadow: none;
}

#navbar .navbar-toggler-icon {
    filter: invert(1);
}

#navbar .navbar-social a {
    color: var(--color-white);
    font-size: 1.3rem;
    transition: color 0.2s;
}

#navbar .navbar-social a:hover {
    color: var(--color-accent);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary-dark);
}

/* Images hero par page */
#hero.hero-home::before  { background: url('../img/photo-header-filtre.jpg') center center / cover no-repeat; }
#hero.hero-village::before  { background: url('../img/exterieur_02_HD-scaled.jpg') center center / cover no-repeat; }
#hero.hero-startup::before  { background: url('../img/photo-header-filtre-7.jpg') center center / cover no-repeat; }
#hero.hero-blog::before     { background: url('../img/Header-Blog-VBCA-1.jpg') center center / cover no-repeat; }
#hero.hero-location::before { background: url('../img/Header-Location-espaces-1.jpg') center center / cover no-repeat; }

#hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.65);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

#hero h2 {
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 2.5rem;
}

#hero h3 {
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
}

#hero .btn-hero {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: transparent;
    font-family: var(--font-main);
    transition: background 0.2s;
}

#hero .btn-hero:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.section-title-sm {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Conteneur max-width 1200px */
.container-lg {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Texte justifié */
.text-justify { text-align: justify; }

/* ============================================================
   ACTUALITÉS
   ============================================================ */
#actualites { padding: 4rem 0; }

.actu-card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 280px;
    overflow: hidden;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.15s ease-in-out;
    cursor: pointer;
}

.actu-card:hover { transform: scale(1.02); }

.actu-card-overlay {
    background: var(--color-bg-light);
    padding: 0.5rem;
}

.actu-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
#temoignages { padding: 4rem 0; }

#testimonials-carousel .carousel-inner { padding: 0 3rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

#testimonials-carousel .carousel-control-prev,
#testimonials-carousel .carousel-control-next {
    width: 2.5rem;
    opacity: 1;
}

#testimonials-carousel .carousel-indicators {
    position: static;
    margin-top: 1.5rem;
}

#testimonials-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--color-muted);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
}

#testimonials-carousel .carousel-indicators .active {
    background-color: var(--color-primary);
    opacity: 1;
}

/* ============================================================
   NOS OFFRES
   ============================================================ */
#offres { padding: 4rem 0; }

.offre-card h3 {
    font-style: italic;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.offre-card h4 {
    font-weight: 600;
    color: var(--color-text-dark);
}

.offre-card p {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-offre {
    display: block;
    width: fit-content;
    margin-left: auto;
    background-color: var(--color-primary);
    border: solid 1px var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-btn);
    box-shadow: var(--shadow-btn);
    font-weight: 500;
    transition: background 0.2s;
}

.btn-offre:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background-color: var(--color-primary);
    color: var(--color-white);
}

#footer * {
    color: var(--color-white);
}

.footer-main { padding: 3.5rem 0 2rem; }

#footer h2 {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

#footer .footer-address {
    color: var(--color-white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

#footer .footer-address i { margin-right: 0.5rem; }

/* Formulaire footer */
#footer .form-control,
#footer .form-select {
    background: var(--color-white);
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--color-text);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-family: var(--font-main);
}

#footer .form-control::placeholder { color: rgba(0,0,0,0.4); }

#footer .form-control:focus,
#footer .form-select:focus {
    background: var(--color-white);
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 0 0 3px var(--color-accent);
    outline: none;
}

.form-check {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#footer fieldset legend {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
}

#footer .form-check-label {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
}

#footer .form-check-label a {
    color: var(--color-white);
    text-decoration: underline;
}

#footer .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--color-accent);
    outline: none;
}

#footer .btn-submit:focus {
    box-shadow: 0 0 0 3px var(--color-accent);
    outline: none;
}

#footer .btn-submit {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: none;
    border-radius: 12px;
    padding: 0.6rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    margin-top: 0.5rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#footer .btn-submit:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

#footer .footer-legal-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    margin-top: 1rem;
    line-height: 1.5;
}

#footer .footer-legal-text a {
    color: var(--color-white);
    text-decoration: underline;
}

/* Feedback formulaire */
#formulaireEnvoiSpinner,
#formulaireEnvoiOK,
#formulaireEnvoiKO {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-white);
}

/* SVG feedback */
.svg-feedback {
    width: 80px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 0;
}

.footer-bottom { padding: 1rem 0; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.footer-links li a {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: underline;
}

.footer-links li a:hover { color: var(--color-white); }

.footer-copyright {
    text-align: center;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10%;
    font-size: 1rem;
    color: var(--color-white);
    transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.8; }

/* ============================================================
   COOKIES BANNER
   ============================================================ */
#cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-light);
    color: var(--color-text);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    display: none;
}

#cookies-banner.visible { display: block; }

#cookies-banner p {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

#cookies-banner a { text-decoration: underline; }

#cookies-banner .btn-cookies-accept {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.45rem 1.2rem;
    margin-right: 0.5rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-main);
    transition: background 0.2s;
}

#cookies-banner .btn-cookies-accept:hover {
    background: var(--color-primary-dark);
}

#cookies-banner .btn-cookies-refuse {
    background: var(--color-muted);
    color: var(--color-white);
    border: none;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-main);
}

#cookies-banner .btn-cookies-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: var(--color-text-dark);
    color: var(--color-white);
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.page-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: calc(var(--navbar-height) + 2rem) 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.page-content-area { padding: 3rem 0 4rem; }

.page-content-area h2 {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content-area h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.page-content-area p,
.page-content-area li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
    color: var(--color-primary);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pagination .page-link:hover {
    color: var(--color-primary-dark);
}

/* ============================================================
   PAGE LE VILLAGE — équipe & manifeste
   ============================================================ */

/* Intro réseau */
.network-stats {
    text-align: justify;
    font-weight: 700;
}

/* Sous-titre italique */
.subtitle-italic {
    color: var(--color-text-dark);
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Domaines d'expertise */
.expertise-col { text-align: center; }

.expertise-col h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Équipe */
.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.team-role {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-text-dark);
}

.team-bio {
    color: var(--color-text-dark);
    margin-top: 1rem;
}

.team-linkedin {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.team-divider {
    border-color: var(--color-primary);
    width: 20%;
    margin: 1rem auto;
}

/* Manifeste */
.manifeste-text {
    text-align: justify;
    color: var(--color-text-dark);
    font-style: italic;
}

.manifeste-signature {
    text-align: right;
    color: var(--color-text-dark);
    font-weight: 600;
}

.manifeste-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.manifeste-divider {
    border-color: var(--color-primary);
    width: 15%;
    margin: 1rem auto;
}

/* Logos section titres */
.logos-section-title {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* ============================================================
   PAGE STARTUP
   ============================================================ */
.prerequis-img { max-width: 100px; }

/* ============================================================
   PAGE LOCATION ESPACES
   ============================================================ */
.horaires-table td { padding: 0.25rem 1rem 0.25rem 0; }

.equipements-list { list-style-type: square; }

/* ============================================================
   PAGE ACTUALITE
   ============================================================ */
.back-link {
    color: var(--color-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--color-primary-dark); }

.navbar-spacer { height: var(--navbar-height); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    #hero h1 { font-size: 2rem; }
    #hero h2 { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    #testimonials-carousel .carousel-inner { padding: 0 2rem; }
}

#footer .form-check-input { margin: 10px 10px 10px 0; }

/* Labels du formulaire footer */
#footer .form-label {
    color: var(--color-white);
    font-weight: 500;
    margin-bottom: 0.3rem;
}
