/* ==========================================================================
   RénoBoîtes — Feuille de style page "home"
   Méthodologie : BEM
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Couleurs */
  --color-primary: #E30519;
  --color-primary-dark: #b80313;
  --color-primary-soft: rgba(227, 5, 25, 0.12);
  --color-secondary: #211212;
  --color-text-dark: #240606;
  --color-text-white: #FBF6F8;
  --color-white: #FFFFFF;
  --color-bg-site: #F9F8F8;
  --color-border-dark: rgba(36, 6, 6, 0.3);
  --color-border-white: rgba(251, 246, 248, 0.3);

  /* Typographie */
  --font-heading: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;

  /* Rythme / rayons */
  --radius-pill: 100px;
  --radius-lg: 16px;
  --radius-md: 8px;
  --container-max: 1440px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top : décale la cible d'un lien d'ancrage (ex. Contact : #contact-form)
   pour qu'elle ne se retrouve pas cachée sous le bandeau .site-header,
   qui est en position: sticky. Valeur calée sur la hauteur réelle du header (~72px en
   desktop, ~60px en mobile une fois le burger affiché) + un peu de respiration. */
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 88px;
  overflow-x: hidden;
}
ol { list-style: none; margin: 0; padding: 0; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg-site);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* --- 3. Primitives partagées ---------------------------------------------- */

.tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.55;
  margin: 0 0 16px;
}
.tagline__icon { width: 11px; height: 12px; flex-shrink: 0; }

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: inherit;
}
.body-text--small { font-size: 15px; }
.body-text--on-dark { color: var(--color-text-white); }
.body-text__highlight { color: var(--color-primary); }
.body-text strong { font-weight: 700; }

/* Boutons ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: var(--color-text-white);
  --btn-border: transparent;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn__icon { width: 11px; height: 12px; flex-shrink: 0; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

/* Effet de survol : un fondu diagonal balaie le bouton (inspiré de l'anim Figma) */
.btn::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-115%) skewX(-18deg);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateX(0) skewX(-18deg); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--color-primary); --btn-color: var(--color-text-white); }
.btn--primary:hover { --btn-bg: var(--color-primary-dark); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-color: var(--color-text-dark);
  --btn-border: var(--color-border-dark);
}
.btn--secondary:hover { --btn-bg: var(--color-text-dark); --btn-color: var(--color-text-white); --btn-border: var(--color-text-dark); }
.btn--secondary::before { background: rgba(36, 6, 6, 0.06); }

.btn--on-dark.btn--secondary { --btn-color: var(--color-text-white); --btn-border: var(--color-border-white); }
.btn--on-dark.btn--secondary:hover { --btn-bg: var(--color-text-white); --btn-color: var(--color-secondary); --btn-border: var(--color-text-white); }
.btn--on-dark.btn--secondary::before { background: rgba(251, 246, 248, 0.12); }

.btn--big { padding: 10px 22px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before { transition: none; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .hero__actions .btn,
  .diagnostic__actions .btn { width: 100%; }
}

/* Logos marques --------------------------------------------------------- */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  margin: 24px 0;
  filter: grayscale(1);
  opacity: 0.7;
  justify-content: center;
}
.brand-list__item img { height: 32px; width: auto; }

/* --- 4. En-tête ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-secondary);
  padding: 14px var(--gutter);
}
.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo img { height: 26px; width: auto; }

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}
.site-header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--color-secondary);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 96px 32px 32px;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-nav__item--cta .btn { width: 100%; }

.nav-link {
  position: relative;
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-white);
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link--active::after { transform: scaleX(1); }
.nav-link--active { color: var(--color-primary); }

@media (min-width: 960px) {
  .site-header__burger { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 32px; }
  .nav-link { font-size: 14px; }
}

/* --- 5. Hero ---------------------------------------------------------------- */
/* Mobile (< 700px) : deux blocs empilés, sans superposition -----------------
   1. .hero__container (texte) sur fond uni --color-secondary
   2. .hero__background (photo seule, sans panneau diagonal ni accent)      */
.hero {
  position: relative;
  z-index: 1; /* passe au-dessus de la section suivante pour laisser flotter l'accent rouge (desktop) */
  display: flex;
  flex-direction: column;
  background: var(--color-secondary);
  padding: clamp(40px, 10vw, 96px) var(--gutter) 0;
}
.hero__container {
  order: 1;
  width: 100%;
}
.hero__content {
  max-width: 600px;
  color: var(--color-text-white);
  padding-bottom: clamp(32px, 8vw, 60px);
}
.hero__content .tagline { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw + 1rem, 4.875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__content .body-text { margin-bottom: 32px; max-width: 52ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.hero__background {
  order: 2;
  width: calc(100% + 2 * var(--gutter));
  margin: 0 calc(-1 * var(--gutter));
}
.hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
/* Panneau diagonal et accent rouge : composition réservée à la version superposée (tablette/desktop) */
.hero__background::before { display: none; }
.hero__accent { display: none; }

/* Tablette/desktop (>= 700px) : composition superposée, image en fond plein cadre ---- */
@media (min-width: 700px) {
  .hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: clamp(64px, 14vw, 0px);
    min-height: 560px;
  }
  .hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
    order: initial;
  }
  .hero__image { height: 100%; aspect-ratio: auto; }
  /* Pan noir uni, coupe en diagonale, posé au-dessus de la photo (repère Figma : "vector diag noir") 
     Angle de 66° maintenu via clip-path adaptatif selon la largeur d'écran */
  .hero__background::before {
    display: block;
    content: "";
    position: absolute;
    inset: -1% 41.5% 0 0;
    background: var(--color-secondary);
    /* Valeur par défaut pour petits écrans (700px-768px) */
    clip-path: polygon(0 0, 100% 0, 59.4% 100%, 0 100%);
  }
  .hero__accent {
    display: block;
    position: absolute;
    z-index: 2;
    width: clamp(90px, 13.96vw, 180px);
    bottom: -4.93%;
    left: 38.02%;
    pointer-events: none;
  }
  .hero__container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    order: initial;
  }
  .hero__content { padding-bottom: clamp(48px, 8vw, 60px); }
  .hero__content .tagline { margin-bottom: 32px; }
  .hero__content .body-text { margin-bottom: 36px; }
}

/* Ajustement du clip-path pour maintenir l'angle de 66° à différentes résolutions */
/* Tablette (768px) */
@media (min-width: 768px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 59.4% 100%, 0 100%);
  }
}

/* Desktop standard (1024px) */
@media (min-width: 1024px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 69.6% 100%, 0 100%);
  }
}

/* Desktop large (1440px) */
@media (min-width: 1440px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 72.4% 100%, 0 100%);
  }
}

/* Desktop large (1440px) */
@media (min-width: 1650px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 74.2% 100%, 0 100%);
  }
}

/* Full HD (1920px) */
@media (min-width: 1920px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  }
}

/* 2.5K (2560px) */
@media (min-width: 2560px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  }
}

/* 2.5K (2560px) */
@media (min-width: 2950px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  }
}

/* 2.5K (2560px) */
@media (min-width: 3400px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  }
}

/* 4K (3840px) */
@media (min-width: 3840px) {
  .hero__background::before {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  }
}

/* --- 6. Bloc "Article" générique (intro / diagnostic) ---------------------- */
.intro, .diagnostic {
  padding: clamp(56px, 10vw, 104px) var(--gutter);
}
.intro__container,
.diagnostic__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.diagnostic__container { grid-template-areas: "content" "visual"; }

@media (min-width: 900px) {
  .intro__container,
  .diagnostic__container { grid-template-columns: 1fr 1fr; }
  .diagnostic__container { grid-template-areas: "content visual"; }
  .diagnostic__content { grid-area: content; }
  .diagnostic__visual { grid-area: visual; }
}

.intro__visuals {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 5 / 6;
  margin: 0 auto;
}
.intro__image {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.intro__image--back {
  top: 0;
  left: 0;
  width: 64%;
  height: 76%;
}
.intro__image--front {
  right: 0;
  bottom: 10%;
  width: 54%;
  height: 66%;
  z-index: 1;
}
.intro__badge {
  position: absolute;
  left: 14%;
  bottom: 65px;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(65, 11, 11, 0.15));
}


.intro__title, .diagnostic__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw + 1rem, 3.875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.intro__content .body-text,
.diagnostic__content .body-text { margin-bottom: 16px; }

.diagnostic__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
.diagnostic__image {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: contain;
  aspect-ratio: 3 / 4;
}

/* --- 7. Services / "Nos domaines d'intervention" ---------------------------- */
.services { padding: 0 var(--gutter) clamp(56px, 10vw, 104px); }
.services__card {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid rgba(33, 18, 18, 0.1);
  border-radius: var(--radius-md);
  padding: clamp(32px, 5vw, 40px) clamp(24px, 6vw, 80px) 0;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.services__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.services__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw + 1rem, 3.125rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  /*max-width: 340px;*/
}
.services__image-wrap { margin-top: 32px; overflow: hidden; width: 115%; }

.services__image { width: 100%; object-fit: contain; }

.services__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 40px;
  padding-bottom: clamp(32px, 5vw, 48px);
}
.service-card__icon { width: 32px; height: 32px; margin-bottom: 8px; }
.service-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.5vw + 1rem, 2rem);
  line-height: 1;
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .services__card { grid-template-columns: minmax(0, 580px) 1fr; padding:40px; }
}

/* --- 8. Pied de page --------------------------------------------------------- */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-text-white);
  padding: clamp(48px, 8vw, 80px) var(--gutter) 32px;
}
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; }
.site-footer__grid {
  display: grid;
  gap: clamp(40px, 12vw, 72px);
  margin-bottom: 48px;
}
.site-footer__logo { margin-bottom: 24px; }
.site-footer__tagline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.site-footer__nav { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.site-footer__links { display: flex; flex-direction: column; gap: 16px; }
.site-footer__links a { font-family: var(--font-heading); font-weight: 500; font-size: 15px; }
.site-footer__links-accent { color: rgba(226, 131, 140, 1); }
.site-footer__social { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 500; font-size: 15px; }

.site-footer__divider { border: none; border-top: 1px solid rgba(249, 248, 248, 0.3); margin-bottom: 24px; }
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
}
.site-footer__legal { text-decoration: underline; }

@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --- 9. Page "Expertise technique" ------------------------------------------ */

/* Hero simplifié : pas de photo de fond, juste un accent diagonal flottant
   (réutilise l'asset assets/icons/vector-diag-rouge-lg.svg déjà utilisé sur "home") */
.page-hero {
  position: relative;
  z-index: 1;
  background: var(--color-secondary);
  padding: clamp(40px, 10vw, 96px) var(--gutter) clamp(64px, 14vw, 120px);
}
.page-hero__accent {
  display: block;
  position: absolute;
  z-index: 0;
  right: clamp(16px, 25vw, 300px);
  bottom: clamp(-32px, -5vw, -16px);
  width: clamp(110px, 15vw, 220px);
  pointer-events: none;
}

.page-hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}
.page-hero__content { max-width: 920px; color: var(--color-text-white); }
.page-hero__content .tagline { margin-bottom: 24px; }
.page-hero__content .hero__title { margin-bottom: 24px; }
.page-hero__content .body-text { margin-bottom: 32px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 20px; }

@media (max-width: 480px) {
  .page-hero__actions .btn { width: 100%; }
  .page-hero__accent { 
    bottom: clamp(-50px, -17vw, -16px);
    width: clamp(90px, 15vw, 220px);
  }
}

/* Bloc "Déroulement d'expertise" : réutilise la carte .services__card
   (intro à gauche : titre + bouton + image ; liste à droite) */
.steps-section,
.solutions-section,
.collab-section { padding: clamp(56px, 10vw, 104px) var(--gutter); }

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
  padding-bottom: clamp(32px, 5vw, 48px);
}
.steps-list__number { width: 28px; height: 28px; margin-bottom: 8px; }
.steps-card__image { object-fit: cover; }

/* Ordre de lecture DOM : intro (titre) avant la liste, pour la sémantique et les
   lecteurs d'écran. Ordre visuel desktop : liste à gauche, intro à droite (maquette). */
@media (min-width: 900px) {
  .steps-card .steps-card__intro { order: 2; }
  .steps-card .steps-list { order: 1; }
}

/* Photo "Déroulement d'expertise" / "Expertises spécifiques" : le border-radius doit être
   posé sur le conteneur (.services__image-wrap) puisque c'est lui qui découpe l'image via
   overflow:hidden — le poser seulement sur l'image ne suffit pas, elle reste coupée à angle
   droit par son conteneur.
   - Mobile/tablette (< 900px) : photo autonome, arrondie sur ses 4 coins, ne "mord" pas sur
     le bord de la carte.
   - Desktop (>= 900px) : composition d'origine (comme sur "home"), la photo vient border le
     bord de la carte (coins carrés à cet endroit). */
.steps-card .services__image-wrap,
.specialties-card .services__image-wrap {
  border-radius: var(--radius-lg);
  margin-bottom: clamp(24px, 5vw, 40px);
}

@media (min-width: 900px) {
  .steps-card .services__image-wrap,
  .specialties-card .services__image-wrap {
    border-radius: 0;
    margin-bottom: 0;
  }
  .specialties-card .services__image-wrap,
  .solutions-card .services__image-wrap,
  .collab-card .services__image-wrap {
    margin-left: 5px;
  }
  .steps-card .services__image-wrap {
    margin-left: -25px;
  }

}

@media (min-width: 560px) {
  .steps-list { grid-template-columns: 1fr 1fr; }
}

/* Blocs "citation" : titre centré (2e phrase en rouge) + 2 images + bouton centré
   (composant réutilisé deux fois sur cette page) */
.quote-block { padding: clamp(56px, 10vw, 104px) var(--gutter); }
.quote-block__container {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}
.quote-block__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw + 1rem, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 46ch;
  margin: 0 auto clamp(32px, 5vw, 48px);
}
.quote-block__title-accent { color: var(--color-primary); }
.quote-block__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(32px, 5vw, 40px);
}
.quote-block__image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.quote-block__action { display: flex; justify-content: center; }

@media (max-width: 480px) {
  .quote-block__action .btn { width: 100%; }
}

/* Bloc "Expertises spécifiques" : réutilise la carte .services__card
   (intro à gauche : titre + bouton + image ; liste d'expertises à droite, 2 colonnes) */
.specialties-section { padding: 0 var(--gutter) clamp(56px, 10vw, 104px); }
.specialties-card__image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.specialties-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
  padding-bottom: clamp(32px, 5vw, 48px);
}

@media (min-width: 560px) {
  .specialties-list { grid-template-columns: 1fr 1fr; }
}

/* --- 10. Page "Réparation & entretien" --------------------------------------- */

/* Bloc "Solutions de réparation & entretien" : entièrement composé avec les classes
   existantes de la section 7 (.services__card, .services__intro, .services__title,
   .services__list, .service-card__icon/__title) — même traitement photo que sur la page
   "Expertise technique" (mobile : coins arrondis / desktop : la photo mord sur le bord). */

.solutions-card .services__image-wrap {
  border-radius: var(--radius-lg);
  margin-bottom: clamp(24px, 5vw, 40px);
}

@media (min-width: 900px) {
  .solutions-card .services__image-wrap {
    border-radius: 0;
    margin-bottom: 0;
  }
}

/* Bloc "équipe" : photo à gauche (portrait), texte à droite (comme .intro), mais avec
   une simple photo autonome (pas de composition superposée) plutôt que .intro__visuals. */
.team-block { padding: clamp(56px, 10vw, 104px) var(--gutter); }
.team-block__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.team-block__visual {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
}
.team-block__visual[hidden] { display: none; }
.team-block__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw + 1rem, 3.875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.team-block__content .body-text { margin-bottom: 24px; }

@media (min-width: 900px) {
  .team-block__container { grid-template-columns: 1fr 1fr; }
}

/* --- 11. Page "Professionnels & logistique" ----------------------------------- */

/* Bloc "Collaborations" : réutilise .services__card comme les autres pages, mais
   ici la photo reste contenue dans la colonne .services__intro (elle ne mord pas
   sur le bord de la carte comme sur "Expertise technique"/"Réparation & entretien"),
   donc le border-radius reste appliqué à toutes les largeurs, sans variante desktop. */

.collab-card .services__image-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: clamp(24px, 5vw, 40px);
}

/* Le bloc "Collaborations" ne compte que 4 items (grille 2x2 dès 560px, cf. section 7
   .services__list) : pas de nouvelle règle de grille nécessaire. */

/* --- 12. Page "Contact" -------------------------------------------------------- */

/* Bloc identité/coordonnées : réutilise intégralement le composant .team-block
   (photo + contenu, déjà en place pour "Réparation & entretien"/"Professionnels &
   logistique"), seul le contenu texte change (adresse, téléphone, lien carte, CTA). */
.contact-identity__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-identity__details address { font-style: normal; }
.contact-identity__details a[href^="tel:"],
.contact-identity__details a[href^="mailto:"] { text-decoration: underline; }
.contact-identity__details a[href^="tel:"]:hover,
.contact-identity__details a[href^="mailto:"]:hover { color: var(--color-primary); }
.contact-identity__details .btn { margin-top: 8px; }

/* Lien texte souligné générique (ex. "Nous situer sur Google Maps") */
.link-underline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  text-decoration: underline;
}
.link-underline:hover { color: var(--color-primary); }

/* Vignette + lien "Nous situer sur Google Maps" */
.contact-identity__map {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contact-identity__map-thumb {
  width: 96px;
  height: 51px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.contact-identity__map:hover .link-underline { color: var(--color-primary); }

/* Cartes "formulaire" : réutilise .services__card (fond blanc, bordure, radius),
   mais avec sa propre grille 2 colonnes (formulaire / photo) plutôt que le schéma
   intro+liste des autres pages. La photo reprend .team-block__visual telle quelle
   (même traitement que les autres photos "portrait" du site). */
.contact-form-section { padding: 0 var(--gutter) clamp(56px, 10vw, 104px); }

.contact-form-card {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
}


@media (min-width: 900px) {
  .contact-form-card__visual .team-block__visual {
  margin-top:125px;
}
  .contact-form-card { grid-template-columns: 1fr 1fr; }
  .contact-form-card--reverse { grid-template-columns: 1fr 1fr; }
}

.contact-form { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }

/* Groupe de boutons radio "Type de demande" : rendu en 2 pilules sélectionnables
   plutôt qu'en radios natifs, cohérent avec le reste des composants du formulaire. */
.contact-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: none;
}
@media (min-width: 480px) {
  .contact-form__radio-group { flex-direction: row; flex-wrap: wrap; }
}
.contact-form__radio-group > .contact-form__label {
  flex-basis: 100%;
  margin-bottom: 4px;
}
.contact-form__radio-option {
  position: relative;
  display: inline-flex;
}
.contact-form__radio-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__radio-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-form__radio-input:checked + .contact-form__radio-label {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}
.contact-form__radio-input:focus-visible + .contact-form__radio-label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.contact-form__radio-label:hover { border-color: var(--color-primary); }

/* Étoile rouge signalant un champ obligatoire (uniquement affichée/active selon
   le type de demande sélectionné, voir JS en bas de contact.php). */
.contact-form__required { color: var(--color-primary); }

/* Texte d'aide sous un champ (ex. localisation du numéro de châssis) */
.contact-form__hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(36, 6, 6, 0.6);
  margin: 4px 0 0;
}

.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 480px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field { display: flex; flex-direction: column; gap: 8px; }
.contact-form__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: rgba(36, 6, 6, 0.4); }

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.contact-form__textarea { min-height: 120px; resize: vertical; }

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23240606' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form__select:invalid { color: rgba(36, 6, 6, 0.4); }

.contact-form .btn { align-self: flex-start; }

@media (max-width: 480px) {
  .contact-form .btn { width: 100%; }
}

/* --- 13. Page "Mentions légales & politique de confidentialité" --------------- */

/* Page de contenu texte pur (Hn + paragraphes/listes), sans les composants visuels
   du reste du site. Réutilise .page-hero (sans accent ni bouton) pour l'en-tête. */
.legal-content { padding: clamp(56px, 10vw, 104px) var(--gutter); }
.legal-content__container { max-width: 860px; margin: 0 auto; }

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 56px 0 24px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.125rem, 1vw + 1rem, 1.375rem);
  line-height: 1.3;
  margin: 32px 0 12px;
}

.legal-content .body-text { margin-bottom: 16px; }

.legal-content__list {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-content__list li {
  list-style: disc;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.legal-content a { text-decoration: underline; }
.legal-content a:hover { color: var(--color-primary); }

.legal-content__divider {
  border: 0;
  border-top: 1px solid var(--color-border-dark);
  margin: 56px 0;
}

/* ==========================================================================
   SweetAlert2 - Adaptation responsive mobile
   ========================================================================== */

/* Tablettes et mobiles */
@media (max-width: 768px) {
  .swal2-popup {
    width: 90% !important;
    max-width: 90% !important;
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  .swal2-title {
    font-size: 1.5rem !important;
    padding: 0 0 1rem 0 !important;
  }
  
  .swal2-html-container {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 0 1rem 0 !important;
  }
  
  .swal2-actions {
    margin: 1rem 0 0 0 !important;
  }
  
  .swal2-confirm {
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .swal2-icon {
    width: 4rem !important;
    height: 4rem !important;
    margin: 0 auto 1rem auto !important;
  }
  
  .swal2-footer {
    font-size: 0.8rem !important;
    padding: 0.5rem 0 0 0 !important;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .swal2-popup {
    width: 95% !important;
    max-width: 95% !important;
    padding: 1.25rem !important;
  }
  
  .swal2-title {
    font-size: 1.25rem !important;
  }
  
  .swal2-html-container {
    font-size: 0.9rem !important;
  }
}
