/* ===== Flo Multiservices – feuille de style (inspirée du flyer) ===== */

:root {
  --jaune: #f7c600;
  --jaune-fonce: #e0b200;
  --noir: #111111;
  --anthracite: #232323;
  --carte: #1b1b1b;
  --gris: #bdbdbd;
  --blanc: #ffffff;
  --rayon: 12px;
  --ombre: 0 12px 30px rgba(0, 0, 0, 0.45);

  /* Photos de fond (Unsplash, libres de droits) + couleur de secours */
  --granit: url("images/pierre.webp") center / cover no-repeat, #1c1c1c;
  --bois: url("images/bois.webp") center / cover no-repeat, #8a5a33;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--blanc);
  background: var(--granit);
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}

h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 14px auto 0;
  background: var(--jaune);
  border-radius: 3px;
  transform: skewX(-20deg);
}

.section-intro {
  text-align: center;
  color: var(--gris);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--jaune);
  color: var(--noir);
  box-shadow: 0 6px 18px rgba(247, 198, 0, 0.35);
}

.btn--primary:hover {
  background: var(--jaune-fonce);
}

.btn--ghost {
  border: 2px solid var(--blanc);
  color: var(--blanc);
}

.btn--ghost:hover {
  background: var(--blanc);
  color: var(--noir);
}

/* ===== En-tête : granit à gauche, bois à droite, bande jaune en diagonale ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 20px 60px;
  background: var(--granit);
  --bande-x: 70px; /* décalage de la bande jaune par rapport au centre */
}

/* Partie bois : coupée en diagonale (15°), juste sous le milieu de la bande */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bois);
  -webkit-mask-image: linear-gradient(75deg, transparent calc(50% + var(--bande-x)), #000 calc(50% + var(--bande-x)));
  mask-image: linear-gradient(75deg, transparent calc(50% + var(--bande-x)), #000 calc(50% + var(--bande-x)));
}

/* Bande jaune + coups de pinceau blancs (image), posée sur la découpe */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 1556px;
  background: url("images/bande.webp") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%) rotate(-15deg) translateX(var(--bande-x));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__nom {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.hero__nom span {
  display: block;
  color: var(--jaune);
  font-size: 1.25em;
  text-transform: uppercase;
}

.hero__slogan {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 24px;
  padding-bottom: 10px;
  background: linear-gradient(var(--jaune), var(--jaune)) left bottom / 70% 4px no-repeat;
}

.hero__services {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  line-height: 1.8;
}

.hero__services li::before {
  content: "-";
  color: var(--jaune);
  margin-right: 4px;
}

.hero__services em {
  font-weight: 600;
  font-style: italic;
  text-transform: none;
  color: var(--jaune);
  margin-left: 6px;
}

.hero__ville {
  font-family: "Kaushan Script", cursive;
  font-size: 1.6rem;
  margin: 0 0 28px;
}

.hero__ville span {
  border-bottom: 3px solid var(--jaune);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

/* ===== Bandeau ===== */
.strip {
  background: var(--jaune);
  color: var(--noir);
  padding: 18px 20px;
  border-top: 3px solid var(--blanc);
  border-bottom: 3px solid var(--blanc);
}

.strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1150px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px 30px;
}

.strip li::before {
  content: "✔";
  margin-right: 8px;
}

.strip strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* ===== Services ===== */
.services {
  max-width: 1150px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* 5 tuiles sur une ligne en grand écran ; sur écran plus étroit,
   les tuiles de la dernière ligne restent centrées */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: var(--carte);
  border: 1px solid #333;
  border-top: 5px solid var(--jaune);
  border-radius: var(--rayon);
  flex: 1 1 190px;
  max-width: 270px;
  padding: 24px 18px;
  box-shadow: var(--ombre);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--jaune);
}

.card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--noir);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px var(--jaune);
}

.card h3 {
  font-size: 1.15rem;
}

.card__sous-titre {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 600;
  color: var(--jaune);
  margin: -0.4em 0 0.6em !important;
}

.card p {
  margin: 0;
  color: var(--gris);
}

/* ===== Pourquoi nous (fond bois) ===== */
.why {
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    var(--bois);
  color: var(--blanc);
  padding: 80px 20px;
  border-top: 6px solid var(--jaune);
  border-bottom: 6px solid var(--jaune);
}

.why__inner {
  max-width: 1150px;
  margin: 0 auto;
}

.why h2 span {
  color: var(--jaune);
}

.why ol {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.why li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why .num {
  font-family: "Kaushan Script", cursive;
  font-size: 3rem;
  line-height: 1;
  color: var(--jaune);
}

.why h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}

.why p {
  margin: 0;
  color: #e2e2e2;
}

/* ===== Contact ===== */
.contact {
  max-width: 1150px;
  margin: 0 auto;
  padding: 80px 20px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 20px;
  background: var(--carte);
  border: 1px solid #333;
  border-radius: var(--rayon);
  color: var(--blanc);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

a.contact__item:hover {
  background: var(--jaune);
  color: var(--noir);
}

.contact__icon {
  font-size: 2rem;
}

.contact__label {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jaune);
}

a.contact__item:hover .contact__label {
  color: var(--noir);
}

.contact__value {
  font-weight: 600;
  font-size: 1.1rem;
  overflow-wrap: break-word;
}

/* ===== Pied de page ===== */
.footer {
  background: var(--noir);
  color: #999;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
  border-top: 5px solid var(--jaune);
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 8px;
}

.footer a {
  color: var(--jaune);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Logo Facebook (SVG intégré, couleur du texte) */
.icone-fb {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.contact__icon .icone-fb {
  color: #1877f2;
}

a.contact__item:hover .icone-fb {
  color: var(--noir);
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  /* Sur mobile : bois en haut derrière le logo, bande jaune horizontale */
  .hero {
    padding-top: 0;
  }

  .hero::before {
    bottom: auto;
    height: 300px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero::after {
    top: 300px;
    width: 60px;
    height: 934px;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero__logo {
    order: -1;
    height: 260px;
    width: auto;
    max-width: 100%;
    margin-top: 20px;
  }

  .hero__slogan {
    background-position: center bottom;
  }

  .hero__actions {
    justify-content: center;
  }

  .strip ul {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 16px;
  }

  .card {
    max-width: none;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
