/* ----- GOOGLE FONT ----- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ----- GENERAL ----- */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #0a1f44;
    line-height: 1.6;
}

header {
    background: #0a1f44;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: center;
    background: #142b5c;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease;
}

nav a:hover {
    background: #0a1f44;
    border-radius: 5px;
}

/* ----- HERO VIDEO ----- */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero::before {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(10,31,68,0.5);
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.8);
}

/* ----- SECTIONS ----- */
section {
    padding: 50px 20px;
}

h2 {
    color: #0a1f44;
    font-weight: 700;
    margin-bottom: 25px;
}

/* centre tous les titres par défaut */
section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* ----- CARDS ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(10,31,68,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(10,31,68,0.15);
}

/* ----- REVIEWS ----- */
.reviews {
    padding: 30px;
    background: #dadada;
    border-radius: 10px;
    margin: 40px auto;
    width: 90%;
}

.review-slider {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.review-slider .review {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.review-slider .review:nth-child(1) { animation: slide 40s infinite; }
.review-slider .review:nth-child(2) { animation: slide 40s infinite 10s; }
.review-slider .review:nth-child(3) { animation: slide 40s infinite 20s; }
.review-slider .review:nth-child(4) { animation: slide 40s infinite 30s; }

@keyframes slide {
    0% {opacity: 0;}
    20% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;}
}

.stars {
    color: #0a1f44;
    font-size: 20px;
}

/* ----- DESTINATIONS ----- */
.destinations {
    list-style: none;
    padding: 0;
}

.destinations li {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

/* Couleurs par région */
.destinations li.franche-comte {
    background-color: #4b6eab;
}

/* ----- FOOTER ----- */
footer {
    background: #0a1f44;
    color: white;
    text-align: center;
    padding: 35px 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.footer-links a {
    color: #9fc5ff;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact {
    margin-top: 10px;
    font-size: 14px;
    color: #dbe7ff;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .hero { height: 300px; }
    .hero-text { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero { height: 200px; }
    .hero-text { font-size: 1.3rem; }
    .review-slider { height: 230px; }
}

/* ----- ENGAGEMENTS (GAUCHE UNIQUEMENT) ----- */
.engagements h2 {
    text-align: left;
    border-left: 4px solid #0a1f44;
    padding-left: 12px;
}

/* ----- FORMULAIRE (ISOLÉ PROPRE) ----- */
form {
    max-width: 800px;
    margin: 0 auto;
}

form label {
    font-weight: 600;
    color: #0a1f44;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

form textarea {
    resize: vertical;
}

form input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

form button {
    background: #0a1f44;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #142b5c;
}

form p {
    background: #f4f7fb;
    border-left: 4px solid #0a1f44;
    padding: 15px;
    border-radius: 6px;
}
/* ----- POSTES À POURVOIR ----- */

.postes-section {
display: flex;
align-items: center;
gap: 45px;
max-width: 1200px;
margin: 0 auto;
padding: 50px 20px;
box-sizing: border-box;
}

.postes-image {
flex: 0 0 46%;
display: flex;
align-items: center;
justify-content: center;
}

.postes-image img {
width: 100%;
height: 500px;
object-fit: cover;
object-position: center;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(10,31,68,0.15);
}

.postes-contenu {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

.postes-contenu h2 {
text-align: left;
margin-top: 0;
margin-bottom: 25px;
}

.postes-contenu .card {
margin-bottom: 20px;
}

/* ----- MOBILE ----- */

@media (max-width: 768px) {

```
.postes-section {
    flex-direction: column;
    padding: 35px 20px;
}

.postes-image,
.postes-contenu {
    width: 100%;
    flex: none;
}

.postes-image img {
    height: 350px;
}
```

}


/* ----- ENTÊTE IMAGE PAGE AUXILIAIRE AMBULANCIER ----- */

.offre-hero {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
}

.offre-hero img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: brightness(0.65);
}

.offre-hero::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to right,
rgba(10,31,68,0.75),
rgba(10,31,68,0.25)
);
}

.offre-hero-overlay {
position: absolute;
z-index: 2;
top: 50%;
left: 8%;
transform: translateY(-50%);
color: white;
}

.offre-hero-overlay h2 {
color: white;
font-size: 2.8rem;
margin: 0 0 10px;
text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.offre-hero-overlay p {
font-size: 1.3rem;
margin: 0;
color: white;
}

/* ----- MOBILE ----- */

@media (max-width: 768px) {

```
.offre-hero {
    height: 300px;
}

.offre-hero-overlay {
    left: 5%;
    right: 5%;
}

.offre-hero-overlay h2 {
    font-size: 2rem;
}

.offre-hero-overlay p {
    font-size: 1.1rem;
}
```

}
/* ========================================= */
/* INFORMATIONS PAGE CARRIÈRES */
/* ========================================= */

.carrieres-info {
max-width: 1100px;
margin: 0 auto;
padding: 35px 20px;
box-sizing: border-box;
}

.carrieres-info h2 {
text-align: left;
font-size: 1.8rem;
margin: 0 0 15px;
color: #0a1f44;
}

.carrieres-info p {
max-width: 900px;
margin: 0 0 20px;
text-align: left;
font-size: 1rem;
line-height: 1.7;
}

.carrieres-info ul {
max-width: 900px;
margin: 0;
padding-left: 20px;
text-align: left;
}

.carrieres-info li {
margin-bottom: 10px;
font-size: 1rem;
line-height: 1.6;
}

/* ========================================= */
/* POSTES À POURVOIR */
/* ========================================= */

.postes-section {
display: flex;
align-items: center;
gap: 45px;
max-width: 1200px;
margin: 0 auto;
padding: 50px 20px;
box-sizing: border-box;
}

.postes-image {
flex: 0 0 46%;
display: flex;
align-items: center;
justify-content: center;
}

.postes-image img {
width: 100%;
height: 500px;
object-fit: cover;
object-position: center;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(10, 31, 68, 0.15);
}

.postes-contenu {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

.postes-contenu h2 {
text-align: left;
margin-top: 0;
margin-bottom: 25px;
}

.postes-contenu .card {
margin-bottom: 20px;
}

/* ========================================= */
/* ENTÊTE IMAGE DES PAGES DE RECRUTEMENT */
/* ========================================= */

.offre-hero {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
}

.offre-hero img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: brightness(0.65);
}

.offre-hero::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
to right,
rgba(10, 31, 68, 0.75),
rgba(10, 31, 68, 0.25)
);
}

.offre-hero-overlay {
position: absolute;
z-index: 2;
top: 50%;
left: 8%;
transform: translateY(-50%);
color: white;
}

.offre-hero-overlay h2 {
color: white;
font-size: 2.8rem;
margin: 0 0 10px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.offre-hero-overlay p {
font-size: 1.3rem;
margin: 0;
color: white;
}

/* ========================================= */
/* VERSION MOBILE */
/* ========================================= */

@media (max-width: 768px) {

```
/* ----- POSTES À POURVOIR ----- */

.postes-section {
    flex-direction: column;
    padding: 35px 20px;
}

.postes-image,
.postes-contenu {
    width: 100%;
    flex: none;
}

.postes-image img {
    height: 350px;
}


/* ----- INFORMATIONS CARRIÈRES ----- */

.carrieres-info {
    padding: 30px 20px;
}

.carrieres-info h2 {
    font-size: 1.5rem;
}

.carrieres-info p,
.carrieres-info li {
    font-size: 0.95rem;
}


/* ----- IMAGE DES OFFRES ----- */

.offre-hero {
    height: 300px;
}

.offre-hero-overlay {
    left: 5%;
    right: 5%;
}

.offre-hero-overlay h2 {
    font-size: 2rem;
}

.offre-hero-overlay p {
    font-size: 1.1rem;
}
```

}

/* ========================================= */
/* PETITS ÉCRANS */
/* ========================================= */

@media (max-width: 480px) {

```
.postes-image img {
    height: 300px;
}

.offre-hero {
    height: 250px;
}

.offre-hero-overlay h2 {
    font-size: 1.7rem;
}

.offre-hero-overlay p {
    font-size: 1rem;
}
```

}
.contact-section {
    padding: 50px 20px;
    text-align: center;
}

.contact-section > p {
    margin-bottom: 30px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* IMAGE */

.contact-image {
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* FORMULAIRE */

.contact-form {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}


/* HORAIRES */

.hours-section {
    padding: 40px 20px;
    text-align: center;
}

.hours-container {
    max-width: 900px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hours,
.hours-info {
    padding: 25px;
    border-radius: 10px;
    background: #f5f5f5;
}

.hours p {
    margin: 10px 0;
}

.hours-info {
    text-align: left;
}


/* MOBILE */

@media (max-width: 768px) {

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-image {
        min-height: 400px;
    }

    .hours-container {
        grid-template-columns: 1fr;
    }

}
/* ===== Image formulaire rendez-vous ===== */

.image-rdv{
    max-width:900px;
    margin:0 auto 35px;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.image-rdv img{
    display:block;
    width:100%;
    height:320px;
    object-fit:cover;
}

@media (max-width:768px){
    .image-rdv img{
        height:220px;
    }
}