/* ACT Shipping — feuille de style commune */
:root {
  --rouge: #f0303f;
  --rouge-fonce: #d01f2e;
  --bleu: #1d4f8c;
  --encre: #111;
  --gris: #f5f5f5;
  --gris-ligne: #e4e4e4;
  --noir: #141414;
  --blanc: #fff;
  --largeur: 1180px;
  --titre: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --texte: 'Nunito Sans', 'Avenir Next', 'Avenir', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--texte); color: var(--encre); background: var(--blanc); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Étiquettes et titres de section */
.surtitre { display: block; color: var(--bleu); font-size: 17px; font-weight: 600; margin-bottom: 6px; font-family: var(--texte); }
.titre-rouge { color: var(--rouge); font-size: clamp(30px, 4vw, 44px); }
.texte-bleu { color: var(--bleu); }

/* Boutons */
.bouton { display: inline-block; padding: 13px 36px; background: var(--rouge); color: var(--blanc); text-decoration: none; font-size: 15px; border: 2px solid var(--rouge); border-radius: 0; cursor: pointer; font-family: var(--texte); transition: background .2s, color .2s; }
.bouton:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.bouton.contour { background: transparent; border-color: var(--blanc); }
.bouton.contour:hover { background: var(--blanc); color: var(--encre); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--gris); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.logos { display: flex; align-items: center; gap: 14px; }
.logos img { height: 58px; width: auto; }
.logos .logo-act { height: 78px; }
.menu { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--rouge); font-size: 19px; font-weight: 500; }
.menu a[aria-current="page"] { color: #444; }
.menu a:hover { color: var(--rouge-fonce); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--rouge); margin: 5px 0; }

/* Héros vidéo (accueil) */
.heros { position: relative; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; color: var(--blanc); overflow: hidden; }
.heros video, .heros .affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.heros .contenu { position: relative; z-index: 1; padding: 0 16px; }
.heros h1 { color: var(--rouge); font-size: clamp(48px, 9vw, 110px); letter-spacing: 1px; margin-bottom: 14px; }
.heros .slogan { font-size: clamp(19px, 2.4vw, 32px); margin-bottom: 34px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.heros .actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* Bandeau rouge */
.bandeau-rouge { background: var(--rouge); color: var(--blanc); padding: clamp(50px, 8vw, 110px) 0; text-align: center; }
.bandeau-rouge h2 { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; margin: 0; }

/* Sections génériques */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.grise { background: var(--gris); }
.centre { text-align: center; }

/* Qui sommes-nous (fond sombre) */
.sombre { position: relative; color: var(--blanc); background: var(--noir) center/cover no-repeat; }
.sombre::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10,10,10,.55), rgba(10,10,10,.92) 45%); }
.sombre > * { position: relative; }
.sombre .surtitre { color: var(--blanc); font-weight: 400; }
.sombre h2 { font-size: clamp(28px, 3vw, 40px); }
.sombre p { font-size: 15px; font-weight: 300; line-height: 1.9; }
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 48px 0 34px; }
.chiffres strong { display: block; font-family: var(--titre); font-size: clamp(38px, 4vw, 56px); line-height: 1.1; }
.chiffres span { font-size: 13px; display: block; }
.chiffres div::after { content: ''; display: block; width: 44px; height: 1px; background: rgba(255,255,255,.6); margin-top: 26px; }
.signature { width: min(420px, 80%); margin: 0 auto 4px; }

/* Grille des services (accueil) */
.grille-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 44px; }
.carte-service { background: var(--gris); text-align: center; padding: 22px 14px 18px; text-decoration: none; color: var(--encre); transition: transform .2s, box-shadow .2s; }
.carte-service:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.carte-service img { width: 130px; height: 130px; object-fit: contain; margin: 0 auto 10px; }
.carte-service span { font-size: 15px; }

/* Galerie projets (accueil) */
.defile { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); grid-template-rows: repeat(2, 240px); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 40px; }
.defile img { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.defile .grand { grid-row: span 2; }

/* Pied de page */
.pied { background: var(--blanc); border-top: 1px solid var(--gris-ligne); padding: 56px 0 24px; }
.pied .conteneur { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.pied .logo-pied { width: 170px; }
.pied h3 { font-family: var(--texte); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pied p { margin: 0 0 4px; }
.pied .contacts { margin-top: 16px; font-size: 18px; }
.pied .bas { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #555; border-top: 1px solid var(--gris-ligne); padding-top: 18px; margin-top: 10px; }

/* Bouton WhatsApp flottant */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* À propos */
.photo-large { width: 100%; max-height: 680px; object-fit: cover; margin-top: 40px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.deux-colonnes .texte { padding: clamp(32px, 5vw, 70px) clamp(16px, 4vw, 60px) clamp(32px, 5vw, 70px) 0; }
.deux-colonnes img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.engagement { color: var(--rouge); font-family: var(--titre); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; margin: 14px 0 30px; }

/* Services : rangées alternées */
.rangee { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.rangee .texte { display: flex; flex-direction: column; justify-content: center; padding: 50px clamp(16px, 4vw, 60px); }
.rangee .texte img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 16px; }
.rangee .texte h2 { color: var(--rouge); font-family: var(--texte); font-size: 19px; text-transform: uppercase; letter-spacing: .3px; }
.rangee .texte p, .rangee .texte li { color: var(--bleu); font-size: 16px; }
.rangee .texte ul { padding-left: 18px; margin: 0; }
.rangee .photo { width: 100%; height: 100%; object-fit: cover; }
.rangee.inverse .texte { order: 2; }

/* Projets : galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
.galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie a:hover img { transform: scale(1.04); }
.visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; place-items: center; z-index: 100; padding: 20px; }
.visionneuse.ouverte { display: grid; }
.visionneuse img { max-height: 90vh; width: auto; }
.visionneuse button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 30px; }
.formulaire label { display: block; font-size: 14px; margin-bottom: 4px; }
.formulaire input, .formulaire textarea { width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #555; background: var(--gris); font: inherit; font-size: 16px; }
.formulaire textarea { border: 1px solid #555; min-height: 150px; resize: vertical; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire .piege { position: absolute; left: -9999px; }
.message-envoi { padding: 14px 16px; margin-top: 20px; font-weight: 600; }
.message-envoi.ok { background: #e7f6ec; color: #1d6b37; }
.message-envoi.erreur { background: #fdeaea; color: #a01822; }

/* Animation douce à l'apparition */
.apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Tablette */
@media (max-width: 1024px) {
  .logos img { height: 44px; } .logos .logo-act { height: 50px; }
  .menu { gap: 20px; } .menu a { font-size: 17px; }
  .grille-services { grid-template-columns: repeat(3, 1fr); }
  .chiffres { grid-template-columns: repeat(3, 1fr); }
}
/* Téléphone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .entete .conteneur { min-height: 72px; }
  .logos { gap: 8px; } .logos img { height: 34px; } .logos .logo-act { height: 42px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--gris); flex-direction: column; gap: 0; padding: 8px 16px 16px; box-shadow: 0 6px 10px rgba(0,0,0,.1); }
  .menu.ouvert { display: flex; }
  .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gris-ligne); }
  .grille-services { grid-template-columns: repeat(2, 1fr); }
  .carte-service img { width: 96px; height: 96px; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .defile { grid-template-rows: repeat(2, 170px); grid-auto-columns: 75%; }
  .deux-colonnes, .rangee, .contact-grille { grid-template-columns: 1fr; }
  .rangee { min-height: 0; }
  .rangee .photo { height: 280px; }
  .rangee.inverse .texte { order: 0; }
  .deux-colonnes .texte { padding: 0 0 30px; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .formulaire { grid-template-columns: 1fr; }
  .pied .conteneur { grid-template-columns: 1fr; gap: 20px; }
}
