/* Accueil mobile : photo compacte, contour cuivré et logo renforcé.
   La présentation ordinateur et les autres pages gardent leurs styles. */
@media (max-width: 850px) {
  .hero-seo { padding: 4px 0 0; }
  .hero-seo .hero-grid {
    --hero-logo-size: clamp(118px, 32vw, 145px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    min-height: 0;
    gap: 0;
    overflow: visible;
    background: #080808;
  }
  .hero-seo .hero-copy { display: contents; }
  .hero-seo .hero-copy::before {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: start;
    justify-self: start;
    width: var(--hero-logo-size);
    max-width: none;
    height: var(--hero-logo-size);
    aspect-ratio: 1;
    margin: 16px 0 0 31px;
    background-position: 50% 42%;
    background-size: 150% auto;
    background-repeat: no-repeat;
    filter: none;
  }
  .hero-seo h1 {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: start;
    min-width: 0;
    width: calc(62% - 36px);
    max-width: 220px;
    margin: calc(24px + var(--hero-logo-size)) 0 0 34px;
    color: #fff9f1;
    font-size: clamp(1.875rem, 8.6vw, 2.3125rem);
    font-weight: 500;
    line-height: 1.01;
    letter-spacing: -.035em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    overflow-wrap: anywhere;
  }
  .hero-seo .hero-mobile-job { display: block; }
  .hero-seo .hero-mobile-location {
    display: block;
    margin-top: 10px;
    color: #e2bd96;
    font-size: .76em;
    line-height: 1.09;
    letter-spacing: -.02em;
  }
  .hero-seo .hero-mobile-department { display: block; }
  .hero-seo .hero-media {
    grid-area: 1 / 1;
    position: relative;
    isolation: isolate;
    min-width: 0;
    width: calc(100% - 10px);
    height: auto;
    min-height: 0;
    margin: 0 0 0 10px;
    padding: 0 0 5px 5px;
    border: 0;
    border-radius: 0 0 0 88px;
    box-shadow: none;
    overflow: hidden;
    background: linear-gradient(140deg, #e4c19b 0%, #a36647 28%, #e3ba8c 57%, #a36647 80%, #d4a379 100%);
  }
  .hero-seo .hero-media > img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.05 / 1;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 0 0 0 83px;
  }
  .hero-seo .hero-media::after {
    content: "";
    position: absolute;
    inset: 0 0 5px 5px;
    z-index: 1;
    pointer-events: none;
    border-radius: 0 0 0 83px;
    background:
      radial-gradient(ellipse 58% 55% at 6% 15%, rgba(8, 8, 8, .68), transparent 100%),
      linear-gradient(90deg, rgba(8, 8, 8, .91) 0%, rgba(8, 8, 8, .80) 28%, rgba(8, 8, 8, .43) 49%, rgba(8, 8, 8, .07) 70%, transparent 100%);
  }
  .hero-seo .hero-badge {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 17px;
    max-width: calc(100% - 85px);
    margin: 0;
    padding: 10px 12px;
    background: #f4ecdd;
    color: #241b15;
    border: 0;
    border-left: 3px solid #b57954;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .015em;
    text-align: right;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .13);
  }
  .hero-seo .hero-signature {
    grid-area: 2 / 1;
    width: auto;
    max-width: none;
    margin: 28px 24px 0;
    color: #dfb18e;
    font-size: 1.5rem;
    line-height: 1.25;
  }
  .hero-seo .lead {
    grid-area: 3 / 1;
    width: auto;
    max-width: none;
    margin: 20px 24px 24px;
    color: #eee8e1;
    font-size: 1rem;
    line-height: 1.65;
  }
  .hero-seo .hero-actions {
    grid-area: 4 / 1;
    display: grid;
    width: auto;
    min-width: 0;
    gap: 12px;
    margin: 0 24px 30px;
  }
  .hero-seo .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.35;
  }
}
@media (min-width: 521px) and (max-width: 850px) {
  .hero-seo .hero-media > img { aspect-ratio: 1.35 / 1; }
}
@media (max-width: 360px) {
  .hero-seo .hero-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    padding: 10px 14px 12px 72px;
    border-left: 0;
    font-size: .6875rem;
    line-height: 1.4;
  }
  .hero-seo .hero-media::after { bottom: 46px; }
}

/* Ordinateur : même composition que l’accueil mobile, adaptée au grand écran. */
@media (min-width: 851px) {
  .hero-seo { padding: 14px 0 0; }
  .hero-seo .hero-grid {
    --hero-logo-size: 210px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(660px, 54vw, 740px) auto auto auto;
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    min-height: 0;
    align-items: start;
    gap: 0;
    overflow: visible;
    background: #080808;
  }
  .hero-seo .hero-copy { display: contents; }
  .hero-seo .hero-copy::before {
    content: "";
    display: block;
    grid-area: 1 / 1;
    z-index: 3;
    align-self: start;
    justify-self: start;
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    max-width: none;
    margin: 32px 0 0 56px;
    background: url('assets/logo.png') 50% 42% / 150% auto no-repeat;
    filter: none;
  }
  .hero-seo h1 {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: start;
    width: 42%;
    max-width: 400px;
    min-width: 0;
    margin: 262px 0 0 60px;
    color: #fff9f1;
    font-size: clamp(3.25rem, 5.2vw, 4.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  }
  .hero-seo .hero-mobile-job { display: block; }
  .hero-seo .hero-mobile-location {
    display: block;
    margin-top: 14px;
    color: #e2bd96;
    font-size: .76em;
    line-height: 1.09;
    letter-spacing: -.02em;
  }
  .hero-seo .hero-mobile-department { display: block; }
  .hero-seo .hero-media {
    grid-area: 1 / 1;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 0 6px 6px;
    border: 0;
    border-radius: 0 0 0 150px;
    box-shadow: none;
    overflow: hidden;
    background: linear-gradient(140deg, #e4c19b, #a36647 28%, #e3ba8c 57%, #a36647 80%, #d4a379);
  }
  .hero-seo .hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center 62%;
    border-radius: 0 0 0 144px;
  }
  .hero-seo .hero-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 6px 6px;
    pointer-events: none;
    border-radius: 0 0 0 144px;
    background: linear-gradient(90deg, rgba(8,8,8,.9), rgba(8,8,8,.72) 27%, rgba(8,8,8,.3) 48%, transparent 72%);
  }
  .hero-seo .hero-badge {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 28px;
    max-width: 45%;
    margin: 0;
    padding: 16px 22px;
    background: #f4ecdd;
    color: #241b15;
    border: 0;
    border-left: 4px solid #b57954;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .015em;
  }
  .hero-seo .hero-signature {
    grid-area: 2 / 1;
    width: auto;
    max-width: 950px;
    margin: 40px 24px 0;
    color: #dfb18e;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    line-height: 1.25;
  }
  .hero-seo .lead {
    grid-area: 3 / 1;
    width: auto;
    max-width: 880px;
    margin: 22px 24px 0;
    color: #eee8e1;
    font-size: 1.125rem;
    line-height: 1.7;
  }
  .hero-seo .hero-actions {
    grid-area: 4 / 1;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    gap: 16px;
    margin: 28px 24px 46px;
  }
  .hero-seo .hero-actions .btn {
    min-height: 54px;
    padding: 14px 26px;
    font-size: 1rem;
    line-height: 1.4;
  }
}
