/* EllaCar — Accueil client validé · correctif layout desktop v2
   Objectif : corriger le rendu trop petit/resserré et donner un vrai rendu premium pleine largeur. */
:root{
  --ecl-navy:#071a38;
  --ecl-navy-2:#0b2a55;
  --ecl-blue:#1678d3;
  --ecl-gold:#ffb000;
  --ecl-gold-2:#ffd36a;
  --ecl-green:#18a84f;
  --ecl-ink:#071a38;
  --ecl-muted:#5b6b83;
  --ecl-line:#e6edf6;
  --ecl-soft:#f5f8fc;
  --ecl-card:#ffffff;
  --ecl-shadow:0 18px 45px rgba(7,26,56,.13);
}

body.home main.ecl-home,
.ecl-home{
  display:block;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  color:var(--ecl-ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.45;
}
.ecl-home *{box-sizing:border-box;}
.ecl-home a{text-decoration:none;color:inherit;}
.ecl-container{
  width:calc(100% - 96px);
  max-width:1580px;
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}

/* HERO */
.ecl-hero{
  position:relative;
  min-height:610px;
  background:
    linear-gradient(90deg,rgba(7,26,56,.94) 0%,rgba(7,26,56,.78) 38%,rgba(7,26,56,.12) 100%),
    linear-gradient(135deg,#082147 0%,#0b4f82 44%,#78ccec 100%);
  isolation:isolate;
}
.ecl-hero__bg{position:absolute;inset:0;overflow:hidden;z-index:-1;}
.ecl-hero__bg:before{content:"";position:absolute;inset:auto 0 0 0;height:50%;background:linear-gradient(180deg,rgba(31,154,206,.14),rgba(45,198,230,.43) 34%,rgba(0,117,165,.48));clip-path:polygon(0 30%,100% 0,100% 100%,0 100%);}
.ecl-hero__sun{position:absolute;right:35%;top:82px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,#fff8d9 0,#ffd36a 34%,rgba(255,211,106,0) 72%);opacity:.72;}
.ecl-hero__island{position:absolute;background:linear-gradient(135deg,#2b7b57,#115044);filter:drop-shadow(0 15px 20px rgba(0,0,0,.13));}
.ecl-hero__island--back{right:18%;bottom:188px;width:430px;height:150px;clip-path:polygon(0 100%,15% 55%,30% 35%,48% 0,65% 28%,82% 18%,100% 78%,100% 100%);}
.ecl-hero__island--front{right:-2%;bottom:126px;width:580px;height:180px;clip-path:polygon(0 100%,10% 42%,25% 70%,42% 20%,56% 34%,70% 0,100% 62%,100% 100%);opacity:.96;}
.ecl-hero__road{position:absolute;right:-5%;bottom:0;width:54%;height:180px;background:linear-gradient(160deg,#5d6670,#242a33 65%,#121720);clip-path:polygon(0 34%,100% 0,100% 100%,0 100%);}
.ecl-hero__road:before{content:"";position:absolute;left:7%;right:6%;top:48%;height:3px;background:linear-gradient(90deg,transparent 0 5%,#f5c533 5% 15%,transparent 15% 28%,#f5c533 28% 39%,transparent 39% 53%,#f5c533 53% 64%,transparent 64%);}
.ecl-hero__airport{position:absolute;right:34px;top:112px;width:190px;padding:18px 16px;border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 18px 45px rgba(7,26,56,.14);color:#13264a;font-weight:950;text-transform:uppercase;letter-spacing:.03em;line-height:1.15;transform:rotate(-2deg);}
.ecl-hero__car{position:absolute;right:250px;bottom:72px;width:420px;height:150px;background:linear-gradient(180deg,#d8e0e9,#677586 64%,#303744);border-radius:48% 42% 20px 20px;box-shadow:0 20px 30px rgba(0,0,0,.25);}
.ecl-hero__car:before{content:"";position:absolute;left:78px;right:112px;top:22px;height:52px;background:linear-gradient(135deg,#b7d8ef,#243b57);border-radius:55px 80px 16px 16px;}
.ecl-hero__car:after{content:"";position:absolute;right:24px;top:84px;width:54px;height:20px;border-radius:999px;background:#ffd36a;box-shadow:-306px 0 0 #fff;}
.ecl-hero__wheel{position:absolute;bottom:-25px;width:82px;height:82px;border-radius:50%;background:radial-gradient(circle,#bdc6d0 0 22%,#1a1f29 23% 62%,#05080d 63%);box-shadow:0 6px 12px rgba(0,0,0,.3);}
.ecl-hero__wheel--left{left:68px;}.ecl-hero__wheel--right{right:72px;}
.ecl-hero__inner{position:relative;display:block;padding-top:84px;padding-bottom:48px;}
.ecl-hero__copy{width:760px;max-width:56%;padding-top:0;}
.ecl-eyebrow{display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;color:var(--ecl-gold);text-transform:uppercase;font-size:13px;font-weight:950;letter-spacing:.055em;}
.ecl-eyebrow:before{content:"";width:9px;height:9px;border-radius:999px;background:var(--ecl-gold);box-shadow:0 0 0 6px rgba(255,176,0,.15);}
.ecl-hero h1{margin:0 0 18px;color:#fff;font-size:64px;line-height:1.02;letter-spacing:-.055em;font-weight:950;text-shadow:0 3px 18px rgba(0,0,0,.18);max-width:820px;}
.ecl-hero h1 strong{display:block;color:var(--ecl-gold);font-weight:950;}
.ecl-hero__copy p{max-width:720px;color:rgba(255,255,255,.9);font-size:19px;line-height:1.55;margin:0 0 24px;}
.ecl-hero__mini-trust{display:flex;flex-wrap:wrap;gap:14px 28px;color:#fff;font-weight:850;font-size:15px;}
.ecl-hero__mini-trust span{display:inline-flex;align-items:center;gap:8px;}

/* Search */
.ecl-search{display:grid;grid-template-columns:1.2fr 1fr .8fr .8fr 160px;gap:14px;align-items:end;margin-top:32px;padding:18px;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:var(--ecl-shadow);width:1050px;max-width:72%;backdrop-filter:blur(10px);}
.ecl-search__field label{display:block;margin:0 0 7px;color:#33445d;font-size:12px;font-weight:950;}
.ecl-search select,.ecl-search input{width:100%;height:50px;border:1px solid #d8e1ee;border-radius:12px;background:#fff;color:#111d33;font-weight:750;padding:0 14px;outline:none;font-size:14px;}
.ecl-search select:focus,.ecl-search input:focus{border-color:var(--ecl-gold);box-shadow:0 0 0 4px rgba(255,176,0,.18);}
.ecl-search__submit{height:50px;border:0;border-radius:12px;background:linear-gradient(180deg,#ffc633,#ffad00);color:#071a38;font-weight:950;padding:0 22px;cursor:pointer;box-shadow:0 10px 22px rgba(255,176,0,.25);font-size:14px;}

/* TRUST */
.ecl-trust{position:relative;z-index:3;margin-top:-28px;}
.ecl-trust__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:#fff;border:1px solid var(--ecl-line);border-radius:18px;box-shadow:0 12px 35px rgba(7,26,56,.1);overflow:hidden;}
.ecl-trust article{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;min-height:86px;padding:18px 16px;border-right:1px solid var(--ecl-line);}
.ecl-trust article:last-child{border-right:0;}
.ecl-trust span{grid-row:1/3;display:grid;place-items:center;width:48px;height:48px;border-radius:999px;background:#081d3d;color:var(--ecl-gold);font-size:21px;}
.ecl-trust strong{font-size:14px;line-height:1.12;}
.ecl-trust small{color:var(--ecl-muted);font-size:12px;line-height:1.2;}

/* SECTIONS */
.ecl-steps{padding:34px 0 24px;background:linear-gradient(180deg,#fff,#f8fbff);}
.ecl-steps h2,.ecl-section-title h2{font-size:38px;line-height:1.12;text-align:center;margin:0 0 24px;font-weight:950;letter-spacing:-.035em;color:var(--ecl-ink);}
.ecl-steps h2 span,.ecl-section-title span,.ecl-reviews h2 span{color:var(--ecl-gold);}
.ecl-steps__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:26px;border-radius:22px;background:linear-gradient(135deg,#f7fbff,#eef6ff);border:1px solid #deebf7;}
.ecl-steps article{position:relative;display:grid;grid-template-columns:52px 62px 1fr;gap:14px;align-items:center;min-width:0;}
.ecl-steps b{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ecl-navy);color:#fff;font-size:17px;}
.ecl-steps article>span{font-size:34px;}
.ecl-steps h3{margin:0 0 5px;font-size:18px;line-height:1.15;color:var(--ecl-ink);}
.ecl-steps p{margin:0;color:var(--ecl-muted);font-size:14px;line-height:1.35;}

.ecl-fleet{padding:30px 0;background:#fff;}
.ecl-section-title{margin-bottom:24px;}
.ecl-fleet__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.ecl-car-card{position:relative;background:#fff;border:1px solid var(--ecl-line);border-radius:18px;box-shadow:0 12px 28px rgba(7,26,56,.08);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;}
.ecl-car-card:hover{transform:translateY(-3px);box-shadow:0 20px 40px rgba(7,26,56,.13);border-color:rgba(255,176,0,.6);}
.ecl-car-card__badge{position:absolute;top:14px;left:14px;z-index:2;padding:6px 10px;border-radius:999px;background:#081d3d;color:#fff;text-transform:uppercase;font-size:11px;font-weight:950;}
.ecl-car-card__image{display:flex;align-items:center;justify-content:center;height:210px;padding:30px 24px 8px;background:linear-gradient(180deg,#fff,#f7f9fc);overflow:hidden;}
.ecl-car-card__image img{max-width:100%;max-height:180px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(7,26,56,.16));}
.ecl-car-card__placeholder{font-size:64px;}
.ecl-car-card__body{padding:0 20px 20px;}
.ecl-car-card h3{margin:0 0 12px;font-size:19px;line-height:1.15;color:var(--ecl-ink);}
.ecl-car-card h3 a{color:var(--ecl-ink);}
.ecl-car-card__specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;color:#33445d;font-size:13px;font-weight:750;margin-bottom:18px;}
.ecl-car-card__bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;}
.ecl-car-card__price small{display:block;color:var(--ecl-muted);font-size:12px;}
.ecl-car-card__price strong{font-size:31px;line-height:1;font-weight:950;}
.ecl-car-card__price em{font-style:normal;color:var(--ecl-muted);font-size:13px;font-weight:800;}
.ecl-car-card__cta{display:inline-flex;align-items:center;justify-content:center;min-width:116px;height:44px;border-radius:11px;background:var(--ecl-gold);color:#071a38;font-weight:950;font-size:14px;}
.ecl-fleet__all{text-align:center;margin-top:22px;}
.ecl-fleet__all a{display:inline-flex;align-items:center;gap:8px;color:#0b4f82;font-weight:950;border-bottom:2px solid rgba(11,79,130,.18);}
.ecl-empty{grid-column:1/-1;padding:32px;border:1px dashed #cdd9e8;border-radius:18px;background:#f8fbff;text-align:center;}

.ecl-why{padding:30px 0 36px;background:linear-gradient(180deg,#fff,#fbf6ea);}
.ecl-why__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.ecl-why article{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;min-height:105px;padding:20px;background:#fff;border:1px solid #efe6d2;border-radius:16px;box-shadow:0 9px 24px rgba(7,26,56,.06);}
.ecl-why article>span{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#fff6df;color:#071a38;font-size:25px;border:1px solid #ffe1a0;}
.ecl-why h3{margin:0 0 5px;font-size:17px;line-height:1.15;color:var(--ecl-ink);}
.ecl-why p{margin:0;color:var(--ecl-muted);font-size:14px;line-height:1.32;}

.ecl-reviews{padding:34px 0;background:#fff;}
.ecl-reviews__wrap{display:grid;grid-template-columns:1fr 1.5fr 1.5fr 1fr;gap:16px;align-items:stretch;}
.ecl-reviews__intro{display:flex;align-items:center;}
.ecl-reviews h2{margin:0;font-size:30px;line-height:1.12;color:var(--ecl-ink);}
.ecl-review{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:center;padding:16px;border:1px solid var(--ecl-line);border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(7,26,56,.06);}
.ecl-review__avatar{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#ffcf55,#0b4f82);color:#fff;font-weight:950;font-size:22px;}
.ecl-review strong{color:var(--ecl-gold);letter-spacing:.05em;}
.ecl-review p{margin:5px 0;color:#1b2d4a;font-size:14px;line-height:1.35;}
.ecl-review small{color:var(--ecl-muted);font-weight:750;}
.ecl-rating{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border-radius:18px;background:var(--ecl-navy);color:#fff;text-align:center;padding:18px;}
.ecl-rating strong{font-size:34px;line-height:1;}
.ecl-rating span{color:var(--ecl-gold);}.ecl-rating small{opacity:.85;}

.ecl-final-cta{padding:54px 0;background:radial-gradient(circle at 80% 20%,rgba(255,176,0,.25),transparent 34%),linear-gradient(135deg,#06152e,#0b2a55);color:#fff;text-align:center;}
.ecl-final-cta h2{margin:0 0 10px;font-size:48px;letter-spacing:-.04em;color:#fff;}
.ecl-final-cta p{margin:0 auto 24px;max-width:720px;color:rgba(255,255,255,.78);font-size:17px;}
.ecl-final-cta__btn,.ecl-final-cta__phone{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:999px;font-weight:950;margin:6px;}
.ecl-final-cta__btn{background:var(--ecl-gold);color:#071a38;}.ecl-final-cta__phone{border:1px solid rgba(255,255,255,.22);color:#fff;background:rgba(255,255,255,.08);}

@media (max-width:1280px){
  .ecl-container{width:calc(100% - 48px);max-width:1180px;}
  .ecl-hero h1{font-size:54px;}
  .ecl-hero__copy{max-width:62%;}
  .ecl-search{max-width:82%;grid-template-columns:1fr 1fr 1fr 1fr;}
  .ecl-search__submit{grid-column:1/-1;}
  .ecl-trust__grid{grid-template-columns:repeat(3,1fr);}
  .ecl-trust article:nth-child(3n){border-right:0;}
  .ecl-fleet__grid{grid-template-columns:repeat(3,1fr);}
  .ecl-hero__car{right:120px;opacity:.75;}
}
@media (max-width:900px){
  .ecl-container{width:calc(100% - 28px);}
  .ecl-hero{min-height:auto;}
  .ecl-hero__inner{padding:44px 0 34px;}
  .ecl-hero__copy{max-width:100%;width:100%;}
  .ecl-hero h1{font-size:38px;}
  .ecl-hero__copy p{font-size:16px;}
  .ecl-search{width:100%;max-width:100%;grid-template-columns:1fr;padding:14px;border-radius:18px;}
  .ecl-trust{margin-top:0;padding-top:16px;background:#fff;}
  .ecl-trust__grid{grid-template-columns:1fr;border-radius:16px;}
  .ecl-trust article{border-right:0;border-bottom:1px solid var(--ecl-line);}
  .ecl-trust article:last-child{border-bottom:0;}
  .ecl-steps__grid,.ecl-fleet__grid,.ecl-why__grid,.ecl-reviews__wrap{grid-template-columns:1fr;}
  .ecl-steps article{grid-template-columns:42px 48px 1fr;}
  .ecl-hero__car{right:-90px;bottom:38px;width:280px;height:100px;opacity:.25;}
  .ecl-hero__airport{display:none;}
  .ecl-car-card__image{height:175px;}
  .ecl-why article{grid-template-columns:50px 1fr;}
  .ecl-reviews__intro{justify-content:center;text-align:center;}
  .ecl-final-cta h2{font-size:32px;}
  .ecl-final-cta__btn,.ecl-final-cta__phone{width:100%;}
}

/* Correctif proportions v3 — évite les textes en colonne mot par mot */
.ecl-home .ecl-steps article{
  grid-template-columns:52px 62px minmax(0,1fr);
  grid-template-areas:"num icon title" ". . text";
  align-items:start;
}
.ecl-home .ecl-steps article b{grid-area:num;}
.ecl-home .ecl-steps article>span{grid-area:icon;line-height:1;}
.ecl-home .ecl-steps article h3{grid-area:title;align-self:center;max-width:none;white-space:normal;}
.ecl-home .ecl-steps article p{grid-area:text;max-width:360px;white-space:normal;word-break:normal;overflow-wrap:normal;}

.ecl-home .ecl-why article{
  grid-template-columns:56px minmax(0,1fr);
  grid-template-areas:"icon title" "icon text";
  align-items:start;
  min-height:126px;
}
.ecl-home .ecl-why article>span{grid-area:icon;}
.ecl-home .ecl-why h3{grid-area:title;align-self:center;max-width:none;white-space:normal;}
.ecl-home .ecl-why p{grid-area:text;max-width:420px;white-space:normal;word-break:normal;overflow-wrap:normal;}

.ecl-home .ecl-trust strong,
.ecl-home .ecl-trust small,
.ecl-home .ecl-car-card h3,
.ecl-home .ecl-car-card__specs span,
.ecl-home .ecl-review p{
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}

@media (min-width:901px){
  .ecl-home .ecl-steps__grid{align-items:stretch;}
  .ecl-home .ecl-steps article{min-height:112px;}
  .ecl-home .ecl-why__grid{align-items:stretch;}
}

@media (max-width:900px){
  .ecl-home .ecl-steps article{
    grid-template-columns:42px 48px minmax(0,1fr);
    grid-template-areas:"num icon title" ". . text";
  }
  .ecl-home .ecl-steps article p{max-width:none;}
  .ecl-home .ecl-why article{
    grid-template-columns:50px minmax(0,1fr);
    grid-template-areas:"icon title" "icon text";
    min-height:auto;
  }
  .ecl-home .ecl-why p{max-width:none;}
}

/* Réglage thème : image de fond personnalisable du hero */
.ecl-hero.ecl-hero--has-image{
  background:
    linear-gradient(90deg,rgba(7,26,56,.92) 0%,rgba(7,26,56,.68) 42%,rgba(7,26,56,.16) 100%),
    var(--ecl-hero-image) center center / cover no-repeat;
}
.ecl-hero.ecl-hero--has-image .ecl-hero__bg{
  display:none;
}

/* Correctif visibilité barre de recherche + proportions desktop v4
   Objectif : la barre de recherche doit rester visible au premier écran desktop. */
@media (min-width:901px){
  .ecl-home .ecl-hero{
    min-height:640px;
  }
  .ecl-home .ecl-hero__inner{
    padding-top:58px;
    padding-bottom:34px;
  }
  .ecl-home .ecl-hero__copy{
    width:760px;
    max-width:56%;
  }
  .ecl-home .ecl-eyebrow{
    margin-bottom:14px;
    font-size:12px;
  }
  .ecl-home .ecl-hero h1{
    max-width:760px;
    margin-bottom:16px;
    font-size:clamp(46px,4.7vw,62px);
    line-height:.98;
    letter-spacing:-.055em;
  }
  .ecl-home .ecl-hero__copy p{
    max-width:720px;
    margin-bottom:20px;
    font-size:17px;
    line-height:1.45;
  }
  .ecl-home .ecl-hero__mini-trust{
    gap:12px 26px;
    font-size:14px;
    margin-bottom:0;
  }
  .ecl-home .ecl-search{
    width:min(1080px,calc(100vw - 120px));
    max-width:none;
    margin-top:24px;
    padding:16px;
    grid-template-columns:1.18fr 1fr .78fr .78fr 160px;
    gap:12px;
    position:relative;
    z-index:4;
  }
  .ecl-home .ecl-search select,
  .ecl-home .ecl-search input{
    height:48px;
    font-size:14px;
  }
  .ecl-home .ecl-search__submit{
    height:48px;
    min-width:150px;
  }
  .ecl-home .ecl-hero__sun{
    top:74px;
    right:36%;
    width:105px;
    height:105px;
  }
  .ecl-home .ecl-hero__airport{
    top:110px;
    right:28px;
  }
  .ecl-home .ecl-hero__car{
    right:185px;
    bottom:52px;
    width:380px;
    height:136px;
  }
  .ecl-home .ecl-hero__road{
    height:155px;
  }
  .ecl-home .ecl-trust{
    margin-top:-22px;
    position:relative;
    z-index:5;
  }
}

@media (min-width:901px) and (max-height:820px){
  .ecl-home .ecl-hero{
    min-height:590px;
  }
  .ecl-home .ecl-hero__inner{
    padding-top:44px;
    padding-bottom:28px;
  }
  .ecl-home .ecl-hero h1{
    font-size:clamp(42px,4.15vw,56px);
    max-width:720px;
  }
  .ecl-home .ecl-hero__copy p{
    font-size:16px;
    line-height:1.4;
    margin-bottom:16px;
  }
  .ecl-home .ecl-search{
    margin-top:18px;
    padding:14px;
  }
  .ecl-home .ecl-search select,
  .ecl-home .ecl-search input,
  .ecl-home .ecl-search__submit{
    height:46px;
  }
}

/* Les sections sous le hero gardent des hauteurs lisibles, sans grands espaces vides. */
@media (min-width:901px){
  .ecl-home .ecl-steps{
    padding:28px 0 22px;
  }
  .ecl-home .ecl-steps h2,
  .ecl-home .ecl-section-title h2{
    font-size:34px;
    margin-bottom:18px;
  }
  .ecl-home .ecl-steps__grid{
    padding:22px 26px;
    gap:28px;
  }
  .ecl-home .ecl-steps article{
    min-height:92px;
    grid-template-columns:46px 52px minmax(0,1fr);
  }
  .ecl-home .ecl-steps b{
    width:42px;
    height:42px;
  }
  .ecl-home .ecl-steps article>span{
    font-size:30px;
  }
  .ecl-home .ecl-steps p{
    max-width:420px;
    font-size:14px;
    line-height:1.35;
  }
  .ecl-home .ecl-why article{
    min-height:112px;
    padding:18px;
  }
  .ecl-home .ecl-why p{
    max-width:none;
  }
}
