:root {

    --primary: #002D5C;
    --secondary: #185AB6;
    --tertiary: #F0F4FF;
    --light: #F4F7FD;
    --text: #1A1A1A;
    --text-light: #d9fffc;
    --white: #FFFFFF;
}

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

@font-face {
    font-family: 'main_font';
    src: url('./resources/main_font.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'main_font', 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

a {
    color: black;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* --- OPTION B : Boutons outline + actif rempli --- */
nav ul {
  display: flex;
  gap: 1.2rem;
}

nav ul li a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background .2s, border-color .2s, color .2s, transform .08s;
}

nav ul li a:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.6);
}

nav ul li a:active {
  transform: translateY(1px);
}

nav ul li a.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}


.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
}

.entreprise-banner {
  position: relative;
  background-image: url('images/image13.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .entreprise-banner {
    background-attachment: scroll; /* plus fluide sur mobile */
  }
}

.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 60px;
}

.btn {
    display: inline-block;
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    text-transform: none; 
}

.btn.primary {
    background: var(--primary);    
    color: var(--white);           
    border: 2px solid white;       
}

.btn.primary:hover {
    background: #001d3a;      
}

.btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn.small {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Offers */
.offers {
    background: var(--light);
    padding: 4rem 0;
}

.offers h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.offer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.offer {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    width: 280px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
x
.offer {
  transition: transform .3s ease, box-shadow .3s ease, border-bottom-color .3s ease;
}

.offer .btn {
  transition: background-color .3s, border-color .3s, color .3s;
}

.offer:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  border-bottom-color: var(--secondary);
  transform: scale(1.12);
  transition: transform .3s ease , box-shadow .3s ease, border-bottom-color .3s ease;
}
.offer:hover .btn {
  background-color: var(--tertiary);
  border: 2px solid var(--secondary);
  color: var(--text);
}
.offer:hover .btn:hover {
  background-color: var(--secondary);
  border-color: var(--primary);
  color: var(--text-light);
}

.offer h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.offer p {
    color: #555;
    font-size: 0.9rem;
}

.offer .category a {
    color: black;
    text-decoration: underline;
    text-decoration: none;

    &:before {
        background-image: url('./images/work.svg');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}
.offer .category a:hover {
    text-decoration: underline;
}

.contact-info .contact-addresse,
.offer .location {
    color: #1A1A1A;
    text-decoration: none;

    &:before {
        background-image: url('./images/loc.svg');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.offer .type {
    color: var(--primary);
    text-decoration: none;

    &:before {
        background-image: url('./images/temporary.svg');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.offer .btn {
    align-self:  center;
    margin-top: 0.8rem;

}

.text-center {
    text-align: center;
}

.split-section {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.split-section:nth-of-type(odd) {
    flex-direction: row-reverse;
}

.split-content {
  flex: 1 1 480px;
}

.split-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.split-content p {
    color: #CCC;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.split-image {
    flex: 1;
    height: 100%;
    padding: 1rem 2rem;
}

.split-image img {
    flex-shrink: 1;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.split-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    &:nth-child(3n+1) {
        background-color: var(--primary);
    }
    &:nth-child(3n+2) {
        background-color: #426385;
    }
    &:nth-child(3n+3) {
        background-color: #7490ad;
    }
}

.split-section .split-content h2 {
    color: var(--white);
}

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

footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-column h4 a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}
.footer-column h4 a:hover {
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.footer-column a {
    color: var(--white);
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.8rem;
}

.logo-col .logo {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.logo-col .slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}


.contact-info .contact-brand-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-info .contact-brand-tagline {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1.2rem;
}


.contact-info .contact-addresse,
.contact-info .contact-metro {
    font-weight: 300;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.contact-info .contact-email{
    color: var(--primary);
    text-decoration: none;

    &:before {
        background-image: url('./images/email.png');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.contact-info .contact-phone{
    color: var(--primary);
    text-decoration: none; /* si je veux surligner , barrer , souligner ... */

    &:before {
        background-image: url('./images/telephone.png');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.contact-info {
    color: var(--primary);
    text-decoration: none;

    &:before {
        background-image: url('./images/telephone.png');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.contact-info .contact-metro {
    color: var(--primary);
    text-decoration: none;

    &:before {
        background-image: url('./images/metro.png');
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.5rem;
    }
}

.contact-info .contact-email a,
.contact-info a,
.contact-info .contact-phone a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info .contact-email a:hover,
.contact-info a:hover,
.contact-info .contact-phone a:hover {
  text-decoration: underline;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .offer {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        width: 200px;
        border: 1px solid #ddd;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        display: none;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .offer {
        width: 100%;
    }

    .split-section {
        flex-direction: column;
    }

    .split-section:nth-of-type(even) {
        flex-direction: column;
    }

    .split-content, .split-image {
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}


.cv-section {
    display: flex;
    width: 100%;
    min-height: 70vh;
}

.cv-left {
    flex: 1;
    background: var(--primary);
    color: #7C8BA5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.cv-left .cv-title-line1,
.cv-left .cv-title-line2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
    color: #7C8BA5;
}

.cv-right {
    flex: 2;
    background: var(--light);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.cv-upload-area {
    border: 2px dashed #D1D5DE;
    border-radius: 20px;
    background: #F4F7FD;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #7C8BA5;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.cv-upload-area .plus {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cv-upload-area input[type="file"] {
    display: none;
}

.cv-note {
    font-size: 0.9rem;
    color: #7C8BA5;
    margin-bottom: 1.5rem;
}

.cv-fields-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cv-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.cv-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    border: 1px solid #D7DBE5;
    background: var(--white);
    font-size: 1rem;
}

.cv-submit-btn {
    margin-top: 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cv-submit-btn:hover {
    background: var(--secondary);
}


.offers-header {
    text-align: left;
    padding: 4rem 0 2rem;
}

.offers-header h1 {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.offers-header p {
    font-size: 1rem;
    color: #506680;
    max-width: 600px;
}

.offers-main {
    display: flex;
    gap: 2rem;
}

.filters-panel {
    flex: 1;
    max-width: 260px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.filters-panel .filter-heading {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.filters-list {
    list-style: none;
    margin-bottom: 2rem;
}

.filters-list li {
    margin-bottom: 0.5rem;
}

.filters-list input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.jobs-panel {
    flex: 3;
}

.job-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 6px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.job-card .job-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.job-card .job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.job-card .job-meta {
    font-size: 0.95rem;
    color: #506680;
    display: flex;
    gap: 1rem;
}

.job-card .job-meta .location::before {
    content: '\1F4CD';
    margin-right: 0.3rem;
}

.job-card .job-meta .type,
.job-card .job-meta .category {
    color: #506680;
}

.job-card .job-meta span+span {
    margin-left: 1rem;
}

.job-card .btn-apply {
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.job-card .btn-apply:hover {
    background: var(--secondary);
}

.job-card .job-description {
  font-size: 0.9rem;
  color: #506680;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.job-card .job-description {
  font-size: 0.9rem;
  color: #506680;
  line-height: 1.4;
  margin-top: 0.25rem;
  white-space: pre-line; /* <<< permet de respecter les sauts de ligne du texte */
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination .page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination .page-item.disabled {
    pointer-events: none;
    color: #B0B8C1;
}

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

.pagination .page-item:hover:not(.active):not(.disabled) {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 992px) {
    .offers-main {
        flex-direction: column;
    }
    .filters-panel {
        max-width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .jobs-panel {
        flex: auto;
    }
}

.bubble-banner {
    background: white;
    color: var(--primary); /* ou #002d5c */
    font-weight: 700;
    font-size: 2rem;
    padding: 1.5rem 3rem;
    border-radius: 100px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* AjoutÃ© pour espacer avec le bouton */
    margin-bottom: 2rem;

    /* (optionnel) centrage du texte si contenu long */
    text-align: center;
}

.footer-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  object-fit: contain;
}

* { box-sizing: border-box; }

.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.slideshow-container.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.mySlides {
  display: none;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-banner {
  background-image: url("images/image7.avif"); /* Ã  adapter selon ton image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 2rem;
  color: #fff;
  text-align: center;
  position: relative;
}

.bg-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* effet sombre */
  z-index: 1;
}

.bg-banner .split-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.contact-banner {
  position: relative;
  background-image: url("images/image7.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(48px, 12vh, 96px) 2rem;
  display:flex; align-items:center; justify-content:center; text-align:center;
  min-height: clamp(360px, 54vh, 560px);
  overflow: hidden;
}
@media (max-width:768px){ .contact-banner{ background-attachment: scroll; } } /* iOS fluide */


.contact-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: white;
}

.contact-banner-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-banner-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e2e2e2;
}

.recrutement-hero {
  position: relative;
  background-image: url('images/image5.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  overflow: hidden;
}

.recrutement-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 1.25rem;       /* ↓ padding */
  border-radius: 12px;           /* coins un peu moins massifs */
  max-width: 640px;              /* ↓ largeur max */
  width: 100%;
  text-align: center;
  color: #002d5c;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* ombre plus légère */
}

#page-contact .recrutement-content { max-width: 640px; padding: 1.5rem 1.25rem; border-radius: 12px; }

.recrutement-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.split-section {
  background-color: var(--white);
  padding: 5rem 2rem;
}

.split-wrapper
.presentation {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.split-text {
  flex: 1 1 480px;
  color: var(--text);
}

.split-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.split-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #4a4a4a;
}

.split-image {
  flex: 1 1 480px;
  text-align: center;
}

.split-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.contact-banner{
  background: url('images/image2.webp') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: clamp(360px, 54vh, 560px);
  padding: clamp(48px, 12vh, 96px) 2rem;
  display:flex; align-items:center; justify-content:center;
}
.contact-banner::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  z-index:0;
}
.recrutement-content{ position:relative; z-index:1; } /* ton bloc texte */


.contact-banner-overlay {
  background-color: rgba(0, 0, 0, 0.4); /* fond sombre semi-transparent */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-banner-box {
  background: rgba(255, 255, 255, 0.96); /* encadré blanc */
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-banner-box h1 {
  font-size: 2.8rem;
  color: var(--primary); /* bleu titre */
  margin-bottom: 1rem;
}

.contact-banner-box p {
  font-size: 1.1rem;
  color: var(--primary);
}

/* === PATCH iPhone SE & mobile header === */
.header-container { justify-content: space-between; }
header .footer-logo { max-height: 60px; width: auto; margin: 0; } /* logo adapté au header */

/* === NAV MOBILE propre (plein largeur, iPhone SE OK) === */
:root { --header-h: 70px; }

.header-container{ justify-content: space-between; }
header .footer-logo{ max-height: 60px; width:auto; margin:0; } /* logo header plus compact */

@media (max-width: 768px){
  #menu-toggle{ display:block; font-size:1.75rem; cursor:pointer; color:var(--white); }

  /* panneau sous le header, largeur viewport, scrollable */
  #main-nav ul{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    background: #fff;
    padding: .25rem 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 999;
  }
  #main-nav ul.active{ display:flex; }

  /* liens sobres (on neutralise les “pilules” blanches) */
  #main-nav li{ list-style: none; }
  #main-nav a{
    display:block; padding: 1rem 1.25rem;
    color: var(--primary) !important;
    font-weight: 600; text-decoration: none;
    background: transparent !important; border:0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
  #main-nav li + li a{ border-top: 1px solid #eef2f7; }
}

/* Très petits écrans (iPhone SE) */
@media (max-width: 360px){
  #main-nav ul{ border-bottom:0; }
}

/* MENU MOBILE — rendre les liens visibles */
@media (max-width: 768px){
  nav ul { background: #fff; }
  nav ul li a{
    color: var(--primary) !important;
    border-color: rgba(0,0,0,.12);
    background: transparent;
  }
  nav ul li a:hover{ background: rgba(0,0,0,.06); }
}

/* === Fix iPhone SE — Candidature spontanée === */
@media (max-width: 480px){
  .cv-section{ flex-direction: column; min-height: unset; }

  .cv-left{
    padding: 1.25rem;
    align-items: flex-start;
    text-align: left;
  }
  .cv-left .cv-title-line1,
  .cv-left .cv-title-line2{
    font-size: clamp(1.4rem, 6vw, 1.8rem); /* titres plus compacts */
  }

  .cv-right{ padding: 1.25rem; }
  .cv-form-container{ max-width: none; }

  .cv-upload-area{ height: 140px; border-radius: 16px; }

  /* 1 champ par ligne, fini les débordements */
  .cv-fields-row{ display: block; gap: 0; margin-bottom: .75rem; }
  .cv-field{ min-width: 100%; margin-bottom: .75rem; }
  .cv-field input{ border-radius: 14px; padding: .9rem 1rem; }

  .cv-submit-btn{ width: 100%; padding: .9rem 1.25rem; }
}

/* Extra serré (iPhone SE en mode zoom ou clavier affiché) */
@media (max-width: 360px){
  .cv-left, .cv-right{ padding: 1rem; }
  .cv-upload-area{ height: 128px; }
}

/* === OFFRES — iPhone SE (320–360px) === */
@media (max-width: 480px){
  /* En-tête de page plus compact */
  .offers-header{ padding: 2rem 0 1rem; }
  .offers-header h1{ font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .offers-header p{ font-size: .95rem; max-width: 100%; }

  /* Colonne filtres + liste jobs : respiration */
  .offers-main{ gap: 1rem; }                 /* ↓ l’écart entre filtres et jobs */
  .filters-panel{ margin-bottom: 1rem; gap: .75rem; }
  .filters-list{ display:flex; flex-wrap:wrap; gap:.5rem .75rem; margin-bottom:1rem; }
  .filters-list li{ margin:0; }

  /* Cartes d’offre lisibles et sans débordement */
  .job-card{
    padding: 1rem 1rem;                      /* ↓ padding */
    border-left-width: 4px;                  /* plus fin */
    flex-direction: column;                  /* empile titre/meta/bouton */
    align-items: flex-start;
    gap: .5rem;
  }
  .job-card .job-title{ font-size: 1.05rem; }
  .job-card .job-meta{
    display:flex; flex-wrap:wrap;            /* permet le retour à la ligne */
    gap: .25rem .75rem;                      /* espaces compacts */
  }
  .job-card .btn-apply{
    width: 100%;                              /* bouton pleine largeur */
    align-self: stretch; text-align: center;
    margin-top: .5rem;
  }

  /* Pagination : éviter l’écrasement si beaucoup de pages */
  .pagination{ flex-wrap: wrap; row-gap: .25rem; }
}

/* INDEX — alternance confortable (iPhone SE OK) */
.presentation .split-section{
  display:flex;
  align-items:center;
  gap: clamp(12px, 3vw, 24px);
}
.presentation .split-image img{
  width:100%;
  aspect-ratio: 4/3;          /* hauteur contrôlée */
  object-fit: cover;
  border-radius: 12px;
}

/* iPhone SE et ultra-étroit : lisible + alternance perçue */
@media (max-width: 360px){
  .presentation .split-section{ flex-direction: column; }
  .presentation .split-section:nth-of-type(even){ flex-direction: column-reverse; }
  .presentation .split-image, .presentation .split-content{ width: 100%; min-width: 0; }
  .presentation .split-content h2{ margin:0 0 .25rem; font-size: clamp(1rem, 4.2vw, 1.1rem); }
  .presentation .split-content p{ margin:0; font-size: clamp(.92rem, 3.8vw, 1rem); line-height: 1.45; }
  .presentation{ padding-inline: 12px; }
}

/* Mobile standard (≥361px) : 2 colonnes alternées, non compressées */
@media (min-width: 361px) and (max-width: 768px){
  .presentation .split-section{ flex-direction: row; }
  .presentation .split-section:nth-of-type(even){ flex-direction: row-reverse; }
  .presentation .split-image, .presentation .split-content{ width: 50%; min-width: 0; }
  .presentation{ padding-inline: clamp(12px, 3vw, 24px); }
}

/* iPhone SE — fond plein écran sans débordement */
.split-section{
  position: relative;           /* ancre le pseudo-élément */
  overflow: visible;
}

/* Étend UNIQUEMENT le fond, pas le contenu → pas de scroll latéral */
.split-section::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;                 /* fond = largeur du viewport */
  transform: translateX(-50%);  /* recentre le fond */
  background: inherit;          /* reprend le background de .split-section */
  z-index: -1;                  /* passe sous le contenu */
}

@media (hover: none){
  .offer:hover { transform: none !important; }
}

/* HEADER — logo non réduit + nav à gauche (desktop) */
@media (min-width: 769px){
  .header-container{
    justify-content: flex-start;   /* au lieu de space-between */
    gap: 40px;                      /* espace logo/nav */
  }
  .logo-link{ display:flex; align-items:center; } /* centrage vertical du logo */

  /* logo : taille visible (annule les 36/40px) */
  header .footer-logo{
    height: 64px;                   /* ajuste si besoin : 52–64px */
    width: auto;
    margin: 0;
  }

  /* nav : reste à gauche, à côté du logo */
  #main-nav{ margin-left: 0; }
  #main-nav ul{ justify-content: flex-start; }
}

.contact-phone::before{
  content: "";
  background: url("images/telephone.png") no-repeat center/contain;
  display: inline-block;
  width: 1.2em; height: 1.2em;
  vertical-align: middle;
  margin-right: .5rem;
}

/* CONTACT — supprimer l’icône générique du bloc */
#page-contact .contact-info::before{
  content: none !important;
  background: none !important;
  display: none !important;
}

/* CONTACT — icône UNIQUEMENT pour la ligne téléphone */
#page-contact .contact-info .contact-phone::before{
  content: "" !important;
  display: inline-block !important;
  width: 1.2em; height: 1.2em;
  margin-right: .5rem;
  vertical-align: -0.1em;
  background: url("images/telephone.png") no-repeat center/contain !important;
}

#page-contact .contact-details iframe{ height: 320px !important; border-radius:12px; }
@media (max-width: 768px){
  #page-contact .contact-details{ padding: .9rem !important; }
  #page-contact .contact-details iframe{ height: 220px !important; }
}

.cv-upload-area.is-dragover {
  outline: 2px dashed var(--secondary);
  background: #f7fafc;
}
.cv-file-name { color: #41546B; }

.hero-content .bubble-banner {
  display: block; 
  margin-bottom: 1.5rem; 
}

.hero-content .hero-btn {
  display: inline-block; 
  margin-top: 0.5rem;
}

.offer {
  transition: transform .3s ease, box-shadow .3s ease, border-bottom-color .3s ease;
}

.offer .btn {
  transition: background-color .3s, border-color .3s, color .3s;
}

